How to disable directory browsing using .htaccess?

Contents

    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 September 19, 2016
    Was this article helpful?

    Leave a Reply

    Your email address will not be published. Required fields are marked *