How to disable directory browsing using .htaccess?

2016-09-19T10:44:57
Sreenivasa Reddy G
1 min read

How to disable directory browsing using .htaccess?

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

Tags
cPanelWHM

Need Expert Help?

Our team of cloud and IT experts is ready to help you solve your toughest challenges.