Developer starts official campaign to rid the Web of IE6

Momentum builds to force users to upgrade by blocking IE6 from websites

Web developer Bryant Smith has had enough of Internet Explorer 6 and he's not going to take it anymore. He has launched a campaign to rid the Web of IE6 by writing and distributing free redirection scripts. Web developers simply place the PHP or Javascript code on their websites and when a visitor using IE6 arrives, the visitor will be promptly sent to the Firefox download page as a not-so-subtle message to upgrade to another browser already.

Smith explains on his campaign site, "I created this site to help encourage my fellow developers to help give some of these 'less informed' visitors to our sites a nudge in the right direction.

IE6 redirection script
In case you don't know what I'm talking about, just about every single web developer nowadays has created some awesome new site, only to find that it doesn't work in IE6 - forcing them to spend hours hacking their perfectly good code to work for Internet Explorer 6 users."

He's not alone in his angst. Last month the owners of the news social networking site Digg publicly announced that they were considering joining the growing trend to block IE6. Microsoft responded to Digg earlier this month defending the eight-year-old, idiosyncratic browser that has now been superseded by two full releases, not to mention other free browsers like Firefox, Chrome and Opera. Microsoft's Dean Hachamovitch pleaded against the blocking of IE6 and explained that Microsoft would continue to support it because users of legacy PCs found it expensive and difficult to upgrade away from it. Readers suggested that what Hachamovitch really wanted was to avoid the possibility of users contemplating another browser altogether.

Even though Microsoft continues to support IE6, at least with security patches, its continued use could eventually drive users to other browsers anyway. Because Web developers like Smith aren't having any of it anymore. "If all the best developers are spending their time dumbing down their websites for IE6, that is time they could be spending creating new and interesting stuff on the web. So I propose that the Internet is a much worse place while us developers continue to cater to IE6 users," he says.

If you agree, here are the scripts.

<?php $get_user_agent = $_SERVER['HTTP_USER_AGENT']; if (strpos($get_user_agent,'MSIE') != false && strpos($get_user_agent,'Opera') === false){ if (strpos($get_user_agent,'Windows NT 5.2') != false){ if(strpos($get_user_agent,'.NET CLR') === false) return; } if (substr($get_user_agent,strpos($get_user_agent,'MSIE')+5,1) < 7){ header('Location:'); }} ?>

Javascript version

!--[if lte IE 6]> <meta http-equiv="refresh" content="0; url=" /> <script type="text/javascript"> /* <![CDATA[ */ = ''; /* ]]> */ </script> <![endif]-->

Smith says, "Feel free to use this script anywhere in any way."

Like this post? Check out these others.
  • Virtualization Day: Virtual Machine Manager R2 RTM and Windows 7 XP Mode
  • Windows 7: the grown-up Vista
  • 5 Reasons To Use SharePoint Instead Of Emailing Excel Files
  • Microsoft's unified modeling platform, Oslo, faces another overhaul
  • Sam Ramji: 'Open source as an unstoppable phenomenon'
  • The Move-Mailbox cmdlet, a Cross-Forest move, and a complex password
  • Fine-Grained Password Policies, Part I
  • August giveaways: we're giving away SCCM books and free training

Plus, visit the Microsoft Subnet web site for more news, blogs, podcasts. Subscribe to all Microsoft Subnet bloggers. Sign up for the bi-weekly Microsoft newsletter. (Click on News/Microsoft News Alert.) Follow All Microsoft Subnet bloggers on Twitter

Follow Julie Bort on Twitter

Copyright © 2009 IDG Communications, Inc.

The 10 most powerful companies in enterprise networking 2022