How to protect your .htaccess file?

You are here:
< All Topics

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

Previous How to protect a folder with username and password in cPanel?
Next How to protect your .htaccess file?
Table of Contents