How to protect your .htaccess file?

Contents

    For security purposes, we recommend you to prevent access to your .htaccess file from unauthorized access.

     

    Add this code to your .htaccess file:

    # .htaccess protection
    
    order allow, deny
    deny from all
    satisfy all
    Updated on September 19, 2016
    Was this article helpful?

    Leave a Reply

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