1. Home
  2. Hosting Management
  3. cPanel
  4. How to Disable Directory Browsing

How to Disable Directory Browsing

This is useful if you have a big list of files in a directory with no index file and you don’t want visitors to be able to browse through all of those.

How to Disable Directory Browsing

Just add the following line in the site’s .htaccess file located in the root directory of your website.

Options -Indexes

If you are a ChemiCloud customer, we have you covered. By default, the directory listing is disabled on our servers.

Updated on June 29, 2019

Was this article helpful?

Related Articles

Do you still need help?
Get amazingly fast Support from our Happiness Engineers!
Submit Ticket