HostOnNet Blog

Disable Directory Browsing in WordPress

As WordPress is a popular blogging platform many people know the structure of a WordPress install and know where to look for the plug-ins we are using or any other files that might give away too much information about our site, we can reduce this risk by prevent directory browsing.

To disable directory browsing in WordPress, add the following content in your .htaccess file.

# Disable Directory Browsing
Options All -Indexes

Posted in Wordpress