I am using the below standard config to block download of hidden files from nginx :
#Prevent (deny) Access to Hidden Files with Nginx
location ~ /\. {
access_log off;
log_not_found off;
deny all;
}
But this config is also blocking genuine requests like :
2013/10/09 17:24:46 [error] 20121#0: *593378 access forbidden by rule, client: XX.55.XXX.201, server: XYZ.org, request: "GET /vip/validate.php?id=dfddfQ&title=.Mytitle HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "xyz.org"