Knowledgebase
Portal Home > Knowledgebase > Security > How to disable directory browsing using .htaccess?
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
Also Read
How to protect your website's images from an external website?
3223
How to Disable the Two-Factor Authentication on Your cPanel Account?
3357
How to Enable or Disable Mod Security in cPanel?
3370
How to protect a folder with username and password in cPanel?
3615
How to restrict directory access by IP address?
3443