Page 1 of 1

How to protect your .htaccess file

Posted: Thu Feb 02, 2012 4:35 am
by Saman
Enter the following code at the beginning to prevent viewing of your .htaccess file.

Code: Select all

# Prevent viewing of .htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>