Prevent users from gaining access to .htaccess files

Create a file called .htaccess and put this code in it:

 <Files ~ ".inc$">
 Order allow,deny
 Deny from all
 </Files>

Put the file in the root of your website.

Done!



Comments are closed.

Post Navigation