Added entry for IE9.
Allowing trident, chrome, safari, and presto values due to picky servers.
"Fake" strings may need to be updated.
Code:
###############################################################################
# NoHash
# NOADDURL $LST(User-Agents) -- Naoko 4.5
# Manage listed User-Agents
#
# List for the header filter "User-Agent: Manage listed Strings".
#
# sidki 2002-09-03
# Last updated 2010-10-03
# JJoe 2012-07-06 Added NoHash; Add IE9
# ; Allow trident, chrome, safari, and presto values due to picky servers
#
#
###############################################################################
## |||||||||||||||||||||||||||||| Kill connection |||||||||||||||||||||||||||||
## Winamp Lyrics Plugin
## ----------------------------------------------------------------------------
UtilMind HTTPGet $SET(1=\0$RDIR(http://local.ptron/killed.gif))
## ||||||||||||||||||||||||||||| Bypass webfilters ||||||||||||||||||||||||||||
## Flash (POST, application/x-fcs)
## ----------------------------------------------------------------------------
Shockwave Flash $SET(1=\0$FILTER(0))
## XP Search Assistant (text/xml)
## ----------------------------------------------------------------------------
SCAgent $SET(1=\0$FILTER(0))
## WinBatch (text/plain)
## ----------------------------------------------------------------------------
WinBatch Internet Extender Ver: $SET(1=\0$FILTER(0))
## ||||||||||||||||||||||||||| "Correct" user-agent |||||||||||||||||||||||||||
## If MSIE:
## ----------------------------------------------------------------------------
#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 6.1))
Mozilla/([4-9].0)\3(^$TST(keyword=*.f_ua_(^[a-z]++ie)*))
\(compatible; MSIE(^ 5.01)\2;(*(trident/[4-9].0)\4[;\)])+
$SET(1=Mozilla/\3 (compatible; MSIE\2; Windows NT 6.1; \4))
## If Firefox, SeaMonkey, Chrome, Safari:
## ----------------------------------------------------------------------------
#Mozilla/5.0(^$TST(keyword=*.f_ua_(^[a-z]++moz)*))(*(; rv:*Gecko/[#*:*]
# ( Firefox/[#*:*].[#*:*]$SET(3=.9.9)|)|\)
# (*\s(Gecko/[#*:*]|AppleWebKit/(*.)+{1}$SET(3=99))|))\2
# [0-9.]+( $NEST(\(,*gecko*,\))|)\4|$SET(2=\)))
# $SET(1=Mozilla/5.0 \(Windows; U; Windows NT 6.1; en-US\2\3\4)
Mozilla/5.0(^$TST(keyword=*.f_ua_(^[a-z]++moz)*))
(*\()+{1}Windows nt
(*(; rv:*Gecko/[#*:*]
( Firefox/[#*:*].[#*:*]$SET(3=.9.9)|)|\)
(*\s(Gecko/[#*:*]|AppleWebKit/(*.)+{1}$SET(3=99))|))\2
[0-9.]+( $NEST(\(,*gecko*,\))|)\4|$SET(2=\)))
(( (Chrome/|Safari/)[0-9][0-9.]+)+)\5
$SET(1=Mozilla/5.0 \(Windows NT 6.1; en-US\2\3\4\5)
Mozilla/5.0(^$TST(keyword=*.f_ua_(^[a-z]++moz)*))
(*\()+{1}Windows;
(*(; rv:*Gecko/[#*:*]
( Firefox/[#*:*].[#*:*]$SET(3=.9.9)|)|\)
(*\s(Gecko/[#*:*]|AppleWebKit/(*.)+{1}$SET(3=99))|))\2
[0-9.]+( $NEST(\(,*gecko*,\))|)\4|$SET(2=\)))
(( (Chrome/|Safari/)[0-9][0-9.]+)+)\5
$SET(1=Mozilla/5.0 \(Windows; U; Windows NT 6.1; en-US\2\3\4\5)
## If Opera:
## ----------------------------------------------------------------------------
#Opera/(^$TST(keyword=*.f_ua_(^[a-z]++op)*))(\w)\2
# (*(\sVersion/[#*:*].[0-9]$SET(4=9))\3|)
# $SET(1=Opera/\2 (Windows NT 6.1; U)\3\4)
Opera/(^$TST(keyword=*.f_ua_(^[a-z]++op)*))(\w)\2
((*(\s(Presto/[0-9.][0-9.]+|Version/[#*:*].[0-9]$SET(#=9)))\#)+|)
$SET(1=Opera/\2 (Windows NT 6.1; U)\@)
## |||||||||||||||||||||||||||||| Fake user-agent |||||||||||||||||||||||||||||
## Keywords:
## f_ua_ie -> fake MSIE
## f_ua_iemoz -> fake MSIE, if not IE or Mozilla
## f_ua_moz -> fake Mozilla
## f_ua_mozie -> fake Mozilla, if not IE or Mozilla
## f_ua_op -> fake Opera
## f_ua_opie -> fake Opera, if not IE or Opera
## f_ua_sp -> fake Space Bison
## f_ua_gbot -> fake Googlebot
## f_ua_§Anything -> fake unescaped "Anything"
## ----------------------------------------------------------------------------
$TST(keyword=*.f_ua_(
ie.(^$TST(hOrigUA=*MSIE(^*Opera)*))
$SET(1=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 6.1))
|iemoz.(^$TST(hOrigUA=*(Gecko/|MSIE(^*Opera))*))
$SET(1=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 6.1))
|moz.(^$TST(hOrigUA=*Gecko/*))
$SET(1=Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0)
|mozie.(^$TST(hOrigUA=*(Gecko/|MSIE(^*Opera))*))
$SET(1=Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0)
|op.(^$TST(hOrigUA=*Opera*))
$SET(1=Opera/9.20 (Windows NT 6.1; U; en))
|opie.(^$TST(hOrigUA=*(Opera|MSIE)*))
$SET(1=Opera/9.20 (Windows NT 6.1; U; en))
|sp.
$SET(1=Space Bison/0.02 [fu] (Win67; X; SK))
|gbot.
$SET(1=Googlebot/3.0 Beta (+http://www.googlebot.com/bot.html))
|§\2.$SET(1=$UESC(\2))
)*)