Anyone know how to limit a amount of connections per i.p.?

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
I don't believe that you can do it in standard apache. However, you can do it using mod_throttle I believe by using its ThrottlePolicy directive within a VirtualHost container in httpd.conf like this:
Code:
<IfModule mod_throttle.c>
 ThrottlePolicy Request 4 1
</IfModule>
A Request here is an IP address and we're limited 4 connections per 1 second:
http://www.snert.com/Software/mod_throttle/
 

WebHostPro

Well-Known Member
PartnerNOC
Jul 28, 2002
1,725
28
328
LA, Costa RIca
cPanel Access Level
Root Administrator
Twitter
chirpy said:
I don't believe that you can do it in standard apache. However, you can do it using mod_throttle I believe by using its ThrottlePolicy directive within a VirtualHost container in httpd.conf like this:
Code:
<IfModule mod_throttle.c>
 ThrottlePolicy Request 4 1
</IfModule>
A Request here is an IP address and we're limited 4 connections per 1 second:
http://www.snert.com/Software/mod_throttle/
Thanks Chirpy but I am a big fan of that mod. I will just have to make due.

Thanks again.