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

From: Brian <hiryuu@dont-contact.us>
Date: Thu, 20 Dec 2001 02:22:43 -0500

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.

        -- Brian

On Thursday 20 December 2001 07:48 am, 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
>
>
> Now examining my access.log shows
>
> 1008832270.113 3983 172.16.1.23 TCP_MISS/200 16813 GET
> http://multitech.com/ - DIRECT/204.26.122.10 text/html [Accept:
> image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/pdf,
> */*\r\nAccept-Language: en-us\r\nAccept-Encoding: gzip,
> deflate\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT
> 4.0) \r\nHost: multitech.com\r\nProxy-Connection: Keep-Alive\r\nCookie:
> SITESERVER=ID =52369df945289b9ee7b9e2a01f2d5396;
> ASPSESSIONIDQGQQQGCB=NEPHJPKCADCKMMGEFNICBFPF \r\n] [HTTP/1.1 200
> OK\r\nServer: Microsoft-IIS/4.0\r\nDate: Thu, 20 Dec 2001 07
>
> :05:39 GMT\r\nContent-Type: text/html\r\nCache-control: private\r\n\r]
>
> 1008832270.821 2912 172.16.1.23 TCP_MISS/200 1402 GET
> http://www.google.com/se arch? - DIRECT/216.239.37.101 text/xml
> [Content-Length: 0\r\nUser-Agent: Mozilla /4.0 (compatible; MSIE 5.5;
> Windows NT 4.0)\r\nHost: www.google.com\r\nProxy-Con nection:
> Keep-Alive\r\nCookie: PREF=ID=2e6715235ad6abb5:TB=1:TM=1008741287:LM=10
> 08741287:S=UjDFVsd0-XU\r\n] [HTTP/1.0 200 OK\r\nDate: Thu, 20 Dec 2001
> 07:06:41 GMT\r\nServer: GWS/1.11\r\nConnection: close\r\nContent-Type:
> text/xml\r\nCache- Control: private\r\n\r]
>
> TIA
Received on Thu Dec 20 2001 - 00:22:47 MST

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