Added platforms and clients

This commit is contained in:
Sascha Leib
2025-09-14 11:58:40 +02:00
parent 5f2c175958
commit 7884ded35b
7 changed files with 43 additions and 16 deletions

View File

@@ -9,7 +9,7 @@
"id": "oldClient", "desc": "Obsolete browser version",
"bot": 40
},
{"func": "matchesPlatform", "params": ["winold", "macosold"],
{"func": "matchesPlatform", "params": ["winold", "macosold", "androidold"],
"id": "oldOS", "desc": "Obsolete platform version",
"bot": 40
},
@@ -17,6 +17,10 @@
"id": "serverOS", "desc": "Server OS",
"bot": 40
},
{"func": "matchesPlatform", "params": ["null"],
"id": "noOS", "desc": "Unknown or missing OS information",
"bot": 40
},
{"func": "smallPageCount", "params": [1],
"id": "onePage", "desc": "Visiter viewed only a single page",
"bot": 40
@@ -71,14 +75,15 @@
}
],
"ipRanges": [
{"from": "3.0.0.0", "to": "3.255.255.254", "label": "Amazon Data Services [US]"},
{"from": "3.0.0.0", "to": "3.255.255.254", "label": "Amazon Data Services [US]", "g": "US"},
{"from": "8.127.0.0", "to": "8.223.255.254", "label": "Alibaba [CN]"},
{"from": "24.240.0.0", "to": "24.247.255.255", "mask": 13, "label": "Charter [US]"},
{"from": "24.240.0.0", "to": "24.247.255.255", "m": 13, "label": "Charter [US]"},
{"from": "27.106.0.0", "to": "27.106.127.254", "label": "Huawei [US]"},
{"from": "34.0.0.0", "to": "34.191.255.254", "label": "Google LLC"},
{"from": "45.0.0.0", "to": "45.255.255.254", "label": "Various small ISPs, mostly BR"},
{"from": "46.250.160.0", "to": "46.250.191.254", "label": "Huawei [MX]"},
{"from": "49.0.200.0", "to": "49.0.255.254", "label": "Huawei [SG]"},
{"from": "66.249.64.0", "to": "66.249.95.255", "m": 19, "label": "Google LLC [US]"},
{"from": "84.37.35.0", "to": "84.37.255.254", "label": "GTT.net [US]"},
{"from": "94.74.64.0", "to": "94.74.127.254", "label": "Huawei [HK]"},
{"from": "101.0.0.0", "to": "101.255.255.254", "label": "ChinaNet [CN]"},
@@ -102,14 +107,14 @@
{"from": "188.0.0.0", "to": "188.255.255.254", "label": "South-American ISPs (188.x)"},
{"from": "189.0.0.0", "to": "189.255.255.254", "label": "South-American ISPs (189.x)"},
{"from": "190.0.0.0", "to": "190.255.255.254", "label": "South-American ISPs (190.x)"},
{"from": "192.124.170.0", "to": "192.124.182.254", "label": "Relcom [CZ]"},
{"from": "192.124.170.0", "to": "192.124.182.254", "label": "Relcom [CZ]"},
{"from": "195.37.0.0", "to": "195.37.255.255", "label": "DFN [DE]"},
{"from": "2001:4800::::::", "to": "2001:4fff:ffff:ffff:ffff:ffff:ffff:ffff", "label": "Rackspace/Google [US]"},
{"from": "2001:0ee0::::::", "to": "2001:ee3:ffff:ffff:ffff:ffff:ffff:ffff", "mask": 30, "label": "VNPT [VN]"},
{"from": "2600:1f00::::::", "to": "2600:1fff:ffff:ffff:ffff:ffff:ffff:ffff", "label": "Amazon Cloud [US]"},
{"from": "2603:6010::::::", "to": "2603:6010:ffff:ffff:ffff:ffff:ffff:ffff", "mask": 32, "label": "Charter [US]"},
{"from": "2603:8000::::::", "to": "2603:80ff:ffff:ffff:ffff:ffff:ffff:ffff", "mask": 24, "label": "Charter [US]"},
{"from": "2804:::::::", "to": "2804:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF", "mask": 16, "label": "Inspire [BR]"},
{"from": "2001:0ee0::::::", "to": "2001:ee3:ffff:ffff:ffff:ffff:ffff:ffff", "m": 30, "label": "VNPT [VN]"},
{"from": "2600:1f00::::::", "to": "2600:1fff:ffff:ffff:ffff:ffff:ffff:ffff", "m": "Amazon Cloud [US]"},
{"from": "2603:6010::::::", "to": "2603:6010:ffff:ffff:ffff:ffff:ffff:ffff", "m": 32, "label": "Charter [US]"},
{"from": "2603:8000::::::", "to": "2603:80ff:ffff:ffff:ffff:ffff:ffff:ffff", "m": 24, "label": "Charter [US]"},
{"from": "2804:::::::", "to": "2804:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF", "m": 16, "label": "Inspire [BR]"},
{"from": "2a0a:4cc0::::::", "to": "2a0a:4cc0:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF", "label": "Netcup [DE]"}
]
}

View File

@@ -23,6 +23,10 @@
"id": "huawei",
"rx": [ "\\sHuaweiBrowser\\/(\\d+\\.\\d+)[\\s\\.]", "\\/harmony360Browser\\/(\\d+\\.\\d+)[\\s\\.]"]
},
{"n": "Silk",
"id": "silk",
"rx": [ "\\Silk\\/(\\d+)\\." ]
},
{"n": "DuckDuckGo",
"id": "ddg",
"rx": [ "\\sDdg\\/(\\S+)" ]
@@ -59,8 +63,12 @@
"id": "safari",
"rx": [ "\\sSafari\\/(\\d+)" ]
},
{"n": "Firefox Old",
"id": "ffold",
"rx": [ "\\sFirefox\\/(\\d\\d)\\.", "\\sFirefox\\s" ]
},
{"n": "Firefox",
"id": "firefox",
"rx": [ "\\sFirefox\\/(\\S+)" ]
"rx": [ "\\sFirefox\\/(\\d\\d\\d)\\." ]
}
]

View File

@@ -15,9 +15,17 @@
"id": "ios",
"rx": [ "\\sFxiOS\\/(\\d+\\.\\d+)\\s", "\\siPhone\\sOS\\s([\\d\\._]+)\\s", "\\siPadOS\\s([\\d\\._]+)\\s", "iPad; CPU OS (\\d+)[_\\.\\s]", "\\sCriOS\\/(\\d+\\.\\d+)\\." ]
},
{"n": "FireOS",
"id": "fire",
"rx": [ "\\sKFFOWI[\\)\\s]]", "\\sKFTHWI[\\)\\s]]" , "\\sSilk\\/"]
},
{"n": "Old Android",
"id": "androidold",
"rx": [ "Android[\\s;\\/](\\d)\\." ]
},
{"n": "Android",
"id": "android",
"rx": [ "[\\(\\s]Android\\s([^;]+);" ]
"rx": [ " Android[\\s;\\/](\\d\\d)\\.;\\s" ]
},
{"n": "Old MacOS",
"id": "macosold",