Re: [squid-users] How to limit upload for a particular source ip/user?

From: Senthil Murugan <zenmurugan@dont-contact.us>
Date: Wed, 24 Aug 2005 08:55:42 +0530

Thanks for your response

On 8/22/05, Joost de Heer <sanguis@xs4all.nl> 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.
Received on Tue Aug 23 2005 - 21:25:57 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Sep 01 2005 - 12:00:02 MDT