From: ADELINE E InfoRstTel[SMTP:Emmanuel.Adeline@socgen.com]
Sent: Wednesday, 22 April 1998 3:06
Subject: MIME type filter ?
>Is it possible to block documents which have some particular MIME types?
> am looking preferably for a solution not involving much source
modification.
>by the way, would it be a good idea to extend ACL filtering to MIME types?
The answer is yes and no.
Yes, because you could block the well-known file extensions of certain MIME
type with Squids existing ACL mechanisms
e.g. .PDF for Acrobat files which are *almost* always MIME type
application/pdf, so block the .PDF extensions via a URL regex.
No, because not all types act in such well known and predictable ways.
e.g. Microsoft Word (.DOC) could be application/msword on one server or it
could really be a README.DOC text file of type text/plain on another.
Given that Squid doesn't know the MIME type until it has already queried the
destination web server (or upstream / sibling caches), it is not a part of
the caching methodology that could be easily implemented, and would result
in Squid doing a check first, then either continuing the HTTP transfer, or
dumping it altogether. You could do a cursory "HEAD" request, then based on
the Content-Type: header decide to proceed with the GET or POST. It would
sort of fall down for CGI-BIN scripts and the like though, so its actual
application is very limited IMHO. Either means of "sniffing" the MIME type
involves a TCP/IP session creation and teardown, which are somewhat
expensive and would slow down the actual transfer of data (on a second
session) by the time it takes to do this.
Jason
begin 600 winmail.dat
M>)\^(A@!`0:0"``$```````!``$``0>0!@`(````Y`0```````#H``$(@`<`
M&````$E032Y-:6-R;W-O9G0@36%I;"Y.;W1E`#$(`06``P`.````S@<$`!4`
M%@`%`````@`+`0$@@`,`#@```,X'!``5`!4`-@`6``(`40$!"8`!`"$````X
M1C4P-44S,#,P1#E$,3$Q.4(P.#`P,#!&.#`S-3@P,0#)!@$$@`$`%P```%)%
M.B!-24U%('1Y<&4@9FEL=&5R(#\```<!#8`$``(````"``(``0.0!@"4"```
M(0```$``.0``+A,.DVV]`0,`-@```````P`F```````>`'```0```!,```!-
M24U%('1Y<&4@9FEL=&5R(#\```(!<0`!````&P````&];49[K4^$R)+9)!'1
MFI``H"2CI\<`$N$D80`>`#%``0```!4```!!55-43$%.+4%54U103RU/6DTT
M-``````#`!I``````!X`,$`!````%0```$%54U1,04XM05535%!/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M`$%54U1,04XM05535%!/+4]:330T``````(!^S\!````70````````#<IT#(
MP$(0&K2Y"``K+^&"`0`````````O3SU55$,O3U4]3U1!54U)3B]#3CU-4R!-
M04E,(%)%0TE0245.5%,@+T-./4%54U1,04XM05535%!/+4]:330T`````!X`
M^C\!````$0```$%R;6ES=&5A9"P@2F%S;VX`````'@`Y0`$````5````0553
M5$Q!3BU!55-44$\M3UI--#0`````0``','`LS9&1;;T!0``(,%":_)&1;;T!
M'@`]``$````%````4D4Z(``````>`!T.`0```!,```!-24U%('1Y<&4@9FEL
M=&5R(#\```L`*0``````"P`C```````#``80`A'?^`,`!Q`P!0```P`0$```
M```#`!$0`````!X`"!`!````90```$923TTZ041%3$E.145)3D9/4E-45$5,
M4TU44#I%34U!3E5%3$%$14Q)3D5`4T]#1T5.0T]-4T5.5#I7141.15-$05DL
F,C)!4%))3#$Y.3@S.C`V4U5"2D5#5#I-24U%5%E0148`````R&L=
`
end
Received on Tue Apr 21 1998 - 19:27:40 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:39:48 MST