oh and the other thing is that most browsers can pretend to be something else. and often fo about in disguise so that they will be let into obscure sites that have fscked policies like you want to implement. how are you going to tell which browsers are genuinely telling you their identity?
If you want to reliably detect IE, you can do something like the following without needing any server-side code:
<!--[if IE]> <script type="text/javascript" src="ie.js"></script> <![endif]-->
Your browser's comment handling has to be quite broken to see the embedded code. This sort of solution is also a better idea because you don't have to worry about which Cache-Control or Vary headers to send to stop Mozilla and Opera getting cached IE versions of pages.
--
"Hanging is too good for a man who makes puns; he should be drawn and quoted."
-- Fred Allen
signature.asc
Description: OpenPGP digital signature
