Search squid archive

Re: request header/body ACL based?

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

 



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

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

  Powered by Linux