January 18, 2009 by  

[HowTo]Turn Off Directory Listing in Apache Web Server

Apache logoToday i found that my web server doesn’t make Directory Listing by default. And this can be a vulnerable for wordpress since wp-content directory can be exploit. So test your blog, if your web server doesn’t turn off the directory listing by default please follow this steps (only works for Apache web server):
1. Create or Edit existing .htaccess
2. Add this code there: Options -Indexes
3. Save and close .htaccess file
4. Test It!
That step will turn off the Directory Listing. Thank you for reading, and have a nice day… :)

What people search:

Post comment as twitter logo facebook logo
Sort: Newest | Oldest

Thank you for sharing this knowledge.

Only just came across this whilst searching how to stop directory listing, so simple! Thanks so much =)

What a simple solution. I was adding dummy index.html files to folders to prevent directory listing. This is MUCH easier. Thanks for the information! :)

How do i test my wordpress directory listing?

Very useful, thank you! Worked perfectly.

You're welcome Nicole :)

Very useful, thank you! Worked perfectly.