RE: [squid-users] download block !

From: S ý è d     F ú r q à n <sfurqanat@dont-contact.us>
Date: Tue, 21 Oct 2003 02:59:45 +0500

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" <aaube@firstindependent.net>
>To: <squid-users@squid-cache.org>
>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 squid-users-help@squid-cache.org; run by ezmlm
>Precedence: bulk
>List-Post: <mailto:squid-users@squid-cache.org>
>List-Help: <mailto:squid-users-help@squid-cache.org>
>List-Unsubscribe: <mailto:squid-users-unsubscribe@squid-cache.org>
>List-Subscribe: <mailto:squid-users-subscribe@squid-cache.org>
>Delivered-To: mailing list squid-users@squid-cache.org
>Message-ID: <000a01c39719$685540a0$647fa8c0@firstindependent.net>
>X-Priority: 3 (Normal)
>X-MSMail-Priority: Normal
>X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0)
>In-Reply-To: <CEEPJHAPBOICGLAFMOKDKEDICPAA.cristi@technova.ro>
>Importance: Normal
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>Return-Path: squid-users-return-36027-sfurqanat=hotmail.com@squid-cache.org
>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
Received on Mon Oct 20 2003 - 16:11:03 MDT

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