标题: nginx的防盗链好像只能http的网站不能https?
时间: 2017-09-26发布,2017-09-27修改
location ~ .(gif|jpg|png|bmp|zip|rar|swf|mp3|mp4|tar|fly|jpeg)$ {
expires 30d;
valid_referers regular expression .baidu.com;
if ($invalid_referer) {
return 404;
}
}
举例百度 白名单添加的百度 但对http方式的百度有效不会404,对https的百度他就一直会防盗链处理给404,是姿势错误么,求大量能给下正确的图片防盗链配置
魅族MX2高配版(绿色)
『回复列表(0|隐藏机器人聊天)』