Re: [squid-users] Re:[squid-users] Blocking big uploads

From: Henrik Nordstrom <[email protected]>
Date: Sat, 11 Feb 2006 16:38:49 +0100 (CET)

On Sat, 4 Feb 2006, Niladri Mukherjee wrote:

> 1. Upload blocking by File extensions

hard. In forms based file uploading the file extension is not known to
Squid.

> 2. The explanation of the Regular expression of calculating the
> Content-Length
> i.e. "acl bigupload req_header Content-Length
> [[:space:]]*[[:digit:]]{6,}" which blocks all HTTP requests larger than
> 99,999 bytes (Thankx to Marco De Vitis), I have place acls with 50kb,
> 200kb, 500kb and 1mb so on.

req_header is the acl type in Squid looking into HTTP request headers.

Content-Length is the HTTP request header indicating the size of the HTTP
message sent to the server.

[[:space:]]*[[:digit:]]{6,}

simply matches any optional whitespace (spaces, tabs etc) followed by 6 or
more digits.

Regards
Henrik
Received on Sat Feb 11 2006 - 08:38:53 MST

This archive was generated by hypermail pre-2.1.9 : Wed Mar 01 2006 - 12:00:03 MST