You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added `PalmOS` and updated Windows captures to ignore PalmOS.
Added a new `ai` category, to mark crawlers that are specifically for AI.
Added specific mispellings that indicate a web scraper instead of the human it is trying to spoof.
Added and updated tests.
Copy file name to clipboardExpand all lines: tests/browsersTest.php
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -342,7 +342,7 @@ public function testSafari() : void {
342
342
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15 (Applebot/0.1; +http://www.apple.com/go/applebot)' => [
343
343
'string' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15 (Applebot/0.1; +http://www.apple.com/go/applebot)',
344
344
'type' => 'robot',
345
-
'category' => 'search',
345
+
'category' => 'ai',
346
346
'app' => 'AppleBot',
347
347
'appname' => 'Applebot',
348
348
'appversion' => '0.1',
@@ -1863,6 +1863,21 @@ public function testOther() : void {
Copy file name to clipboardExpand all lines: tests/crawlersTest.php
+107-2Lines changed: 107 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,7 @@ public function testSearch() : void {
99
99
'appname' => 'Applebot',
100
100
'appversion' => '0.1',
101
101
'type' => 'robot',
102
-
'category' => 'search',
102
+
'category' => 'ai',
103
103
'architecture' => 'x86',
104
104
'bits' => 64,
105
105
'processor' => 'Intel',
@@ -116,7 +116,7 @@ public function testSearch() : void {
116
116
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15 (Applebot/0.1; +http://www.apple.com/go/applebot)' => [
117
117
'string' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15 (Applebot/0.1; +http://www.apple.com/go/applebot)',
118
118
'type' => 'robot',
119
-
'category' => 'search',
119
+
'category' => 'ai',
120
120
'app' => 'AppleBot',
121
121
'appname' => 'Applebot',
122
122
'appversion' => '0.1',
@@ -998,4 +998,109 @@ public function testMonitors() : void {
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML\, like Gecko) Version/8.0.2 Safari/600.2.5 (Amazonbot/0.1; +https://developer.amazon.com/support/amazonbot)' => [
1005
+
'string' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML\, like Gecko) Version/8.0.2 Safari/600.2.5 (Amazonbot/0.1; +https://developer.amazon.com/support/amazonbot)',
'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729; Diffbot/0.1; +http://www.diffbot.com)' => [
1026
+
'string' => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729; Diffbot/0.1; +http://www.diffbot.com)',
1027
+
'type' => 'robot',
1028
+
'category' => 'ai',
1029
+
'kernel' => 'Windows NT',
1030
+
'platform' => 'Windows',
1031
+
'platformversion' => 'XP',
1032
+
'engine' => 'Gecko',
1033
+
'engineversion' => '20090729',
1034
+
'browser' => 'Firefox',
1035
+
'browserversion' => '3.5.2',
1036
+
'language' => 'en-US',
1037
+
'app' => 'Diffbot',
1038
+
'appname' => 'Diffbot',
1039
+
'appversion' => '0.1',
1040
+
'url' => 'http://www.diffbot.com'
1041
+
],
1042
+
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15 (Applebot/0.1)' => [
1043
+
'string' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15 (Applebot/0.1)',
1044
+
'type' => 'robot',
1045
+
'category' => 'ai',
1046
+
'vendor' => 'Apple',
1047
+
'device' => 'Macintosh',
1048
+
'processor' => 'Intel',
1049
+
'architecture' => 'x86',
1050
+
'bits' => '64',
1051
+
'kernel' => 'Linux',
1052
+
'platform' => 'Mac OS X',
1053
+
'platformversion' => '10.14.5',
1054
+
'engine' => 'WebKit',
1055
+
'engineversion' => '605.1.15',
1056
+
'browser' => 'Safari',
1057
+
'browserversion' => '12.1.1',
1058
+
'app' => 'AppleBot',
1059
+
'appname' => 'Applebot',
1060
+
'appversion' => '0.1'
1061
+
],
1062
+
'Mozilla/5.0 (iPhone; CPU iPhone OS 8_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B410 Safari/600.1.4 (Applebot/0.1; +http://www.apple.com/go/applebot)' => [
1063
+
'string' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 8_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B410 Safari/600.1.4 (Applebot/0.1; +http://www.apple.com/go/applebot)',
1064
+
'type' => 'robot',
1065
+
'category' => 'ai',
1066
+
'vendor' => 'Apple',
1067
+
'device' => 'iPhone',
1068
+
'model' => '12B410',
1069
+
'architecture' => 'arm',
1070
+
'bits' => 64,
1071
+
'kernel' => 'Linux',
1072
+
'platform' => 'iOS',
1073
+
'platformversion' => '8.1',
1074
+
'engine' => 'WebKit',
1075
+
'engineversion' => '600.1.4',
1076
+
'browser' => 'Safari',
1077
+
'browserversion' => '8.0',
1078
+
'app' => 'AppleBot',
1079
+
'appname' => 'Applebot',
1080
+
'appversion' => '0.1',
1081
+
'url' => 'http://www.apple.com/go/applebot'
1082
+
],
1083
+
'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; PerplexityBot/1.0; +https://perplexity.ai/perplexitybot)' => [
1084
+
'string' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; PerplexityBot/1.0; +https://perplexity.ai/perplexitybot)',
0 commit comments