On detecting a bad "bot" I would like to prohibit further access from the IP for a period of time. On my windows server I can set a timeout of, for example, 24 hours during which an IP is blocked due to a bad UA, bad behaviour etc.
Ideally, detecting such a thing on one site should block the IP for all sites on the server.
Reasoning: on having its UA rejected, the perpetrator can change the UA - this is not unknown. If a client is detected falling into a bot-trap it should remain in the trap even when fetching a good page afterwards.
I would like to do this on apache (linux) using setenv, rewrite or something slmilar. Is this possible?