Proudly Hosting over 100,000 Fast Websites since 2010

How can we help you?

Type your topic or keywords and hit enter to search our knowledgebase.

How to Disable Directory Browsing Using the htaccess Rule

For security purposes, you should disable directory browsing on your website so no one can see the files/directories of your website.

You can disable Directory Browsing by adding the below line to your dot htaccess file.

Options -Indexes
Updated on February 15, 2024