我想阻止不需要的Bots访问服务器上的站点.
当检测到某个Bot时,nginx能否立即丢弃/终止连接?
if ($http_user_agent ~ (agent1|agent2) ) { **KILL CONNECTION**; }
像上面的例子.