52ll.org
52ll.org

Nginx 屏蔽搜索引擎爬虫配置

Nginx 屏蔽搜索引擎爬虫配置

if ($http_user_agent ~* (baiduspider|360spider|haosouspider|googlebot|soso|bing|sogou|yahoo|sohu-search|yodao|YoudaoBot|robozilla|msnbot|MJ12bot|NHN|Twiceler)) {
		return  403;
		}

参考来源

https://doub.io/wlzy-3/

发表回复

textsms
account_circle
email

52ll.org

Nginx 屏蔽搜索引擎爬虫配置
Nginx 屏蔽搜索引擎爬虫配置 if ($http_user_agent ~* (baiduspider|360spider|haosouspider|googlebot|soso|bing|sogou|yahoo|sohu-search|yodao|YoudaoBot|robozilla|msnbot|MJ12bot|N…
扫描二维码继续阅读
2018-05-25