EasyNet Interactive
Please Login or Register


Use htaccess to Deny Access Directory Listing

Don’t have an index in all your directory’s? Many people create a blank index.html file in every directory to prevent directory listing. It’s ok for a small website, but imagine if you have a website that has hundred or thousand directories.

The easiest way is to write a htaccess file, include the following line in your .htaccess file to deny access to all the directory listings, if there is no index file.

Options -Indexes

Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Creating Backup File (Views: 2649)

Quick Navigation

Client Login



Remember Me