拒绝 IE 的网站

如果你用 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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值