Logged In: NO

That would be great. Fail2ban can do that but it uses iptables to block hosts.

For apache there is a _great_ mod called mod-security that works like a firewall for apache server. It has proven it's value for me, it has blocked couple of attacks to an unpatched exploit at phpbb2-forum that I host.