Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

User Agent Detection for Opera Spoofing...

Getting perl to detect Opera at the *END* of the UA

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

Senior Member from US 

WebmasterWorld Senior Member jab_creations is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 26, 2004
votes: 12

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


My perl based stats detects UAs as so...




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

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 18, 2003
votes: 0

I suspect this is what happens.

Scipt checks for UA in the order (just an example):

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.