Search squid archive

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

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

 



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

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

  Powered by Linux