You want to give them full bandwidth, right? If not, there's delay pools
that limits bandwidth.
If we're talking about byte limits, Squid does not have this built in, but
it should be technically possible to do this with a redirector. Passing the
userid/password from an authenticator to the redirector is however not that
simple. In any case you'd probably end up having to write something yourself.
If there's a specific type of files (based on extensions) you want to
limit, I guess you could tweak one of the redirectors (such as squidGuard)
to pass the request through a page with a PHP script which handles the
authentication and the limiting.
Then there's all the problems with file sizes (since you have no way of
knowing how large the files are) It should be possible, with PHP, to
download the file for the user, check the size and then add this to the
users byte count.
It basically boils down to that this functionality is not there at the
moment, but (as with anything) it is technically do-able.
Delay pools will probably give you the same effect tho.
At 15:09 12/07/1999 +1100, Mark Pleasance wrote:
>Hello all,
>
> I'm trying to find a way to limit the the amount of data users on our
>network can download over a certain time period. I've read about
>authentication and that seems no problem, either with a username/password
>text file or LDAP but I need a method of accumulating the amount downloaded
>per user and banning access if a limit is reached. The ability to 'clear'
>the download figure each week/month automagically would be great too.
>
>Any ideas?
>
>Thanks in advance.
>
>Mark
>
>---------------------------------------------------------------
>Mark Pleasance mark@crc.vic.edu.au
>Computer Tech/Network Administrator
>Catholic Regional College
>Geelong, Victoria, Australia
>---------------------------------------------------------------
-- Espen Lyngaas, IT Consultant, Color Group ASA Espen.Lyngaas@colorline.no Espen.Lyngaas@c2i.net http://www.team17.com/~elyngaas/ Phone: +47-95063143 +47-22944315 ICQ: 43241796Received on Tue Dec 07 1999 - 01:52:54 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:49:45 MST