With first method you will get problem with cached sites i.e.

http://test.one.com/dwonload.exe?cache ....

Will not get blocked with -i \.exe$

Where as problem with mime type is that the mime.conf get overwrites with the response 
from server I.e.

As per squid mime.conf .exe is application/octet-stream, but your rules to block 
application/octet-stream don't work when you download from MS site as it returns mime 
type as "application/x-msdownload".

Reg.
Prasanta

 


-----Original Message-----
From: Henrik Nordstrom [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 10, 2003 7:29 PM
To: NetSnake
Cc: [EMAIL PROTECTED]
Subject: Re: [squid-users] block downloading extensions...!!


m�n 2003-03-10 klockan 12.05 skrev NetSnake:
> 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.

Regards
Henrik

-- 
Henrik Nordstrom <[EMAIL PROTECTED]>
MARA Systems AB, Sweden

BEGIN:VCARD
VERSION:2.1
N:Panda;Prasanta;Kumar
FN:Prasanta ([EMAIL PROTECTED]) (prasanta)
ORG:Wipro Technologies;IMG-HDC
TITLE:Sr. Network Analyst
TEL;WORK;VOICE:+91 40-6565148
TEL;WORK;VOICE:+91 40-6565000
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;Wipro Technologies=0D=0ASurvey # 64=0D=0AMadhapur;Hyderabad;Andhra Pradesh=
;500033;India
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Wipro Technologies=0D=0ASurvey # 64=0D=0AMadhapur=0D=0AHyderabad, Andhra Pra=
desh 500033=0D=0AIndia
URL;WORK:http://www.wipro.com
EMAIL;PREF;EX:/o=Wipro/ou=First Administrative Group/cn=Recipients/cn=prasanta
REV:20020725T070827Z
END:VCARD
**************************Disclaimer************************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************************

Reply via email to