Re: [squid-users] how to deny mime types say text and image

From: Colin Campbell <sgcccdc@dont-contact.us>
Date: Thu, 20 Dec 2001 17:31:43 +1000 (EST)

Hi,

On Thu, 20 Dec 2001, usha wrote:

> How to deny mime types say text and image.........?
>
> I Just tried to deny mime type text and image,so I configured squid
>
> acl acltext req_mime_type -i ^text/html
> acl acltext1 req_mime_type -i ^text/htm
> acl aclgif req_mime_type -i ^image/gif
> acl aclgif1 req_mime_type -i ^image/jpg
> http_access deny acltext acltext1 aclgif clgif1
> http_access allow all

There's probably a couple of things here:

1) do you really want the "^"? In a regular expression it means "at the
beginning of a line". I don't think that's going to happen.

2) Your http_access line will deny only requests that contain "text/html"
AND "text/htm" AND "image/gif" AND "image/jpg" simultaneously. Probably
not going to happen. You probably need a separate line for each acl.

3) Do you want to catch "image/jpeg" too?

Colin
Received on Thu Dec 20 2001 - 00:31:54 MST

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