Never trust the user-agent header

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.