cravlAndBlock is simple java application that cravl error log file of Your web server and add all attacker IPs.
I.E. All Modsecure entries, scans and so on.
Every bad IP will be added to hosts.deny file with ALL prefix.
For sure it will not block all atacks but it will help.
How it works: use cron to start java cravlAndBlock.jar in the same folder add properties.xml (I addes sample properties.xml file).
Like Unix-Tail BUT:
- Runs with or without GUI
- Suspend and resume tailing at runtime
- Can monitor a set of Files
- Print output to a textfield, stdout or file
- Runs in "Grep" mode, too (Read files once)
- (Almost) the same options as Unix-Tail
JSwatch is a java version of Swatch developed by Todd Atkins. It features great extensibility by alowing users to write their own classes that can analyze, notify, react or do pretty much anything that can be done in Java in response to entries in logs.