IP bases access control list script

view full story

http://serverfault.com – I would like to setup ACL (python script or any ready made Centos compatible scipt) & limit rate for all IP addresses, who are hitting the site very frequently. For example crawlers, bots (except google & bing bots). After identifying the ip address, script should automatically add those IP address IPTABLES so that they cannot access the site. I have following application added to my Centos OS Apache 2.x MySQL 5.2 Varnish Memcache APC Please advise what is best possible solution for this. (HowTos)