I would like to only allow one IP to use up to, say 1GB, of traffic per day, and if that limit is exceeded, all requests from that IP are then dropped until the next day. However, a more simple solution where the connection is dropped after a certain amount of requests would suffice.
Is there already some sort of module that can do this? Or perhaps I can achieve this through something like iptables?
Thanks