How to protect your .htaccess file?

Avatar

By Craig Grant

updated 12 months ago

For security purpose we recommended 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

Did this answer your question?