/ Published in: PHP
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.
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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Options All -Indexes