Security 99 Recently updated 2 min read

How to Protect the htaccess File

How to Protect the htaccess File

You can prevent unauthorized access to your .htaccess file by adding the following rules to the file:

# .htaccess protection
order allow,deny
deny from all
satisfy all

Related articles

Discussion

Loading the discussion…