Quantcast
Viewing latest article 1
Browse Latest Browse All 2

Prohibit Browsing of Folders on Your Site Using .htaccess

Don’t want people seeing all the files you have in a directory when you don’t have an index page there?

To stop directory listings from showing up, add the following line inside an .htaccess file placed in the directory you wish to protect:

Options -Indexes

Alternatively, you can upload a blank page named index.html to the directory you’d like to protect.


Viewing latest article 1
Browse Latest Browse All 2

Trending Articles