*建议各商家加上如下代码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
map $http_referer $bad_referer { hostnames; default 0; # Black list domain "~zhujiceping.com" 1; "~v2ex.com" 1; "~hostloc.com" 1; "~zhihu.com" 1; "~affyun.com" 1; "~t.cn" 1; } if ($bad_referer) { rewrite ^(.*)$ https://$host/paolu.html permanent; } |