Re: [squid-users] block upload / attachment

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 06 Apr 2011 11:43:21 +1200

 On Tue, 5 Apr 2011 16:34:22 -0400, Mohammad Fattahian wrote:
> Hi folk,
>
> I want to restric my users upload (Attachment) capacity.
>
> I'm using Squid Version 2.6.STABLE21
> This is one part of my configuration:
>
> acl UPLIMIT req_header Content-Length [5-9][0-9]{5,}
> acl UPMETH method post
>
> http_access deny group1 UPMETH UPLIMIT
>
> This blocks anything => 500 KB
> I just tested in Yahoo mail and it works but it does not work in
> Gmail. I
> understood the Gmail use CONNECT method to upload the files.
>
> Any suggestion?

 Take a read through:
  http://www.squid-cache.org/Doc/config/request_body_max_size/

 CONNECT is a tunnel containing a whole separate stream of HTTP requests
 and replies wrapped in SSL (aka HTTPS or https://).
 In squid-2.6 there is nothing which you can do about it short of
 blocking HTTPS entirely.

 Amos
Received on Tue Apr 05 2011 - 23:43:25 MDT

This archive was generated by hypermail 2.2.0 : Wed Apr 06 2011 - 12:00:03 MDT