Re: [squid-users] filtering by file extension (was: problem with req_mime_type)

From: Emilio Casbas <ecasbas@dont-contact.us>
Date: Tue, 04 May 2004 14:44:04 +0200

mangoo@interia.pl wrote:

>Hello,
>
>Building an acl with urlpath_regex, for example to deny downloading .zip files
>is quite easy, if the downloading is happening from an ftp server.
>
>However, preventing to do so from certain http servers can be a bit of a pain.
>
>In a link below, there is a zip file:
>
>http://www.sveasoft.com/modules/phpBB2/dlman.php?func=select_folder&folder_id=12
>
>Clicking on it would result in downloading a zip file named
>Satori_v2_2.00.8.7sv-pre1.bin.zip.
>
>However, Squid logs it as follows:
>
>1083673720.252 30799 195.143.49.115 TCP_MISS/200 3024638 GET
>http://www.sveasoft.com/modules/phpBB2/dlman.php? - DIRECT/213.242.178.190
>application/x-zip-compressed
>
>and therefore, this file I wanted to deny with urlpath_regex is passed
>through.
>
>Is it possible to filter such files somehow, and if so, how?
>
>
>
with the rep_mime_type and http_reply_access acl.

Emilio C.

Received on Tue May 04 2004 - 06:44:09 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Jun 01 2004 - 12:00:01 MDT