if ($http_user_agent ~* "BadBot") { limit_rate 1k; default_type application/octet-stream; proxy_buffering off; alias /dev/zero; return 200; }