Date: Thu, 11 Jan 2001 18:46:57 -0500 (EST) From: Jim Freeze <jim@freeze.org> To: Christoph Sold <christoph.sold@server.i-clue.de> Cc: "Mitchell, Jason" <jmitc2@chmc.org>, "'freebsd-questions@freebsd.org'" <freebsd-questions@FreeBSD.ORG> Subject: Re: Limiting number of downloads per user in Apache?? Message-ID: <Pine.BSF.4.21.0101111843050.51405-100000@www.bellnetworks.net> In-Reply-To: <3A5E42FB.D728F40F@i-clue.de>
next in thread | previous in thread | raw e-mail | index | archive | help
With php you can track a visitors ip with $REMOTE_ADDR. This should identify the user, even with multiple windows open. Jim On Fri, 12 Jan 2001, Christoph Sold wrote: > > "Mitchell, Jason" schrieb: > > > > Anyone have any luck with limiting the number of connections or downloads > > allowed per user/visitor on a web site served by Apache? I'm running 1.3.12 > > and getting these people that open up 10-20 downloads all at once, pretty > > much consuming my bandwidth. I'd like to limit it down to 2-3 per user. > > The MaxClients directive won't work, of course, as that will lock everyone > > out once the max is hit. > > There is no clean way to do such a thing. Http is a connectionless > protocol, thus you cannot count how much connections are linked to a > particular client. Also keep in mind the gazillion of surfers connected > through single gateways (AOL, Compuserve,...). > > You may try any form of session tracking, but this will limit only the > dumb user -- some more intelligent people will launch another instance > of their browser, or even use another window to get another connection. > > Just my .02 EUR > -Christoph Sold > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > ==================================================== Jim Freeze jim@freeze.org --------------------------------------------------- ** http://www.freeze.org ** ==================================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0101111843050.51405-100000>