Inforcing limits on visitors in reverse proxy mode. How?

Hi all,

I would like to prevent visits of my sites, which are behind Squid running in reverse proxy mode, from downloading my entire file archives and thereby consuming all my bandwidth.

I have found some docs on how to limit download speed, but that’s not really what I’m after. I just want to limit the amount of data a user (read: IP address) can download per day/week/period.

Can this be done?