1.禁止BING来路,直接404
if ($http_referer ~ 'bing.com')
{
return 404;
}
2.百度和谷歌来路的都跳转到首页
if ($http_referer ~* "www.baidu.com") {
rewrite ^/(.*)$ https://hiyae.com redirect;
}
if ($http_referer ~* "www.google.com") {
rewrite ^/(.*)$ https://hiyae.com redirect;
}
评论