Re: [squid-users] how to block "octet-stream"

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 30 Apr 2001 19:48:09 +0200

As I said: The Squid-2.5 development version allows you to block content
based on the returned mime type.

--
Henrik Nordstrom
Squid Hacker
Carl wrote:
> 
> Yes, you are right. I do just want to block application/octet-stream other than all the filetypes *MAY* cause it. Because, for example, .exe may cause application/octet-stream or may not, I just want to block the files who cause application/octet-stream and let the other .exe files pass. Can I do it? Our Squid is 2.4.STABLE-1
> 
> thanks!
> 
> Sincerely,
> 
> Carl
> 
> ÔÚ 2001-4-29 12:09:00 Henrik NordstromдµÀ£º
> >The Squid-2.5 development version allows you to block content based on
> >the returned mime type.
> 
> >
> >However, I do doubt that you want to block application/octet-stream
> >without having a large exception list.. (just as you would need if
> >blocking on extention).
> >
> >--
> >Henrik Nordstrom
> >Squid Hacker
> >
> >Carl wrote:
> >>
> >> Hi everybody,
> >>
> >> I need your great help! I found that there are many lines in my access.log like the following:
> >>
> >> 988509811.753 45 166.111.173.121 TCP_MISS/200 8557 GET http://www.1-ok.com/xiaoyao/peach2.swf - DIRECT/210.77.151.8 application/octet-stream
> >>
> >> These operations greatly worsen the hit% of my cache so that I want to block 'octet-stream'. It's not a good way to block it by file extention (like .swf) for the reason that there are so many file types can cause 'octet-stream' such as .exe, .cab, .dll, .dat, .cif. .vbs, .class and so on. Furthermore, it is not feasible to block all the files have the extentions above.
> >>
> >> Can anyone tell me how to deal with this problem? Please help me. I need your kind hand!
> >>
> >> thanks!
> >>
> >> Carl
Received on Mon Apr 30 2001 - 12:26:19 MDT

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