How do I disable directory listing?

Disabling directory listing is an important. By removing access to the list of files within your directory your making your site more secure, as no one will be able to find loop holes in your software security.

We strongly recommend that you place this line into your .htaccess in the /public_html/ folder:

Options +Indexes

This line will disable the listing of directories for your whole website.

Or another way to do this is upload a blank index.html file inside each folder

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How do I modify the inbox size within cPanel?

When you successfully create mail account in cPanel, the default quota will be assigned to the...

How do I block an IP address using cPanel?

If you want to prevent an IP address or a whole range of IP addresses from accessing your site,...

After suspension, my databases are not working

If you are getting the following message; "Error establishing a database connection", this is a...

Does my hosting account have a file count (inode) limit?

All hosting accounts / providers have some sort of file count limit. The file count limit to...

How do I obtain Raw Access Logs?

Raw Access Logs are logs that are going to give you the most information about your sites...