Google Developers Night Sun Microsystem Acquires MySQL AB
Jan 16

Directory browsing could put your website in trouble. A malicious user with even a simple knowledge in security hacking (yes, there are lots of hacking tutorials 101 out there in the net) can wreck havoc in your site leaving you pulling your hair out.

This simple tips will allow you to disable directory browsing. Please note that this only works in Apache web servers. Apache web server allow directory browsing by default. It’s always good to disable directory browsing in security aspect. To disable directory browsing in apache web server you need to edit the httpd.conf or .htaccess

Disable directory browsing using .htaccess:-

* Open your .htacces file
* Look for Options Indexes
* If Options Indexes exists modify it to Option -Indexes or else add Options -Indexes as a new line
* The directory browsing feature should be disable by now

Disable directory browsing using httpd.conf:-

* Open your httpd.conf, normally it’s located at /usr/local/apache/conf or /etc/httpd.conf
* Go to your own Virtual Host settings and look for “Options Indexes”
* Change the Indexes to -Indexes if Option Indexes exists or else add the Options -Indexes line
* Restart your apache web server.
* The directory browsing feature should be disable by now

Disable directory browsing in CPanel Share Hosting enviroment:-

* Login to your CPanel
* Click on Index Manager
* Directory will be list down. Click on the directory name which you want to disable the directory browsing
* Select No Index and click Save
* The directory browsing feature should be disable by now

Once you disable directory browsing, visitor will not able to browse your directory by accessing the directory directly (if there is no index.html file). This will protect your files from exposing to the public.

, , , , , , , , , , , , , , , ,


Related Posts:
  • WPVideo: Another Great Wordpress Video Plugin
  • 10 Truths About Obtaining Better Google Rankings
  • 8 Methods of Adding More Content to Your Site
  • Getting More Links With Your Backlinks

  • Leave a Reply

    *
    To prove you're a person (not a spam script), type the security word shown in the picture.
    Anti-Spam Image

    FireStats icon Powered by FireStats

    This site is protected with Urban Giraffe's plugin 'HTML Purified' and Edward Z. Yang's Powered by HTML Purifier. 39 items have been purified.