Never trust the user-agent header

September 12, 2008 – 1:54 pm Tags:

Something I just have to share: an entertaining and informative read on the history of the browser user-agent string.

I always did wonder why all browsers claim to be Mozilla when they are not… And clearly, the advice given by many JavaScript gurus to never use user-agent sniffing to determine browser capabilities is very good – just look what kind of a mess it will lead to, not to mention that if someone someday changes their UA string or comes up with a new browser, everything will break – just like the frames.

Share this:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • email
  • LinkedIn
  • Pownce
  • Reddit
  • StumbleUpon
  • Technorati

RSS feed Subscribe to my RSS feed

  1. 2 Responses to “Never trust the user-agent header”

  2. Hahaha.. great.. it’s so true… long live http://en.wikipedia.org/wiki/Duck_typing ! :D

    By Harro on Sep 15, 2008

  3. I’m proud that Opera finally decided to be sensible by default. It means they have to build in crazy userscript to detect and work around brain-dead browser sniffing, but it seems to work.

    By Steve Clay on Sep 21, 2008

Post a Comment