I'm getting a lot of hackers spamming my domain with requests for files that just don't exist. This is eating up a lot of my allotted bandwidth and I'd like to blacklist these IP addresses.
Is there is a way to automatically blacklist IP addresses in Apache once they have requested X number of files that 404 in a specified time frame?