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

What is an email auto-responder?

An email auto-responder is exactly what you'd expect based on the name. Inside most control...

Why does my website look different on different browsers?

Having a website look the same on different browsers has been an ongoing issue for the web...

How To Edit Your Hosts File (Windows, Mac, Linux)

Modifying your hosts file allows you to override the DNS for a domain, useful when you want to...

What is Spam?

Spam refers to junk email that's sent out in mass quantities. On average, three-fourths of the...

How to block search bots from accessing your site?

In order to block all bots from accessing your site, you should create a robots.txt file with the...