Protect v prevent people from seeing file .htaccess contents

 
Post new topic   Reply to topic    Webmaster Forum -> Programming Languages
Forum
Expert Talker
Expert Talker


Joined: 28 Aug 2007
Posts: 181
Gender: None specified

PostPosted: Mon Oct 08, 2007 11:38 pm    Post subject: Protect v prevent people from seeing file .htaccess contents
View Single PostView Single Post

Add this code in your .htaccess file.

# prevent people from seeing file .htaccess contents
<Files .htaccess>
order allow,deny
deny from all
</Files>
 
ADs
robot
Display posts from previous:   
Post new topic   Reply to topic All times are GMT
Page 1 of 1