leafleafDocy banner shape 01Docy banner shape 02Flower illustration

How to Disable Directory Browsing

.htaccess is a resourceful file that can allow or deny access to your website or a folder or files in the directory in which it is placed by using order, allow and deny keywords.

Options All -Indexes

That’s it. Now you know how to Allow or Deny access to your website using .htaccess.

Share this Doc

How to Disable Directory Browsing

Or copy link

Table Of Contents