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. -- Regards. Abu Khaled