Why would it still be possible to download a file?
The squid doesn't allow you to make connections to the web when you're
on the blacklist in the case of using ACL's and it redirects to another
page in the case of the redirector.
I have to admit that there are some flaws:
- if you are a few bytes next to the limit, you would be still able to
do just 1 download (but that could be a large file) since you can only
update on the base of requests that are _done_.
- i assume squid in a transparant proxy situation
Moshe Beeri wrote:
But then a file download will be still posiable,
Try to do it by controlling it from the router, if your router supports
QoS.
-----Original Message-----
From: Tristan Linnenbank [mailto:tristan@xxxxxxxx]
Sent: Monday, June 12, 2006 11:41 AM
To: cable linux
Cc: squid-users@xxxxxxxxxxxxxxx; khankhn2@xxxxxxxxx
Subject: Re: Download Limit
Maybe you could write a daemon that parses the access.log and
counts the bytes used per ip-address. Once the bytes used per
ip-address exceeds the limit set by you, you could add the
ip-address to a kind of 'black list'.
Write a redirector that checks the blacklist. If the
source-ip address is in the blacklist, redirect the user to a
page showing 'bandwidth exceeded'. If the user is not in the
blacklist, don't redirect the URL.
Or skip the redirector and use ACL's using the external black
list file.
I'm just a newbie to squid so this might be bad practice...
cable linux wrote:
Dear All Folks,
I want to ask one question which is that, is there a way to
set 150MB
to per ip address. lets suppose
i have below ip address i want to assign 150MB per day though squid.
192.168.3.11
192.168.3.12
192.168.3.13
192.168.3.14
192.168.3.15
192.168.3.16
i have below ip address i want to assign 450MB per day
though squid.
192.168.3.200
192.168.3.201
Is there way to do this thing with or squid or any other software
requires for that purpose.
Waiting for Quick Response.
Regards
Cablez
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com