Home » Default » 屏蔽某个蜘蛛

NGINX屏蔽

if ($http_user_agent ~ AAA) {
return 403;
}

.htacess文件屏蔽

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^AAA
RewriteCond %{HTTP_USER_AGENT} ^AAA/1.0

标签: Nginx .htacess 蜘蛛

添加新评论

V