Protects the file .htaccess

blackhack3r4745

New Member
Feb 9, 2015
5
0
0
Hi All,

If you have installed nginx Please add this rule to configure nginx for the protects .htaccess file

Code:
    location ~* "/\.(htaccess|htpasswd)$" {
        deny    all;
        return  404;
    }
example for download .htaccess : https://fhscript.com/.htaccess

Thanx
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
As enricodias4654 says, you don't need the .htaccess on Nginx, just remove it. Although I'll also add the blocking code to our Nginx rules to keep it tidy.