0%

Nginx防盗链

Nginx防盗链

1
2
3
4
5
6
# 源站点验证
valid_referers *.zhhll.icu
# 如果Referer Header头不符合valid_referers指令设置的有效Referer,变量$invalid_referer将被设置为1
if($invalid_referer){
return 403;
}

欢迎关注我的其它发布渠道