How to prevent an htaccess file from being viewed

Is it possible to prevent an htaccess file from being viewed in this manner:

<Files .htaccess>
order allow,deny
deny from all
</Files>

If you use this in your htaccess file, then a person trying to see that file would get returned (under most server configurations) a 403 error code. You can also set permissions for your htaccess file via CHMOD, which would also prevent this from happening, as an added measure of security: 644.

GD Star Rating
loading...
GD Star Rating
loading...

Related posts:

  1. How to Disable Hotlinking of the Images Using .htaccess file?
  2. Blocking users and websites Via htaccess
  3. Importance of htaccess for Web Hosting Accounts
  4. Trick to find a Bad bot with the help of htaccess
  5. How to prevent fraud on your e-commerce website

Posted under Linux Hosting

This post was written by admin on October 17, 2008

Tags: ,

Leave a Comment

Name

Email

Website

Comments

More Blog Post