Last few days I have been searching for and banning bots that were trying to SPAM guestbooks/forms/forums on my websites. I am banning them using .htaccess but the problem is I need to copy the htaccess to all websites on the server.
How can I ban these IPs from the entire server rather than banning them from individual websites? I have CentOS 4/Apache/WHM-CPanel and root access. Not sure about firewalls though.