You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Chris Bolt <ch...@bolt.cx> on 2002/09/01 07:16:02 UTC
[users@httpd] Limit connections per IP?
Is there any way to limit the number of connections by an IP to an
apache server? Every once in a while I get a user who wants to spider my
entire site (which is database-backed) and they end up with 160
concurrent connections, with MaxClients 192 (this server is just for
dynamic content, static content is served by thttpd elsewhere),
effectively causing a denial of service attack. Raising MaxClients is
not an option. I'm already taking measures to prevent our site from
being hit by conventional robots. I'm using robots.txt everywhere, and
for those buggers which don't look at robots.txt (like Express
WebPictures) I use BrowserMatch to deny them access by their User-Agent
string. The problem is with these robots which apparently fake common
browser UAs.
I tried using mod_throttle for a while, but it doesn't limit concurrent
connections, only things like hits per second, and the author recommends
against using the directive needed to throttle in that way
(ThrottleClientIP). Right now the only thing I can do to block these
users is firewall them.
Has anyone else experienced this problem before, and if so have they
come up with a solution?
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org