屏蔽某个蜘蛛
NGINX屏蔽
if ($http_user_agent ~ AAA) {
return 403;
}
.htacess文件屏蔽
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^AAA
RewriteCond %{HTTP_USER_AGENT} ^AAA/1.0
网事随记
NGINX屏蔽
if ($http_user_agent ~ AAA) {
return 403;
}
.htacess文件屏蔽
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^AAA
RewriteCond %{HTTP_USER_AGENT} ^AAA/1.0
V