Re: [squid-users] request header/body ACL based?

From: Chris Robertson <crobertson@dont-contact.us>
Date: Fri, 26 May 2006 11:10:43 -0800

Wojciech Puchar wrote:

> is it possible to place a limit on http POST body, but not globally
> but for a given URL?
>
> it's very important for me.

Something like the following should get most of them...

acl large_upload req_header Content-Length [1-9][0-9]{6}
acl POST method POST
acl limited_site dstdomain .forms.are.us

# Prevent anyone from POSTing more than 999,999 bytes to *.forms.are.us
http_access deny large_upload POST limited_site

See http://www.squid-cache.org/mail-archive/squid-users/200604/0422.html
for more details on building a regular expression to match other sizes
of uploads.

Chris
Received on Fri May 26 2006 - 13:10:57 MDT

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