homepage Welcome to WebmasterWorld Guest from 107.20.73.188
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Browsers / Opera Browser Usage and Support
Forum Library, Charter, Moderator: open

Opera Browser Usage and Support Forum

    
User Agent Detection for Opera Spoofing...
Getting perl to detect Opera at the *END* of the UA
JAB Creations




msg:1587111
 6:34 pm on Nov 30, 2004 (gmt 0)

I'm attempting to detect Opera spoofing... It's UA (when spoofing) is stuck at the end of the UA like so ...

Mozilla/4.0_(compatible;_MSIE_6.0;_Windows_NT_5.1)_Opera_7.20__[en]

My perl based stats detects UAs as so...

'msie5.23',

'msie5.22',

'Opera/7.60',

Can I subtract somehow all the bogus stuff to detect Opera when it's spoofing? This would be a big help!

 

moltar




msg:1587112
 7:35 pm on Dec 2, 2004 (gmt 0)

I suspect this is what happens.

Scipt checks for UA in the order (just an example):
IE6
Mozilla
FF
Opera
Safari

Script checks for IE and it becomes positive since MSIE_6.0 is there. It ignores the rest of the string, and goes on to the next UA... And it never reaches the opera test.

If you place Opera check at the begining of all checks, it will always come positive first and will be registered as Opera.

Just a speculation since I don't know how your script actually works.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Browsers / Opera Browser Usage and Support
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved