Jul
17
2009

Securing Your Site’s Directories

by   |  Posted in Tutorials  |  2 comments

If you store files or images in a folder called “images”, and people enter www.yoursite.com/images as a URL, they will see a list of all the files you have in that directory. A quick way to solve this is to create an empty index.html or index.php file and upload it to the directory. This will load an empty page instead of showing a content list.

Another way of doing this is by modifying (or creating) a .htaccess file. Just place:

Options -indexes

in your .htaccess file and it will do the same thing as adding an index.html file to your folder.

About the author:

A freelance web developer living in Montreal who spends most of his time writing for this site and building Premium themes for WordPress. You can find him on Twitter @bavotasan.

Site5 Affiliate Link
If you liked this, please share it.

Tags: , , , , , , , , , , ,

Short URL: http://bit.ly/9HHKz1

Discussion 2 Comments

  1. lowongan kerja on July 22, 2009 at 10:34 pm

    Good tips Mr. B.
    thx

  2. Hummy on September 8, 2009 at 9:07 am

    Excellent Tip!