Top

Daily Tip: Secure WordPress by Preventing Directory Listing

May 5, 2010

For security reasons it’s important to make sure that people cannot navigate your /plugins/ directory. Depending on how your server is set up, your directories may be listed for all to see when visiting those URL’s. You can check on your site by visiting your plugins folder:

http://yoursite.com/wp-content/plugins/

Quick Fix:

Add a blank index.html file to this directory to secure it so that visitors see a blank page when they go there. Adding a blank index.html file to all of your folders can be time-consuming, so if you’re comfortable editing your .htaccess file, go ahead and add this one line:

# Prevents directory listing
Options -Indexes

This will secure your folders sitewide.

Tweet This Post

Comments

Got something to say?

Bottom
Article Archive  |  This site is a historical archive of pressography.com, a WordPress plugin and theme blog that published between 2006 and 2012. It is preserved for reference and is not operated by, affiliated with, or endorsed by its original authors. Nothing here is for sale and no form on this site is active. If you are the original owner and would like this domain returned, please get in touch.