Block External Connections

I just want to know if APF (or httpd itself) has any options to ban IPs which have more than XX connections to server at one time? I'm asking, because I'm receiving lots of connections from Iran. Single IP has about 40-60 connections and it overloads server. I ban IPs manually, but they use other IPs then. How could I fix it?

 

 

 

 

Top