nginx禁止恶意压力测试

在虚拟主机server里添加

if ($http_user_agent ~ ApacheBench|WebBench|Wget)
{
return 403;
}

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.