View Single Post

  #1 (permalink)  
Old 12-19-2006
ernestm@mindspring.com
 
Posts: n/a
Default Limiting Apache Connections By IP - mod_throttle, mod_limitipconn, what?

OK, so I have a server that's serving large file downloads. People
using download accelerators, especially from slow network locations,
are maxing out my Apache procs and DoSsing the site.

Example: someone with an accelerator set to "download in 50 KB chunks"
in China - when pointed at a 650 MB file, they fill it right up. I
figure what I need to do is limit the number of simultaneous
connections from a given IP - our FTP daemon which serves the same
content does this and it eliminates the problem.

So I looked around and couldn't find a great solution. mod_throttle
was spoken well of but it's taken down and there's some snarky message
by the author on his Web site about "it's down and don't ask me why."
I found mod_limitipconn but it doesn't look like it's been touched
since 2002.

So question - what's a good, well-supported way to do this (in Apache
1.3 or 2.x on Red Hat)?

Thanks,
Ernest Mueller