nginx屏蔽特定http_referer的请求

在nginx.conf的server配置项中加入

if ($http_referer ~* "www.xxx.com") {
    return 403;
}


猜你喜欢

转载自blog.csdn.net/zyf_balance/article/details/77679603