Wordpress Security: Disable directory browsing using htaccess on Apache Web Server

by Aky Joe on February 17, 2010

Blogspot Wordpress migration service

Is your website or blog using Apache Web Server ? Well, beware of the fact, that directory browsing is enabled by default.

image

Below is a screenshot which will clear you something about directory browsing.

image

If you are particular about the security aspects of your web assets, you should disable directory browsing on Web server. There are two ways to disable directory browsing from a web host, one is by editing .htaccess file and other is editing httpd.conf file. In this article, I’ll be dealing the first method, ie. using .htaccess file. The procedure goes right under:

Note: Before making any changes, backup the website data as well as the htaccess file.

1. Open the .htaccess file located in the root of web hosting (using ftp).

2. Search for Options Indexes, if found edit is to “Options-Indexes”.

3. If there is no Options Indexes existing, add as in new line “Options-Indexes”.

4. Once the htaccess file is edited, save it. This concludes that the directory browsing feature is disabled now.

Well, once the above procedure is applied, visitor will not be able to browse the web directory, if no index.html file exists.

For any queries or further assistance required, post comment as your feedback.

Related posts:

  1. How to Password Protect Web Directories using htaccess ?
  2. Wordpress Security: Restrict wp-content and wp-includes on wordpress using htaccess
  3. Improve Performance by Image Caching of Wordpress Blog using htaccess trick
  4. Disable Wordpress Post revision Without Plugin
  5. How to detect iPhone Browser in Wordpress and redirection using htaccess ?

Wpfreelancer

Leave a Comment

Previous post:

Next post:

.