Shelf makes it easy to create and compose web servers and parts of web servers. How? Expose a small set of simple types. Map server logic into a simple function: a single argument for the request, the response is the return value. Trivially mix and match synchronous and asynchronous processing. Flexibility to return a simple string or a byte stream with the same model. An adapter must handle all errors from the handler, including the handler returning a null response. ...
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).