屏蔽各个搜索引擎蜘蛛ua,伪静态规则

admin2020-11-1741338

屏蔽各个搜索引擎蜘蛛ua,伪静态规则

代码如下:

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

网友评论