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

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What is hotlink protection?

Hotlink protection is disabling external use of your resources. For instance, if your website has...

How do I configure hotlink protection?

Login to cPanel. Locate and click on the "Hotlink Protection" icon within the "Security"...

How do I block an IP address from accessing my site?

If you wish to ban a user from accessing your website in any way, the best way to do this is to...

How do I password protect a directory?

Login to cPanel. Locate and click on the "Password Protect Directories" icon under the...

How to protect your website's images from an external website?

External Website can use < img /> tag to display an image from your site somewhere else on...