Re: [squid-users] block downloading extensions...!!

From: Henrik Nordstrom <[email protected]>
Date: 10 Mar 2003 14:58:48 +0100

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 <hno@squid-cache.org>
MARA Systems AB, Sweden
Received on Mon Mar 10 2003 - 06:59:00 MST

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