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 March 25, 2020
Was this article helpful?

Related Articles

Spring into Savings!
Up to 78% Off Hosting Plans + Free Migration!
👉 View Deals

Leave a Comment