On my site often I see thousands of requests thats ends up 404 - page not found error.

How can I block the IP that exceeds more than certain number of requests within a span of time from Drupal?

enter image description here

1 Answer 1


What you want is called fail2ban. There is a Drupal 7 module, but you would need to update it to Drupal OOP: https://www.drupal.org/project/fail2ban

But here's a recipe for integrating the Honeypot module with fail2ban: https://www.drupal.org/docs/contributed-modules/honeypot/integrate-honeypot-with-fail2ban

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.