Prevent Directory Listings With .htaccess

Preventing a directory listing for your website is essential these days. If a hacker knows your website structure you can be left open for a world of hurt. Did you know that you can prevent directory listings for every directory in your website by using one simple directive in the .htaccess file at the main level of your website? You certainly can:

Options -Indexes

Don't leave your website structure open! Prevent directory listings if your server does not do so already!


Comments


    Be Heard!

    Share your thoughts without being a jerk! And wrap your code in <code> tags, f00!

    Name*:
    Email*:
    Website: