Prevent virtual directory listing services from listing the contents of directories, and/or show a page in place of a directory's listing.
As of April 2026, Disable Directory Listings is a WordPress Apache plugin with 100 active installations and a 5/5 rating from 1 reviews. It has been downloaded 7.2K+ times in total. Requires WordPress 3.0+ and PHP false+. Available on WordPress.org since 2011. Last updated 14 years ago — may have compatibility concerns. Top alternative: Redirection.
Prevent virtual directory listing services from listing the contents of directories, and/or show a page in place of a directory’s listing.
The Apache web server can be configured to automatically display the listings of the contents of a web site’s file directory if no index file (i.e. index.html or index.php) is present. This can expose files and information to visitors. Of course the web server could be configured to not do this (the recommended approach), but sometimes you don’t have permission (you’re on a shared host), the know-how, or you want to selectively disallow virtual directory listings. That’s where this plugin can help.
If you want to test if your site has virtual directory listings enabled, try visiting http://www.YOURSITE.com/wp-includes (…
| WordPress | 3.0+ requiredTested up to 3.2.1 |
| PHP | false+ required |
…and 23 more changes
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.