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

Was this answer helpful?

 Print this Article

Also Read

What is FTP? Why do I need it?

FTP - File Transfer Protocol - is one way for you to transfer files to and from your hosting...

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

What is Spam?

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

What are email forwarders?

Email forwarders allow you to forward a copy of all mail from one address to another. For...

How do I decide what to choose for a domain name?

If you're not quite sure exactly what a domain is, you should watch the previous tutorial. When...