How do you use iptables to prevent hundreds of pages from being accessed from the same IP address within a minute?

Is there a way to prevent 100 websites from being accessed from the same IP address, in order to prevent or at least limit an attack from that IP address? The attacker attempts to access one or more domain names, usually one, using 100 different MYSQL injection attacks. How to limit the number of simultaneous…