G
Michael Winter said:Which article was that? I'm intrigued. By the way, browser detection by
virtually any means is flawed. Too many vendors make determined attempts
to spoof themselves for it to be reliable.
CSS *is* easy. It's browser bugs that make things difficult. In my
experience, IE causes the most problems, but older versions of probably
every browser make a contribution.
To Dave Patton (& his fans)
You may think that simply putting down the phrase "fluid design"
Something more specific like an example website
C said:In practice spoofing becomes a problem only when the userAgent
string not only spoofs another browser, but also hides its own
identify: and this is rare.
Beauregard T. Shagnasty said:What browser am I using? <g> Unaltered UA string:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
[snip]
Too many vendors make determined attempts to spoof themselves for
[browser detection] to be reliable.
Spoofing is not as much a problem as you might think.
In practice spoofing becomes a problem only when the userAgent string
not only spoofs another browser, but also hides its own identify: and
this is rare.
C said:That is an IE6 userAgent for Windows XP.
It cannot be Opera.
It could be iCab (iCab lets the user enter the entirety of their
own userAgent string, but iCab is uncommon);
it could be Mozilla (or maybe Firebird) if the user has used a
plug-in which can do this (rare, but possible if the user chooses
to do so in order to use a site which is too damn stupid to handle
Gecko-based browsers ... i.e. a small % of sites).
Other possibilities are unlikely -- not impossible -- but
sufficiently unlikely (in % of users) that I would not worry.
Understand you. My question was more to do with aesthetics. Right now, I've
left my banner left-aligned. At higher rez, that opens up wasted real estate
to the right that I want to "fill" with something that still pleases the
eyes. My banner is a photo, not suitable for tiling.
C said:with Opera the userAgent string always contains the substring 'Opera',
even when configured (say) to spoof IE [...] Safari can be mistaken for
Gecko if the programmer checks for 'Gecko' instead of first checking for
'Safari'.
Beauregard said:Agreed that not too many people know how to do this. Oh, checking the
header of my post would have given a mighty clue. <g>
Toby Inkster said:C said:with Opera the userAgent string always contains the substring 'Opera',
even when configured (say) to spoof IE [...] Safari can be mistaken for
Gecko if the programmer checks for 'Gecko' instead of first checking for
'Safari'.
And don't forget: MSIE spoofs Mozilla!
Michael Winter said:On Sat, 13 Nov 2004 16:19:05 -0500, C A Upsdell
The incompetence you mentioned isn't so much how the detection is
accomplished, but that the author believes he needs to know which browser
is being used in the first place. Most of the time, it's completely
irrelevant.
Beauregard T. Shagnasty said:Now you're getting somewhere. <g> It was Firefox, using the PrefBar
extension, which puts UA spoofing right there on the toolbar.
http://home.rochester.rr.com/bshagnasty/images/mozbar.png
..which works equally well with Moz or Firefox. See "Real UA" to the
right, which is where I selected "IE6 WinXP".
You can also add a completely different UA string by changing the
general.useragent.override in the prefs.js file.
Toby said:FWIW, there is a Windows registry setting that allows you to edit the MSIE
user-agent header.
C said:But IMO this extension should only be used when nothing else will
make a particular site usable.
And perhaps the userAgent string this extension sets is poorly
chosen. Instead of:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
I suggest something like:
Mozilla/5.0 (Windows; U; MSIE 6.0; Windows NT 5.1; en-US; rv:1.7.3)
Gecko/20040910 Firefox/1.0
which enables a competent programmer to correctly detect it as a
Gecko browser, but tricks a naive programmer into thinking it is IE
6.
But again, it would be better to spoof another browser without
hiding the real identify of the browser.
And in any case, such a technique should be adopted only if a site
intransigently refuses to work with your browser's standard
userAgent.
Karl said:Please refrain from ever giving HTML advice again.
-Karl
You have an better idea how to design a liquid table for a banner, huh?
I suggest something like:
Mozilla/5.0 (Windows; U; MSIE 6.0; Windows NT 5.1; en-US; rv:1.7.3)
Gecko/20040910 Firefox/1.0
which enables a competent programmer to correctly detect it as a Gecko
browser, but tricks a naive programmer into thinking it is IE 6.
But sometimes [browser detection is] an unavoidable last resort:
sometimes a browser misbehaves in a manner that must be avoided, [...]
Henry said:Great!
You have an better idea how to design a liquid table for a banner, huh?
Soooo........???????
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.