Re: [PHP] Subdirectory security From: Andrés (andres <email protected>)
Date: 09/26/00

I know how I can do it with Apache, but what I want to stop is that someone
can use PHP to access one of the files under a directory where he don't have
access using a web browser.

> > Hello.
> >
> > Is there any way to stop someone from accessing a file under the
doc_root?
> > As there's a directive to define the document root, is there anything
> > similar to stop PHP from acessing a whole subdirectory under that
document
> > root?
> >
> > Thanks.
> >
>
> If you are using apache, just deny access to that subdirectory.
>
> <Directory "/path/to/wherever">
> Order deny, allow
> Deny from all
> </Directory>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>