How do I disable directory browsing?

By default, if you don't have an index file in a web accessible folder, when accessed through a browser, its contents will be listed.

To prevent the listing of the folder's contents, you should add the following line to the .htaccess file in the folder (if there is no .htaccess file, you can easily create a new one):

Options -Indexes

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Error Page Codes

These numbered error codes are how the server tells website visitors about an error encountered....

What do you mean when you say gigabyte, megabyte, GB, and MB?

The smallest unit of measurement on a computer is the bit. There are almost always eight bits in...

Propagation Times

Propagation is the process of updating a domain with new nameserver (DNS) information across all...

What is an Uptime Guarantee?

Server uptime refers to the amount of time in a given period a server stays up and running....

Why shouldn't I go for that unlimited plan? Beware overselling.

If you've been searching for a web hosting provider, you have probably seen some offers that look...