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 SSL/TLS certificate?

Whenever you or your visitors access a website through a secure, encrypted connection, that...

Should I pay for private domain registration?

If you've watched the previous tutorial, you may be worried about your personal domain...

What's the difference between shared, dedicated, and other types of hosting?

Shared hosting is probably what you're most interested in, especially if you're just starting out...

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

What are domain names? How do they work?

Every server in the world that has access to the Internet has at least one IP address -- to...