Plugin Directory

!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Disable Directory Listings

Version: 2.0 Prevent virtual directory listing services from listing the contents of directories, and/or show a page in place of a directory's l

How do I make a WordPress page appear when a user tries to access a directory on my site?

Create a page (not post) with the same name as the directory. And ensure the directory is listed in the plugin's settings (found at Settings -> Directory Listings). If the directory you wish to create a page for is below another directory (relative to the root directory of your site) such as wp-content/plugins, then you must first create a page named wp-content, and then a page named plugins which you need to make a child page of wp-content.

I've activated the plugin but I can still see the directory listing for one of the directories protected by default; what gives?

Is your .htaccess writable? Visit the plugin's options page, Settings -> Directory Listings, to check and find out more info.

Can't I just configure Apache directly via its .conf file to prevent directory listings?

Yes. Assuming you already have virtual directory listing enabled and have edit/write capabilities on Apache's httpd.conf file (or the .conf file containing the configuration for your site) you could remove the Indexes option, so that, for example:

Options All Indexes FollowSymLinks MultiViews


Options All FollowSymLinks MultiViews

Or you could add:

Options -Indexes

If you have the capability and knowledge to do this, that's great and I urge you to do so. However, if you don't have that capability because you are on a shared host and can't edit Apache's httpd.conf file, or you want some easier, fine-grained controls, you can give this plugin a shot.

Requires: 3.0 or higher
Compatible up to: 3.2.1
Last Updated: 5 years ago
Active Installs: 900+


5 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.