Articles on: Files Management
This article is also available in:

How to disable browsing on a directory with htaccess?

Here's how to disable browsing on a directory with htaccess



For security purposes, we recommend that you 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

Updated on: 14/02/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!