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

From: usha <usha_mliin@dont-contact.us>
Date: Thu, 20 Dec 2001 18:30:56 -0000

Thanks a lot but how can I achieve this facility(rep_mime_access,
http_reply_access directive)in squid-2.4.STABLE2 to deny mime type say text
or image.

----- Original Message -----
From: "Henrik Nordstrom" <hno@marasystems.com>
To: "Brian" <hiryuu@envisiongames.net>; "usha" <usha_mliin@yahoo.co.in>;
<squid-users@squid-cache.org>
Sent: Thursday, December 20, 2001 9:32 AM
Subject: Re: [squid-users] how to deny mime types say text and image

> On Thursday 20 December 2001 08.22, Brian wrote:
> > You are filtering REQUEST mime type (as in POST file uploads). Squid
2.5
> > has a reply mime type acl, but I haven't looked up the name for it.
>
> The acl type is rep_mime_access, and must be used from the new
> http_reply_access directive.
>
> Regards
> Henrik Nordström
>
>
> acl aclname req_mime_type mime-type1 ...
> # regex match agains the mime type of the request generated
> # by the client. Can be used to detect file upload or some
> # types HTTP tunelling requests.
> # NOTE: This does NOT match the reply. You cannot use this
> # to match the returned file type.
>
> acl aclname rep_mime_type mime-type1 ...
> # regex match against the mime type of the reply recieved by
> # squid. Can be used to detect file download or some
> # types HTTP tunelling requests.
> # NOTE: This has no effect in http_access rules. It only has
> # effect in rules that affect the reply data stream such as
> # http_reply_access.
>
>
> # TAG: http_reply_access
> # Allow replies to client requests. This is complementary to
> http_access.
> #
> # http_reply_access allow|deny [!] aclname ...
> #
> # NOTE: if there are no access lines present, the default is to
allow
> # all replies
> #
> # If none of the access lines cause a match, then the opposite of
the
> # last line will apply. Thus it is good practice to end the rules
> # with an "allow all" or "deny all" entry.
>
>
> --
> MARA Systems AB, Giving you basic free Squid support
> Customized solutions, packaged solutions and priority support
> available on request


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Received on Thu Dec 20 2001 - 05:56:52 MST

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