It's very simple:
acl MyDenyMIME urlpath_regex -i \.exe \.mov \.mpg \.mp?
you also need $ after the extension, and it is not at all related to MIME types,
only file extensions in the requested URL..
acl MyDenyExtensions urlpath_regex -i \.exe$ \.mov$ \.mpg$ \.mp?$
acl deny MyDenyMIME
http_access deny MyDenyExtension
If you want to block based on MIME types then see the rep_mime_type acl and http_reply_access.
Thanks & B-regards
Furqan Abbas
From: "Adam Aube" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: RE: [squid-users] download block !
Date: Mon, 20 Oct 2003 10:49:46 -0400
MIME-Version: 1.0
Received: from squid-cache.org ([206.168.0.9]) by mc4-f16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Mon, 20 Oct 2003 08:05:57 -0700
Received: (qmail 32749 invoked by uid 1007); 20 Oct 2003 14:49:49 -0000
Received: (qmail 32737 invoked from network); 20 Oct 2003 14:49:49 -0000
X-Message-Info: JGTYoYF78jHFN2zqEO2tQPVWLfc49A3H
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Post: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Subscribe: <mailto:[EMAIL PROTECTED]>
Delivered-To: mailing list [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0)
In-Reply-To: <[EMAIL PROTECTED]>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 20 Oct 2003 15:05:58.0402 (UTC) FILETIME=[AAEC2620:01C3971B]
> I'm new to this list. And I hope someone can help me! > I have instaled squid 2.5.stable. It's work fne, but i > can't block downloading .mp3, .exe .. files
You do realize that the setup you are using will slow down those downloads, not block them entirely, right?
You may want to run squid -k parse, because this line from your squid.conf
"delay_class"
may be causing problems - it's not properly commented.
Adam
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
