Nginx屏蔽特定http_referer的请求


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

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

标签:

文章发布时间:2019-06-18