604542720 发表于 2017-6-17 12:14:17

nginx防盗链怎么设置才能不屏蔽搜索引擎?

如题,按照下面两种方式设置,搜索引擎的爬虫还是会被屏蔽掉

1. valid_referers *.aaa.com server_names ~\.google\. ~\.baidu\.;

2. valid_referers *.aaaa.com *.google.com *.baidu.com;

123.125.71.105 - - "GET /******** HTTP/1.1" 403 162 "-" "Baiduspider-image+(+http://www.baidu.com/search/spider.htm)" -
页: [1]
查看完整版本: nginx防盗链怎么设置才能不屏蔽搜索引擎?