server{
listen 80;
server_name localhost;
# 对源站点验证
valid_referers *.it996.vip;
#非法引入会进入下方判断
if($invalid_referer){
return 403;
}
}
nginx配置资源防盗链
最新推荐文章于 2022-08-29 21:43:46 发布
server{
listen 80;
server_name localhost;
# 对源站点验证
valid_referers *.it996.vip;
#非法引入会进入下方判断
if($invalid_referer){
return 403;
}
}