Security VoloWeb Knowledge Base · 1 min read

How to Disable Directory Browsing Using the htaccess Rule

Back to Security

For security purposes, you should disable directory browsing on your website so no one can see the files/directories of your website.


You can disable Directory Browsing by adding the below line to your dot htaccess file.

Options -Indexes



Need a hand with this?

VoloWeb hosting includes free migration, NVMe SSD, LiteSpeed & 24/7 Indian support — plans from ₹69/mo.

Get Started — ₹69/mo