[squid-users] Content filtering and file size limits

From: <fabian@dont-contact.us>
Date: Wed, 8 Dec 2004 13:39:59 +0100 (CET)

Hello all,

This is my first post here so feel free to correct me if I'm doing
something wrong.

I'm trying to fine tune my Squid proxy. I've searched the mailing list
archives without founding answers.

I'd like (like a lot of Squid managers) block some brandwich consuming
files (ie mp3). I've added this acl:

acl nodownload rep_mime_type audio
acl nodownload rep_mime_type video
http_reply_access deny nodownload

and its working file. If I put a prohibited file on my test server and try
to download it with wget, I get a "ERROR 403: Forbidden". The problem is
that Squid allow me to download the mp3 (audio/mpeg) if I rename it to
test.html. Wget shows that its mime type is text/html. I suppose Squid
knows about mime types by looking on the extension. You should already
have guessed that I want to block this kind of trick so any help will be
usefull.

My second problem is about file size limit. I've checked
reply_body_max_size directive in the squid.conf but I want it different
depending on user. I saw in the archives that it was not implemented but
maybe a patch is working?

Thanks a lot for helping,
Fabian
Received on Wed Dec 08 2004 - 05:40:05 MST

This archive was generated by hypermail pre-2.1.9 : Sat Jan 01 2005 - 12:00:01 MST