Re: alternative to protecting files through http auth.
| From: | Luke | Date: | Wed, 14 Jan 2004 21:36:51 +0000 |
| Subject: | Re: alternative to protecting files through http auth. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174588@lists.php.net to get a copy of this message | ||
there has been a discussion in this group recently about URL re-writing (see
URL rewriting...anybody done this? and replies)
That is a possibility, using a combination of
URL Re-Writing
PHP Sessions/Cookies
And the Location: header
So all requests go back to the index, then you decide from the index.php
page if they have to be redirected, or if they are already logged in, or if
they dont have permission
That might work
--
Luke
"Scott Taylor" <scotttaylor@bigfoot.com> wrote in message
news:4005B1D2.8000505@bigfoot.com...
>
>
> Is there no other way to protect your (non PHP) files than through
> authentication? I've been trying to set up a system that will protect
> files. Those trying to access the files would only be able to do so
> after entering their email address. So I set up a form that submits the
> email to my database. But then the problem is: how to access the
> files? I could just use http://username:password/test.com/test.jpg
> method, but then what would be the point of trying to protect the files
> in the first place? It would simply be the same as with holding the
> link to begin with. So is there an alternative to using http basic
> authentication to protect files? Or is there a simple way to
> authenticate the pages themselves without using something like Manuel
> Lemos' "PHP HTTP class"?
>
> Best Regards,
>
> Scott Taylor