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

Clear cache in Firefox, Internet Explorer, Safari, Opera and Chrome

Here are instructions on how to clear your cache in the following browsers: Firefox: Open...

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...

What are web servers? Why are they necessary?

Web servers are computers that have been set up by a hosting company, usually in a facility...

How many email accounts do I need?

That's really up to you; it depends on how many people you think will be using email on your...

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...