Securing Your Site’s Directories
by Bandicoot Marketing on | 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.
2 comments for “Securing Your Site’s Directories”