Re: Subdirectory security

From: Date: Tue, 26 Sep 2000 08:09:02 +0000
Subject: Re: Subdirectory security
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-17549@lists.php.net to get a copy of this message
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>

« previous php.general (#17549) next »