Search squid archive

Re: How to limit upload for a particular source ip/user?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for your response

On 8/22/05, Joost de Heer <sanguis@xxxxxxxxx> wrote:
> acl my_net src 10.0.0.1/255.255.255.0
> acl USERA src 10.0.0.1/255.255.255.255
> acl UPLIMIT req_header Content-Length [5-9][0-9]{5,}

And if the size is 10000000? That won't match that regex.

acl UPLIMIT req_header Content-Length [5-9][0-9]{5} [0-9]{7,}

(either 6 digits with a 5-9 at the begin, or 7 or more digits)

Joost

Thanks for the reply:
acl UPLIMIT req_header Content-Length [5-9][0-9]{5} [0-9]{7,}

That should block anything => 500KB.
Note that the Content-Length header is in bytes.

acl UPLIMIT req_header Content-Length [0-9]{8,}
should block anything >= 10000000 (10MB)

I hope that I've got it right this time. Please correct any errors or
give me some hints about a better method.


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux