RE: [PHP] How to keep unauthorized viewers out

2001-01-16 Thread Maxim Maletsky
A dummy idea: in story.php you put a key in: then key.php will have this: if($key != 'BHEKFBSA"IjsjbdshlycgewypH:*:YEWCnbms';) Exit; then in every file you wish to protect include key.php and the articles will show up only in case it was included, or someone knew what to type in the URL... a

Re: [PHP] How to keep unauthorized viewers out

2001-01-16 Thread Nathan Cook
t; <[EMAIL PROTECTED]> To: "Nathan Cook" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 5:13 PM Subject: Re: [PHP] How to keep unauthorized viewers out > Nathan, > > Thanks for your reply ... > > At 04:53 PM 01/16/2001 -0700,

Re: [PHP] How to keep unauthorized viewers out

2001-01-16 Thread Miles Thompson
Nathan, Thanks for your reply ... At 04:53 PM 01/16/2001 -0700, Nathan Cook wrote: >how do they authenticate? VIA http or a subsequent page? HTTP authentication,using Header("WWW-authenticate: basic realm=\"Business Today\"") >Whichever it is, there are variables associated with each check

RE: [PHP] How to keep unauthorized viewers out

2001-01-16 Thread Benjamin Munoz
Correction: Inside X.php, you have some authentication code. Maybe something simple as: -Ben -Original Message- From: Benjamin Munoz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 4:20 PM To: 'Miles Thompson'; [EMAIL PROTECTED] Subject: RE: [PHP] How to keep un

RE: [PHP] How to keep unauthorized viewers out

2001-01-16 Thread Benjamin Munoz
Miles, If you can save 2.htm as 2.php, use some authentication code. Story.php becomes Inside X.php, you have some authentication code. Maybe something simple as: Inside story.php, set $valid to true Now accessing 2.php directly means that $valid is valid and you'll be redirected to story