Hiding your htaccess file

A great way to improve your security is hiding your htaccess file, since this file usually contains quite some information that can be indicative of the structure of your website or the content management system that was used to create the site. This can be done by taking two distinctive steps:

1. htaccess file permissions

First you’ll need to set the file permissions of your .htaccess to 644.

2. Add this to your .htaccess file

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