« Red Hat Dismisses Microsoft’s FUD | Running Photoshop CS2 in Linux »

Open Addict Blocks Internet Explorer

By Studge | July 18, 2007

Rich Morgan, of Open Addict, has recently made a move to block Microsoft’s Internet Explorer from rendering his site. This move is justified by the fact the Microsoft does not seem concerned with helping to adopt web standards which causes web developers to have to tweak their sites and implement various, dirty workarounds to look the way they are intended in IE.

I just updated the theme of this blog and, to no surprise, it does not render correctly in IE 6 or IE 7. It looks exactly the same in Firefox, Opera and Konqueror though. At Rich’s forum, he suggests that more people rally with him on this cause. I am not yet prepared to cut IE users out entirely, but it is definitely in my head now. If you are interested, he has also posted the short PHP code to stop IE from browsing:

<?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;
  }
?>

You can place this snippet at the top of any page that you do not want to be seen in an IE browser. Replace domain.com with your own domain name and be sure to create ie_reject.html with a little message explaining what just happened. Rich’s message IE page can be seen here.

It would be absolutely amazing if this type of behavior became widespread, but I don’t have much faith in the movement. Unfortunately, there are larger revolutions on the horizon.

Topics: PHP, Web Development

Share: del.icio.us | digg | reddit

RSS feed | Trackback URI

Comments »

No comments yet.

Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.