if ($http_user_agent ~* (baiduspider|googlebot|soso|bing|sogou|yahoo|sohu-search|yodao|YoudaoBot|robozilla|msnbot|MJ12bot|NHN|Twiceler)){ return 403; }以上代码放在需要屏蔽的server的代码 location / {}里面
声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。
if ($http_user_agent ~* (baiduspider|googlebot|soso|bing|sogou|yahoo|sohu-search|yodao|YoudaoBot|robozilla|msnbot|MJ12bot|NHN|Twiceler)){ return 403; }以上代码放在需要屏蔽的server的代码 location / {}里面
声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。