Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > browser sniffer

Reply
Thread Tools

browser sniffer

 
 
Paul Watt
Guest
Posts: n/a
 
      07-06-2005
Hi,
Could anyone recomend a browser sniffer that will differentiate
between IE and pretty much anything else then load a CSS file
according to hat browser the user is using?

Cheers

Paul
 
Reply With Quote
 
 
 
 
Chris Hope
Guest
Posts: n/a
 
      07-06-2005
Paul Watt wrote:

> Could anyone recomend a browser sniffer that will differentiate
> between IE and pretty much anything else then load a CSS file
> according to hat browser the user is using?


If all you want to do is differentiate between a) IE and b) everything
else, then you can use IE conditional tags.

This should get you headed in the right direction for those:
http://www.google.com/search?q=inter...nditional+tags

--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
 
Reply With Quote
 
 
 
 
Els
Guest
Posts: n/a
 
      07-06-2005
Paul Watt wrote:

> Hi,
> Could anyone recomend a browser sniffer that will differentiate
> between IE and pretty much anything else then load a CSS file
> according to hat browser the user is using?


Any sniffer would fail when I use Opera identifying as IE, or if I
just alter the user agent string in a Gecko browser to be the same as
IE.

I think you're better off making individual styles (un)readable by
different browsers. For instance: if you don't want IE to see the
styles for div.someclass,
You can write it like:
body>div.someclass{}
(also not seen by NN4, and Icab2)

More info on hacks like that:
http://centricle.com/ref/css/filters/

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
 
Reply With Quote
 
C A Upsdell
Guest
Posts: n/a
 
      07-06-2005
Els wrote:
>>Could anyone recomend a browser sniffer that will differentiate
>>between IE and pretty much anything else then load a CSS file
>>according to hat browser the user is using?

>
> Any sniffer would fail when I use Opera identifying as IE ...


No. Even when Opera is configured to identify itself as IE, the
userAgent string still contains the word 'Opera'. Only a sloppy sniffer
would fail.
 
Reply With Quote
 
Els
Guest
Posts: n/a
 
      07-06-2005
C A Upsdell wrote:

> Els wrote:
>>>Could anyone recomend a browser sniffer that will differentiate
>>>between IE and pretty much anything else then load a CSS file
>>>according to hat browser the user is using?

>>
>> Any sniffer would fail when I use Opera identifying as IE ...

>
> No. Even when Opera is configured to identify itself as IE, the
> userAgent string still contains the word 'Opera'. Only a sloppy sniffer
> would fail.


I knew it! <g>
Which is why I continued that sentence with "or" ...
(yes I should have been more specific )

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Sweet - Hell Raiser
 
Reply With Quote
 
William Tasso
Guest
Posts: n/a
 
      07-06-2005
Writing in news:alt.html,alt.www.webmaster
From the safety of the cafeteria
C A Upsdell <""cupsdellXXX"@-@-@XXXupsdell.com"> said:

> ...
> Only a sloppy sniffer would fail.


The mind bogles at the very thought of a sniffer having the
attribute:sloppy and the implication therefore that there are sniffers
that do not.

--
William Tasso
 
Reply With Quote
 
Spartanicus
Guest
Posts: n/a
 
      07-06-2005
C A Upsdell <""cupsdellXXX\"@-@-@XXXupsdell.com"> wrote:

>> Any sniffer would fail when I use Opera identifying as IE ...

>
>No. Even when Opera is configured to identify itself as IE, the
>userAgent string still contains the word 'Opera'.


Opera 8 has a stealth mode to get around outdated and malicious
sniffers, in that mode it's UA string is identical to that of the
browser being spoofed.

--
Spartanicus
 
Reply With Quote
 
C A Upsdell
Guest
Posts: n/a
 
      07-06-2005
Spartanicus wrote:
> C A Upsdell <""cupsdellXXX\"@-@-@XXXupsdell.com"> wrote:
>
>
>>>Any sniffer would fail when I use Opera identifying as IE ...

>>
>>No. Even when Opera is configured to identify itself as IE, the
>>userAgent string still contains the word 'Opera'.

>
>
> Opera 8 has a stealth mode to get around outdated and malicious
> sniffers, in that mode it's UA string is identical to that of the
> browser being spoofed.


How is this done? I can't find it under any Opera 8 preferences;
searching for 'stealth' under Opera Help reveals nothing; and examining
Opera's info re userAgent strings reveals nothing.
 
Reply With Quote
 
Spartanicus
Guest
Posts: n/a
 
      07-06-2005
C A Upsdell <""cupsdellXXX\"@-@-@XXXupsdell.com"> wrote:

>> Opera 8 has a stealth mode to get around outdated and malicious
>> sniffers, in that mode it's UA string is identical to that of the
>> browser being spoofed.

>
>How is this done? I can't find it under any Opera 8 preferences;
>searching for 'stealth' under Opera Help reveals nothing; and examining
>Opera's info re userAgent strings reveals nothing.


It's controlled via ua.ini (IIRC). Opera 8 by default once a week checks
if a new version of the browser is available. At the same time it
downloads an updated version of this ua.ini file. The file controls
which UA string is sent to which site, it is maintained by Opera
Software so that users don't have to mess with it themselves and because
making stealth mode easily available to users could result in users
permanently configuring stealth mode. This would result in Opera showing
up even less in server logs that it already does, thereby contributing
to the common "We don't support Opera because it has to small a market
share" nonsense reply many users get when they complain to a site about
the site not working in Opera.

Knowledgable users however can edit the file directly.

--
Spartanicus
 
Reply With Quote
 
C A Upsdell
Guest
Posts: n/a
 
      07-06-2005
Spartanicus wrote:
> C A Upsdell <""cupsdellXXX\"@-@-@XXXupsdell.com"> wrote:
>
>
>>>Opera 8 has a stealth mode to get around outdated and malicious
>>>sniffers, in that mode it's UA string is identical to that of the
>>>browser being spoofed.

>>
>>How is this done? I can't find it under any Opera 8 preferences;
>>searching for 'stealth' under Opera Help reveals nothing; and examining
>>Opera's info re userAgent strings reveals nothing.

>
>
> It's controlled via ua.ini (IIRC). Opera 8 by default once a week checks
> if a new version of the browser is available. At the same time it
> downloads an updated version of this ua.ini file. The file controls
> which UA string is sent to which site, it is maintained by Opera
> Software so that users don't have to mess with it themselves and because
> making stealth mode easily available to users could result in users
> permanently configuring stealth mode. This would result in Opera showing
> up even less in server logs that it already does, thereby contributing
> to the common "We don't support Opera because it has to small a market
> share" nonsense reply many users get when they complain to a site about
> the site not working in Opera.
>
> Knowledgable users however can edit the file directly.


Okay, I found some info at the bottom of
http://www.opera.com/windows/changelogs/800/

The only thing is, I can't find ua.ini anywhere on my PC, so I wonder if
this is an Opera 8 feature that was implemented but which is not yet active.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript Browser Sniffer trpost@gmail.com Javascript 4 04-13-2006 08:05 AM
asp page with browser sniffer doesn't work in Netscape AMC ASP General 13 01-17-2005 04:45 AM
asp based browser sniffer that detects if browser supports css AMC ASP General 12 01-13-2005 09:50 PM
Creating browser sniffer with ASP.Net =?Utf-8?B?RGF2aWQgQmFrZXI=?= ASP .Net 5 05-03-2004 09:56 PM
HTTP Sniffer extension Alain Viguier Firefox 0 09-17-2003 07:00 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57