14
在nginx.conf的server配置项中加入
if ($http_referer ~* "xxx.com") { return 403; }
if ($http_referer ~* "xxx.com") { rewrite ^/ http://www.xxx.com/;}
if ($http_referer ~* "xxx.com|aaa.com") { rewrite ^/ http://www.xxx.com/;}