I’m new to perl and I’m seeking perl monks wisdom I’m desperate.
We have apache server and it handles multiple request from multiple users then directs it to a java application that handles the requests, but lately we been getting to many requests from couple of IP addresses. I want to block the IP if too many request comes (ex: If the allowed transaction for second (TPS) from an IP is 10 and if more than that comes I want to block that IP for some time).
The idea I’m having is to write a log in the java application and by reading the log to filter the IP. I don’t have any clue will it work or is there a better method. Can anyone help me please?
Thank you in advance.