Fail2Ban monitors log files like /var/log/pwdfail or /var/log/apache/error_log and bans failure-prone addresses. It updates firewall rules to reject the IP address or executes user defined commands.
Please see code and download from https://github.com/fail2ban/fail2ban . SF Fail2ban portal might not be up-to-date
O melhor programa para compartilhamento
I use fail2ban for 2 main reasons. The first is to automatically ban people trying to hack into the system by stopping IP traffic for a given time after a number of failed login attempts. I also use it to reduce load on RBL servers by blocking IP addresses that are returned by a RBL. This means an IP address will never be checked twice.
very good project
The best way to block those nasty bots and spammer. It's amazingly easy to configure and deploy.