How to protect your .htaccess file

Linux OS Topics
Post Reply
User avatar
Saman
Lieutenant Colonel
Lieutenant Colonel
Posts: 828
Joined: Fri Jul 31, 2009 10:32 pm
Location: Mount Lavinia

How to protect your .htaccess file

Post by Saman » Thu Feb 02, 2012 4:35 am

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>
Post Reply

Return to “Linux”