Stop The Snooping On Your Web Site

from Lynette Chandler 

Depending on the configuration of your web server, on some, when you create a new folder and neglect to put a file named index.html or index.php, anyone going to the URL of that folder can see all the contents inside. This screen shot should give you an idea.

Directory Browsing

Look familiar? Chances are you’ve come across something like that on some sites. As you can see, the files inside the directory are exposed and by clicking the Parent Directory link, people can check out the other directories on your site especially if the next directory up doesn’t happen to have an index file either.

One way to stop that is to simply create an strongindex/strong file. You don’t have to add content to it just create a file, name it index.html so now people will see a blank page when they go to that URL. But what if you have tons of folders and folders inside of folders and you don’t know which of them are exposed?

Relax. You don’t have to go through them all individually. Drop the following code into the .htaccess file inside the public_html or www folder. If there is no .htaccess file just create it and paste the code inside.

span style=”color:#008000;”code# Disable directory browsing
Options All -Indexes/code/span

Find further blogging ideas at and tech/marketing tips at

Share and Enjoy:
  • Facebook
  • StumbleUpon
  • Twitter
  • Yahoo! Buzz
  • MySpace

Related posts:

Comments are closed.