*blog... kind of... *rss 



Banning Internet Explorer
Whenever I work on a html/javascript experiment I usually test it on Chrome. Once I'm done, I test it on Firefox and Opera. There is no Safari for Linux so I don't have an easy way for testing it so I usually assume it works as it's very similar to Chrome. The interesting thing is that the same code usually works directly on the other browsers. Just special cases like adding custom css properties (like -webkit-transform, MozTransform, OTransform...).

Of course, that's not the case with Internet Explorer. And to be honest I never really tried to make anything work on it. I believe that browser has made humanity lose a lot of time and money so making my experiments work will be like helping it to stay alive.

But I wasn't showing any error message. My experiments will just not work and people will mention it and complain. I really didn't want to add Javascript browser checks in each experiment either. However, there was a much simpler and efficient solution, add a rule on the .htaccess to redirect all the request from that browser to this page.

By banning all the request of that browser, not only I'm happier when developing but also I may move some of these users to a better browser, and at the same time, other developers won't have to suffer from these users.

Imagine if all the major websites did this. Wouldn't that fix the problem?

If you find the move interesting and you would like to stop supporting IE too, this is the code you'll need to put in you .htaccess file:

RewriteEngine on

RewriteCond %{REQUEST_URI} !/projects/ie/index.html$
RewriteCond %{HTTP_USER_AGENT} MSIE [NC]
RewriteRule ^(.*)$ /projects/ie/index.html [L]

Just change the /projects/ie/index.html parts with wherever you put your own message/page.
22 comments written so far...

So much for "HTML5 will take over the world" :)
I guess it depends on what you're trying to build. If you're trying to make awesome visualizations/experiments then I guess it's OK to target most advanced browsers and dream of a world without IE, I mean, browser compatibility isn't a required or a good thing to have when building artistic visualizations.
If you were trying to build a tool then I think the approach would be quite different. One important aspect of it is to be usable and useful. Browser compatibility is an issue.
IE8 is actually a great improvement over previous versions, as far as standards compliance is concerned. However I don't think MSFT has any plans to implement the Canvas element :( SVG, maybe..

But have you heard of Chrome-frame
http://code.google.com/chrome/chromeframe/
? this lets you inject a Chrome renderer into a IE instance. it still requires user to click OK to install, as it is a plugin, but if they do that then you're golden.
Instead of htaccess, this can be done easily using javascript.

if (navigator.appName=="Microsoft Internet Explorer" ){
.........
I personally like your approach. Of course, doing certain contract work this won't work - but I think it is a step into the right direction. Think I will implement a proper warning into my personal page, too.
Heh..let the movement begin..
Wouldn't it be better to warn the IE users and leave them a choose instead of a total block ?
Good man
Yea, I think you should allow people that have installed Chrome Frame to still view your HTML5 projects, at least to support IE users somewhat.

In every HTML5 project I make I support Chrome Frame.
i'd love facebook or ebay blocked IE ;)
I'd course i like doob's idea!
you've got balls.
Don't mean to be rude but complaining about browsers seems a bit like complaining about bad weather.
Isn't bashing a particular browser the same as bashing a particular plugin?

Cheers, D

@Erman Haskan: Yeah, as I said, I didn't really want to put Javascript detectors on each piece. Feels dirty.

@Hugh Isaacs II: Good point. Not sure I can detect if the browser has Chrome Frame from the .htaccess tho.

@Dan: Complaining? I think you misunderstood my point...
You are THE MAN. I agree that IE has made humanity lose a HUGE amount of time and Microsoft is still trying to fight against the standards. They are losing the browser "war", they are losing the mobile "war" and hopefully they'll lose the OS "war" soon too, all because of their stupid I'll-crush-everyone-but-me philosophy.
I have soooo much frustration against Microsoft that is hard to describe. Messenger sucks, Windows sucks, IE sucks, Windows Mobile sucks and as you said, they made us lose A LOT of time.
It's time to replace them.

Best,

SP
However, there was a much simpler and efficient solution...
...LOL!

Liked the love website too, btw.

Stay Doob!
Chrome Frame can't be detected from the .htaccess :/
Lot of people working in big companies can't install another browser because they don't have the right to do it. They don't need your stupid message telling them that Firefox is better.

They already know that. Your solution just make them more frustrated.

I understand your frustration, but the developpers have to adapt. Not the users.
Those people working on big companies shouldn't be wasting the big companies time and money visiting my site.
do mr. doob (or me for that matter) is supposed to place pressure on these 'big company' it techs how?
it seems the only way we can is via pissing off enough of their employees with annoying messages/blocked sites/etc. until they make enough noise that someone up the chain might make a change.

We have decided to add 'IE compatability' as an item on invoices to clients.

Every little bit helps, and the best way to act is influence the people you CAN.
@mrdoob
No I think letting IE people catch a glimpse of you site to see what they're missing might be a better strategy. Rather than completely banning them.

Cheers, Dan
Its just a matter of time to MS add support to all these new features. That's simply the future of internet, and that means money. In the mean while smart companies (Mozzila, Google, Apple ...) are working at all speed to receive this 'boom' of innovation.
MS will wake up soon or later.
You site rocks!!!
Thanks for the great read and education.
I am still enjoying Sketchy!

Have your say!



Name:

Website:

Comment:


 *profile 





traditional id: Ricardo Cabello Miguel
based in: London, UK

more: twitter, twitpic and soundcloud.


 *post nav 



Harmony
César Alierta y las anotaciones de Youtube
Banning Internet Explorer
Making history not repeat itself
Moving back to Spain
Merry Xmas
Blobs Redux
Making of Starbucks Love Project
Branching is fun.
Setting up Ubuntu 9.10 on a Eee PC 1101HA
Eaze


 *latest comments 



Harmony
Harmony
Harmony
Harmony
Harmony
Harmony
Harmony
Harmony
Harmony
Harmony