fail2ban can watch the nginx logs for throttling and&#x2F;or blocking messages and add iptables rules for you.<p>I haven&#x27;t read this all the way through, but on a cursory glance it looks reasonable:<p><a href="https:&#x2F;&#x2F;easyengine.io&#x2F;tutorials&#x2F;nginx&#x2F;fail2ban&#x2F;" rel="nofollow">https:&#x2F;&#x2F;easyengine.io&#x2F;tutorials&#x2F;nginx&#x2F;fail2ban&#x2F;</a>