Duncan's blog

August 27, 2008

Browser detection sucks

Not seen one of these for a while:

AllClear browser detection page

I was looking online for travel insurance, and at one point looked at allcleartravel.co.uk. Except their site didn’t like the fact I was using Firefox. Installed Chris Pederick’s User Agent Switcher Firefox extension to get around it and see why/how they were doing this. (Incidentally, did you know Chris Pederick also wrote the invaluable Web Developer extension? If you do any web development work at all, it’s essential). Here’s the simple bit of script they’re using to get rid of 20% or so of their potential customers.

<!-- FF detection script -->

if(navigator.userAgent.indexOf("Firefox") != -1)
{
   window.location = "http://www.allcleartravel.co.uk/images/alc/alc_firefox.html";
}

Their site certainly uses a lot of Javascript but I couldn’t see anything that would obviously give Firefox a problem. Although when clicking the ‘Get a Quote’ button, it takes forever and then ends up redirecting to a blank screen at https://www.allcleartravel.co.uk.

1 Comment »

  1. […] Well, just after being surprised by some Browser detection preventing me using a travel insurance site with Firefox, I stumbled across another example in the […]

    Pingback by Browser detection still sucky « Duncan’s blog — August 28, 2008 @ 10:17 pm | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: