HostOnNet Blog

Disable Directory Browsing in WordPress

Looking for Linux Server Admin or WordPress Expert? We can help.

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.