Return to Snippet

Revision: 55033
at January 23, 2012 14:03 by webtechdev


Initial Code
Options All -Indexes

Initial URL


Initial Description
Do not allow public to see your dir structure just pleae this code in .htacces

Futther reading
There are two ways to approach this.  The best way to do this is via your .htaccess or httpd.conf file (if you have your own Apache server).  If your host allows the use of .htaccess, place this at the top:
The alternative would be to place a blank index.html file in each directory.  This may seem trivial, but a crafty and knowledgeable attacker will only need a small amount of information to get into your server.

Initial Title
Do not allow public viewing of directory indexes

Initial Tags
htaccess

Initial Language
PHP