Re: htaccess and deny dir listing

From: Date: Fri, 15 Sep 2000 13:53:22 +0000
Subject: Re: htaccess and deny dir listing
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-16901@lists.php.net to get a copy of this message
Matthew Delmarter wrote: > > Hi all, > > I am using .htaccess file in the root dir of my site and would like to stop > people from view the contents of specified directories. For example I would > like to deny viewing the contents of a /includes dir or a /styles directory. > I don't want to use password authentication. > > Is this possible using .htaccess? > If so, can I please have the syntax? > > Please note that I would prefer to have one .htaccess file in the root dir > than multiple .htaccess files throughout the site... I don't see what this has to do with PHP - this kind of question is for an Apache mailing list, but anyway: <Directory "/usr/local/www/includes"> Options none </Directory> -- Marko.

« previous php.general (#16901) next »