PDA

View Full Version : Download quotas feature?


Prufrock
11th of August 2007 (Sat), 13:54
Hi, does EE have the ability to limit the number of full-size images visitors can view/download in one day? I was thinking a quota based on the number of megabytes would be how that was done. If not does anyone have an idea as to how hard that would be to code?

As you know, web hosts can get expensive if you go over the bandwidth quota, and there are people who try to leech your entire site using automated software. This is especially true if your full-size images are 2 or 3mb each.

Thanks!

UweB
13th of August 2007 (Mon), 03:27
Would this not be something to configure in the webserver? As far as i know it is, plus some other features like max. download speed and connections per IP...

Pekka
13th of August 2007 (Mon), 07:36
Best approach: put large size images under protected path and allow the path only for certain non-public user account(s) in EE. Or, if you have resources, rent a server with unlimited bandwidth and have EE serve big images from there.

Restricting MB/s per client is done with web server (I use Litespeed), EE can not control that with standard IMG viewerstyle. Technically you could code EE to restrict MB/s per client in http obfuscation mode but one IP can serve entire ISP so that might make your site very slow for many "good" people.

Prufrock
14th of August 2007 (Tue), 23:21
Thanks, guys. I didn't think about how a dedicated server could do this independently of EE's code. That seems like the best option if a site every got to the point that it really needed a dedicated server.