New customers save 5% – use code GURU5Shop Deals →
Security

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

Was this article helpful?

Let us know — it helps us improve our documentation.

🙏
Thank you for your feedback!

Your input helps us write better guides for everyone.

← Browse more articles
⚡ Best Value
Shared Web Hosting

Fast LiteSpeed hosting from KES 199/mo. Free SSL, free domain & 24/7 support.

View Plans →

Latest from the Blog

View all articles →