This is a set of filters that will completely cloak your browser's identity:
--- start of config ---
[Blocklists]
List.DumbSites = "..ListsDumbSites.txt"
[HTTP headers]
In = FALSE
Out = TRUE
Key = "User-Agent: Default"
URL = "(^$LST(DumbSites))"
Replace = "Opera/6.01 (Win32; U) [en]"
In = FALSE
Out = FALSE
Key = "User-Agent: Dumb Sites (IE)"
URL = "$LST(DumbSites)"
Replace = "Mozilla/4.0 (compatible; MSIE 6.0; Win32)"
In = FALSE
Out = TRUE
Key = "User-Agent: Dumb Sites (NS)"
URL = "$LST(DumbSites)"
Replace = "Mozilla/4.08 [en] (Win32; U; Nav)"
[Patterns]
Name = "Cloak UA in JS (Normal)"
Active = TRUE
URL = "$TYPE(htm) & (^$LST(DumbSites))"
Limit = 256
Match = "<start>"
Replace = "<!--//-->"
"<script type="text/javascript" src="dhtml/ua-op.js">"
"</script>
"
Name = "Cloak UA in JS (Dumb Sites /NS)"
Active = TRUE
URL = "$TYPE(htm) & $LST(DumbSites)"
Limit = 256
Match = "<start>"
Replace = "<!--//-->"
"<script type="text/javascript" src="dhtml/ua-ns.js">"
"</script>
"
Name = "Cloak UA in JS (Dumb Sites /IE)"
Active = FALSE
URL = "$TYPE(htm) & $LST(DumbSites)"
Limit = 256
Match = "<start>"
Replace = "<!--//-->"
"<script type="text/javascript" src="dhtml/ua-ie.js">"
"</script>
"
--- end of config ---
The blocklist DumbSites.txt:
# Dumb Sites list.
# This list contains URLs that block browsers other than the big two.
#
*.msn.(*.|)com/
*.hotmail.com/
*.passport.(*.|)com/
roxettedirect.com/
www.winace.com/
The user agent javascript files:
ua-op.js:
// Tell them I'm using Opera 6.01
navigator.userAgent = 'Opera/6.01 (Win32; U) [en]';
navigator.appName = 'Opera';
navigator.appVersion = '6.01';
navigator.appCodeName = 'Mozilla';
navigator.browserLanguage = 'en';
navigator.systemLanguage = 'en';
navigator.platform = 'Win32';
ua-ns.js
// Tell them I'm using Netscape Navigator 4.08
navigator.userAgent = 'Mozilla/4.08 [en] (Win32; U; Nav)';
navigator.appName = 'Netscape';
navigator.appVersion = '4.08 [en] (Win32; U; Nav)';
navigator.appCodeName = 'Mozilla';
navigator.browserLanguage = 'en';
navigator.systemLanguage = 'en';
navigator.platform = 'Win32';
ua-ie.js
// Tell them I'm using MSIE 6
navigator.userAgent = 'Mozilla/4.0 (compatible; MSIE 6.0; Win32)';
navigator.appName = 'Microsoft Internet Explorer';
navigator.appVersion = '4.0 (compatible; MSIE 6.0; Win32)';
navigator.appCodeName = 'Mozilla';
navigator.browserLanguage = 'en';
navigator.systemLanguage = 'en';
navigator.platform = 'Win32';
To use these filters, save the section betweeen --- start of config --- and --- end of config --- to a textfile, save as cloak.cfg and merge from within Proxomitron.
Then save the DumbSites.txt file in your /Lists folder, and then save the three ua-xx.js files in your /HTML folder.
All files and filters are included in my filterset (http://"http://asp.flaaten.dk/pforum/topic.asp?ARCHIVE=&TOPIC_ID=257") in the 'Configuration Files' forum.
This will COMPLETELY cloak your browser version, except for Java and Active-X (which should be disabled always).
Edited by - Jor on 15 Jan 2002 19:15:05
I found it rather useless to include a "default" Ua option, as Mozilla and Opera allow you to edit with anyway, and MSIE ignores it. So below is the latest version of this set:
[Blocklists]
List.DumbSites = "..ListsDumbSites.txt"
[HTTP headers]
In = FALSE
Out = TRUE
Key = "User-Agent: Dumb Sites (IE)"
URL = "$LST(DumbSites)"
Replace = "Mozilla/4.0 (compatible; MSIE 6.0; Win32) [en]"
In = FALSE
Out = FALSE
Key = "User-Agent: Dumb Sites (Moz 3.0)"
URL = "$LST(DumbSites)"
Replace = "Mozilla/3.0 (Win32; U) [en]"
In = FALSE
Out = FALSE
Key = "User-Agent: Dumb Sites (Moz 5.0)"
URL = "$LST(DumbSites)"
Replace = "Mozilla/5.0 (Win32; U) [en]"
In = FALSE
Out = FALSE
Key = "User-Agent: Dumb Sites (NS 4.78)"
URL = "$LST(DumbSites)"
Replace = "Mozilla/4.78 (Win32; U) [en]"
In = FALSE
Out = FALSE
Key = "User-Agent: Dumb Sites (Opera)"
URL = "($LST(DumbSites))"
Replace = "Opera/6.03 (Win32; U) [en]"
[Patterns]
Name = "Cloak UA in JS (Dumb Sites /Opera)"
Active = FALSE
URL = "$TYPE(htm) & $LST(DumbSites)"
Limit = 256
Match = "<start>"
Replace = "<!--//-->"
"<script src="http://bweb..local.ptron/ua-op.js" "
"type="text/javascript"></script>
$STOP()"
Name = "Cloak UA in JS (Dumb Sites /IE)"
Active = TRUE
URL = "$TYPE(htm) & $LST(DumbSites)"
Limit = 256
Match = "<start>"
Replace = "<!--//-->"
"<script src="http://bweb..local.ptron/ua-ie.js" "
"type="text/javascript"></script>
$STOP()"
Name = "Cloak UA in JS (Dumb Sites /Moz 3.0)"
Active = FALSE
URL = "$TYPE(htm) & $LST(DumbSites)"
Limit = 256
Match = "<start>"
Replace = "<!--//-->"
"<script src="http://bweb..local.ptron/ua-moz3.js" "
"type="text/javascript"></script>
$STOP()"
Name = "Cloak UA in JS (Dumb Sites /Moz 5.0)"
Active = FALSE
URL = "$TYPE(htm) & $LST(DumbSites)"
Limit = 256
Match = "<start>"
Replace = "<!--//-->"
"<script src="http://bweb..local.ptron/ua-moz5.js" "
"type="text/javascript"></script>
$STOP()"
Name = "Cloak UA in JS (Dumb Sites /NS 4.78)"
Active = FALSE
URL = "$TYPE(htm) & $LST(DumbSites)"
Limit = 256
Match = "<start>"
Replace = "<!--//-->"
"<script src="http://bweb..local.ptron/ua-ns.js" "
"type="text/javascript"></script>
$STOP()"
Updated versions of the javascript files:
The user agent javascript files:
ua-op.js:
// Tell them I'm using Opera 6.03
navigator.userAgent = 'Opera/6.03 (Win32; U) [en]';
navigator.appName = 'Opera';
navigator.appVersion = '6.02';
navigator.appCodeName = 'Mozilla';
navigator.browserLanguage = 'en';
navigator.systemLanguage = 'en';
navigator.platform = 'Win32';
ua-ns.js
// Tell them I'm using Netscape 4.78
navigator.userAgent = 'Mozilla/4.78 (Win32; U) [en]';
navigator.appName = 'Netscape';
navigator.appVersion = '4.78 (Win32; U)';
navigator.appCodeName = 'Mozilla';
navigator.browserLanguage = 'en';
navigator.systemLanguage = 'en';
navigator.platform = 'Win32';
ua-ie.js
// Tell them I'm using MSIE 6
navigator.userAgent = 'Mozilla/4.0 (compatible; MSIE 6.0; Win32) [en]';
navigator.appName = 'Microsoft Internet Explorer';
navigator.appVersion = '4.0 (compatible; MSIE 6.0; Win32)';
navigator.appCodeName = 'Mozilla';
navigator.browserLanguage = 'en';
navigator.systemLanguage = 'en';
navigator.platform = 'Win32';
ua-moz3.js
// Tell them I'm using Mozilla 3.0
navigator.userAgent = 'Mozilla/3.0 (Win32; U) [en]';
navigator.appName = 'Netscape';
navigator.appVersion = '3.0 (Win32; U)';
navigator.appCodeName = 'Mozilla';
navigator.browserLanguage = 'en';
navigator.systemLanguage = 'en';
navigator.platform = 'Win32';
ua-moz5.js
// Tell them I'm using Mozilla 5
navigator.userAgent = 'Mozilla/5.0 (Win32; U) [en]';
navigator.appName = 'Netscape';
navigator.appVersion = '5.0 (Win32; U)';
navigator.appCodeName = 'Mozilla';
navigator.browserLanguage = 'en';
navigator.systemLanguage = 'en';
navigator.platform = 'Win32';
You can cloak your browser as either MSIE, Opera 6.03, Netscape 4.78, Mozilla 3, or Mozilla 5 (Netscape 6).
Keep in mind MSIE ignores the javascript files.
Edited by - Jor on 03 Jun 2002 13:13:12