Fail2Ban filters for Drupal
Drupal and Fail2ban should be installed and setup. Root access to your host.
-
Copy the
.conffiles into/etc/fail2ban/filter.dand add the content ofdrupal-jail.localto the end of your/etc/fail2ban/jail.localfile. -
Reload fail2ban by
service fail2ban force-reload
According to the pattern in the .conf files, IP addresses are getting blocked for a while. It results in less load on your Drupal host, and more secure Drupal installs. See particular result in your log file:
tail -f /var/log/fail2ban.log