防盗链分为两种:一种是url防盗链,一种是模块防盗链1、url配置:valid_referersnoneblockedserver_names
location~*\.(jpg|png)${
valid_referersnoneblocked192.168.1.7;
if($invalid_referer){
rewrite^/http://www.baidu.com;
#return403;
}
}2、模块配置:location/downloa..
分类:
其他好文 时间:
2015-05-11 20:14:53
阅读次数:
170