HostCupid
HostCupid Knowledgebase

How to disable directory browsing using .htaccess?

For security purposes, we recommend that you to disable directory browsing on your website so no one can see the files/folders of your website.You can disable Directory Browsing by adding this line to your .htaccess file.Options -Indexes

Security 16325 views
For security purposes, we recommend that you to disable directory browsing on your website so no one can see the files/folders of your website.
You can disable Directory Browsing by adding this line to your .htaccess file.

Options -Indexes

Continue learning

More HostCupid guides

Explore related website, hosting, WordPress, security and reseller topics.

Knowledgebase14649 views

How to protect your .htaccess file?

For security purpose we recommended you to prevent access to your .htaccess file from unauthorized access.Add this code to your .htaccess file:# .htaccess protectionorder allow,denydeny fro…

Read article →