On Sat, 17 Jan 2004, Stas Bekman wrote:
Dave Rolsky wrote: [...]
The code I wrote isn't really designed so much to throttle requests as to impose quotas, so that you can say "no client can download more than X per day". This is more useful if you're delivering relatively large files (like 200-900k RSS feeds, which I am) and you don't want people downloading it once per hour.
How do you identify a unique client? i.e. how do you deal with those behind a proxy and coming from the same IP?
I don't. If that's a problem, don't use it that way ;)
Actually, the way I'm using it is to grab the user's user id for my site from their cookie. It's pretty flexible because you can just provide it a subroutine to call to get some sort of identifier for the requestor.
Sounds perfect to me. Let module users figure out how to identify a unique client ;)
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html