Re: restricting access to files using PHP
| From: | Jason Wong | Date: | Wed, 12 Feb 2003 09:54:05 +0000 |
| Subject: | Re: restricting access to files using PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135285@lists.php.net to get a copy of this message | ||
On Wednesday 12 February 2003 17:46, Shams wrote:
> Hi,
>
> i've written a secure PHP login script which will allow users to login to a
> directory such as this:
>
> smezone.com/members/index.php
>
> however, how do I restrict people from accessing HTML files in that
> directory (which they can easily do so by typing the URL into their
> browser), such as:
>
> smezone.com/members/document1.html
>
> ?
>
> Since its a regular HTML files (and we have lots), I can't check whether
> the user has a valid session as I would do in a PHP file.
Search the archives. This question gets asked almost every week.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
The surest way to corrupt a youth is to instruct him to hold in higher
esteem those who think alike than those who think differently.
-- Nietzsche
*/