Forum Moderators: open
I maintain a ban list using mod_rewrite to prevent malicious and poorly designed bots from entering the site. However, Im looking for a proactive solution as well that would keep me apprised of bot activities as they happen.
Is it possible to have a script that monitors bots that come to the site, and initiates an automatic IP ban when the bot ignores robots.txt or goes whacky? It would be a nice solution that wouldnt require you to check your logs every five seconds for any malicious bot activities, and manually place the offenders on a ban list. Instead, a script could automate the process, creating a dynamic ban list for misbehaving bots.
Are there any scripts out there that can accomplish something similar to this, or am I thinking slightly ahead of the times?
Thanks for any advice or help!
Since this is an important issue regarding web security and protection, why are there so few scripts available?
I'm not TOO intimidated at looking at the scripts. After dealing with PHP based scripts, I've learned a lot and have actually on occasion been able to debug certain aspects of PHP code on my site that werent functioning properly. Creating an entirely NEW script from scratch is a totally different story though :-) Im hoping to avoid that if I can.
With my current setup, I have a honeypot directory that is expressly forbidden in my robots.txt file. My mission is to find or create a script that will monitor if that directory had been accessed by a bot that completely ignored robots.txt and to initiate a ban of that bot's user agent or IP address. Once I get that, I'm good to go :D