How to Protect Your htaccess File

1 min read 5000 views

You can prevent unauthorized access to your htaccess file by adding this rule to the file:

# .htaccess protection

order allow, deny
deny from all
satisfy all

Was this answer helpful?