Re: [squid-users] How to forbid my users to download big files through SQUID proxy server

From: Lieven Marchand <lieven.marchand@dont-contact.us>
Date: 08 Aug 2002 08:42:30 +0200

"liting" <lit@pplas.icas.ac.cn> writes:

> Hi, All,
>
> I'm running a squid proxy server. It works very well.
> The problem is that I want to avoid people download
> bif files(such as *.zip,*.mpg,*.rar) through the proxy.
>
> Can anybody tell me how to set the squid to fulfill
> this target. Urgently, my cost for internet is accounted
> by the traffic!
>
> Pls send me a email if possible
> lit@pplas.icas.ac.cn

# TAG: reply_body_max_size (KB)
# This option specifies the maximum size of a reply body. It
# can be used to prevent users from downloading very large files,
# such as MP3's and movies. The reply size is checked twice.
# First when we get the reply headers, we check the
# content-length value. If the content length value exists and
# is larger than this parameter, the request is denied and the
# user receives an error message that says "the request or reply
# is too large." If there is no content-length, and the reply
# size exceeds this limit, the client's connection is just closed
# and they will receive a partial reply.
#
# NOTE: downstream caches probably can not detect a partial reply
# if there is no content-length header, so they will cache
# partial responses and give them out as hits. You should NOT
# use this option if you have downstream caches.
#
# If you set this parameter to zero (the default), there will be
# no limit imposed.
#reply_body_max_size 0

-- 
Honest praise, this stony part insisted, was what the bunglers of the world 
heaped on the heads of the barely competent.                -- Stephen King
Received on Thu Aug 08 2002 - 00:42:36 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:09:33 MST