How to disable directory browsing using .htaccess?

Security Security Write a comment

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



Write comments...
or post as a guest
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.