How to disable directory browsing using .htaccess?

You are here:
  • Main
  • Security
  • How to disable directory browsing using .htaccess?
< All Topics

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

Previous How to blacklist an IP Address to deny it access to your website?
Next How to disable directory browsing using .htaccess?
Table of Contents