Post Reply 
IE8: Correct User Agent on Google sites
May. 20, 2010, 12:59 AM
Post: #6
RE: IE8: Correct User Agent on Google sites
You could use some flags.

(May. 19, 2010 09:39 PM)DarthTrader Wrote:  
(May. 19, 2010 04:03 PM)JJoe Wrote:  User-Agents.ptxt has,

Code:
Mozilla/4.0(^$TST(keyword=*.f_ua_(^[a-z]++ie)*)) \(compatible; MSIE(^ 5.01)\2;
  $SET(1=Mozilla/4.0 (compatible; MSIE\2; Windows NT 5.1))

My User-Agents.ptxt is the same

What do you see at http://www.google.com after you change it to

Code:
Mozilla/4.0(^$TST(keyword=*.f_ua_(^[a-z]++ie)*)) \(compatible; MSIE(^ 5.01)\2;
  $SET(1=Mozilla/4.0 (compatible; MSIE\2; Windows NT 5.1))$ALERT(\1)

?

The header filter 'User-Agent: Manage listed Strings - Set Var' calls this list. When the filter exits the variable hOrigUA contains the original UA; \1 in $OHDR(User-Agent:( ) \1) contains the fake.

Have you any other User-Agent header filters?


Offered for no particular reason

Code:
[Patterns]
Name = "Tell UA and fail"
Active = FALSE
Limit = 256
Match = "?$STOP()$OHDR(User-Agent:( ) \1)"
        "$ALERT(Original = $GET(hOrigUA)\r\n"
        "Fake=\1)(^)"


Have fun
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
RE: IE8: Correct User Agent on Google sites - JJoe - May. 20, 2010 12:59 AM

Forum Jump: