[thelist] Simple Apache question

Anthony Baratta Anthony at Baratta.com
Thu Nov 9 18:23:42 CST 2000


Minh Lee Goon wrote:
> 
> If a directory doesn't contain an index.html file, the browser will
> automatically display the contents of that directory when the url is
> just plain http://blah/path/
> 
> How do I disable this option so that the contents of the directory are
> not revealed?

Create a .htacess file in the directory in question (or in your web root directory).
Put the statement below in the .htaccess file:

Options -Indexes

-- 
Anthony Baratta
President
KeyBoard Jockeys
                    South Park Speaks Version 3 is here!!!
                       http://www.baratta.com/southpark
                              Powered by Tsunami




More information about the thelist mailing list