拒绝 IE 的网站

来源:互联网 发布:2016网络流行语有哪些 编辑:程序博客网 时间:2024/04/28 04:46
如果你用 IE 访问 http://www.openaddict.com/ ,你将被拒绝:

If you're reading this it means you're using Microsoft's Internet Explorer to attempt to view Open Addict.com. You're being blocked because Internet Explorer doesn't adhere to web standards and some of our website code, which works *perfectly* in FireFox, Opera and Konquerer, doesn't work at all in IE and I'm tired of hacking workarounds for IE's bad implementations of standard technologies. This isn't anything against you as a user, rather against Microsoft for thinking they're too good to play with the rest of the world and build their software in compliance with published and accepted standards. Try to validate Internet Explorer's home page and tell me if you think Microsoft cares about building a standard's compliant browser.

Anyway, this site works perfectly in FireFox, so I recommend you use that. If you don't have it installed, you can get it from http://www.mozilla.org/firefox/.

Sincerely,
Rich Morgan
Open Addict.com

 

P.S. Hopefully IE rendered *this* page correctly for you... [sigh].

P.P.S. If you have a website and would like to use the same PHP code to block IE, here it is:

<?php
if (eregi("MSIE",getenv("HTTP_USER_AGENT")) || eregi("Internet Explorer",getenv("HTTP_USER_AGENT"))) {
     Header("Location: http://www.domain.com/ie_reject.html");
     exit;
     }
?>

Oh yeah, this page is:
Valid XHTML 1.0 Strict