forked from ua-parser/uap-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
regexes.yaml
4934 lines (4448 loc) · 158 KB
/
regexes.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
user_agent_parsers:
#### SPECIAL CASES TOP ####
# @note: iOS / OSX Applications
- regex: '(CFNetwork)(?:/(\d+)\.(\d+)\.?(\d+)?)?'
family_replacement: 'CFNetwork'
# Pingdom
- regex: '(Pingdom.com_bot_version_)(\d+)\.(\d+)'
family_replacement: 'PingdomBot'
# 'Mozilla/5.0 (Unknown; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) PingdomTMS/0.8.5 Safari/534.34'
- regex: '(PingdomTMS)/(\d+)\.(\d+)\.(\d+)'
family_replacement: 'PingdomBot'
#StatusCake
- regex: '(\(StatusCake\))'
family_replacement: 'StatusCakeBot'
# Facebook
- regex: '(facebookexternalhit)/(\d+)\.(\d+)'
family_replacement: 'FacebookBot'
# Google Plus
- regex: 'Google.*/\+/web/snippet'
family_replacement: 'GooglePlusBot'
# Gmail
- regex: 'via ggpht.com GoogleImageProxy'
family_replacement: 'GmailImageProxy'
# Twitter
- regex: '(Twitterbot)/(\d+)\.(\d+)'
family_replacement: 'TwitterBot'
# Bots Pattern '/name-0.0'
- regex: '/((?:Ant-)?Nutch|[A-z]+[Bb]ot|[A-z]+[Ss]pider|Axtaris|fetchurl|Isara|ShopSalad|Tailsweep)[ \-](\d+)(?:\.(\d+)(?:\.(\d+))?)?'
# Bots Pattern 'name/0.0'
- regex: '\b(008|Altresium|Argus|BaiduMobaider|BoardReader|DNSGroup|DataparkSearch|EDI|Goodzer|Grub|INGRID|Infohelfer|LinkedInBot|LOOQ|Nutch|PathDefender|Peew|PostPost|Steeler|Twitterbot|VSE|WebCrunch|WebZIP|Y!J-BR[A-Z]|YahooSeeker|envolk|sproose|wminer)/(\d+)(?:\.(\d+)(?:\.(\d+))?)?'
# MSIECrawler
- regex: '(MSIE) (\d+)\.(\d+)([a-z]\d?)?;.* MSIECrawler'
family_replacement: 'MSIECrawler'
# Downloader ...
- regex: '(Google-HTTP-Java-Client|Apache-HttpClient|http%20client|Python-urllib|HttpMonitor|TLSProber|WinHTTP|JNLP|okhttp)(?:[ /](\d+)(?:\.(\d+)(?:\.(\d+))?)?)?'
# Bots
- regex: '(1470\.net crawler|50\.nu|8bo Crawler Bot|Aboundex|Accoona-[A-z]+-Agent|AdsBot-Google(?:-[a-z]+)?|altavista|AppEngine-Google|archive.*?\.org_bot|archiver|Ask Jeeves|[Bb]ai[Dd]u[Ss]pider(?:-[A-Za-z]+)*|bingbot|BingPreview|blitzbot|BlogBridge|BoardReader(?: [A-Za-z]+)*|boitho.com-dc|BotSeer|\b\w*favicon\w*\b|\bYeti(?:-[a-z]+)?|Catchpoint bot|[Cc]harlotte|Checklinks|clumboot|Comodo HTTP\(S\) Crawler|Comodo-Webinspector-Crawler|ConveraCrawler|CRAWL-E|CrawlConvera|Daumoa(?:-feedfetcher)?|Feed Seeker Bot|findlinks|Flamingo_SearchEngine|FollowSite Bot|furlbot|Genieo|gigabot|GomezAgent|gonzo1|(?:[a-zA-Z]+-)?Googlebot(?:-[a-zA-Z]+)?|Google SketchUp|grub-client|gsa-crawler|heritrix|HiddenMarket|holmes|HooWWWer|htdig|ia_archiver|ICC-Crawler|Icarus6j|ichiro(?:/mobile)?|IconSurf|IlTrovatore(?:-Setaccio)?|InfuzApp|Innovazion Crawler|InternetArchive|IP2[a-z]+Bot|jbot\b|KaloogaBot|Kraken|Kurzor|larbin|LEIA|LesnikBot|Linguee Bot|LinkAider|LinkedInBot|Lite Bot|Llaut|lycos|Mail\.RU_Bot|masscan|masidani_bot|Mediapartners-Google|Microsoft .*? Bot|mogimogi|mozDex|MJ12bot|msnbot(?:-media *)?|msrbot|netresearch|Netvibes|NewsGator[^/]*|^NING|Nutch[^/]*|Nymesis|ObjectsSearch|Orbiter|OOZBOT|PagePeeker|PagesInventory|PaxleFramework|Peeplo Screenshot Bot|PlantyNet_WebRobot|Pompos|Read%20Later|Reaper|RedCarpet|Retreiver|Riddler|Rival IQ|scooter|Scrapy|Scrubby|searchsight|seekbot|semanticdiscovery|Simpy|SimplePie|SEOstats|SimpleRSS|SiteCon|Slackbot-LinkExpanding|Slack-ImgProxy|Slurp|snappy|Speedy Spider|Squrl Java|TheUsefulbot|ThumbShotsBot|Thumbshots\.ru|TwitterBot|WhatsApp|URL2PNG|Vagabondo|VoilaBot|^vortex|Votay bot|^voyager|WASALive.Bot|Web-sniffer|WebThumb|WeSEE:[A-z]+|WhatWeb|WIRE|WordPress|Wotbox|www\.almaden\.ibm\.com|Xenu(?:.s)? Link Sleuth|Xerka [A-z]+Bot|yacy(?:bot)?|Yahoo[a-z]*Seeker|Yahoo! Slurp|Yandex\w+|YodaoBot(?:-[A-z]+)?|YottaaMonitor|Yowedo|^Zao|^Zao-Crawler|ZeBot_www\.ze\.bz|ZooShot|ZyBorg)(?:[ /]v?(\d+)(?:\.(\d+)(?:\.(\d+))?)?)?'
# Bots General matcher 'name/0.0'
- regex: '(?:\/[A-Za-z0-9\.]+)? *([A-Za-z0-9 \-_\!\[\]:]*(?:[Aa]rchiver|[Ii]ndexer|[Ss]craper|[Bb]ot|[Ss]pider|[Cc]rawl[a-z]*))/(\d+)(?:\.(\d+)(?:\.(\d+))?)?'
# Bots General matcher 'name 0.0'
- regex: '(?:\/[A-Za-z0-9\.]+)? *([A-Za-z0-9 _\!\[\]:]*(?:[Aa]rchiver|[Ii]ndexer|[Ss]craper|[Bb]ot|[Ss]pider|[Cc]rawl[a-z]*)) (\d+)(?:\.(\d+)(?:\.(\d+))?)?'
# Bots containing spider|scrape|bot(but not CUBOT)|Crawl
- regex: '((?:[A-z0-9]+|[A-z\-]+ ?)?(?: the )?(?:[Ss][Pp][Ii][Dd][Ee][Rr]|[Ss]crape|[A-Za-z0-9-]*(?:[^C][^Uu])[Bb]ot|[Cc][Rr][Aa][Ww][Ll])[A-z0-9]*)(?:(?:[ /]| v)(\d+)(?:\.(\d+)(?:\.(\d+))?)?)?'
# HbbTV standard defines what features the browser should understand.
# but it's like targeting "HTML5 browsers", effective browser support depends on the model
# See os_parsers if you want to target a specific TV
- regex: '(HbbTV)/(\d+)\.(\d+)\.(\d+) \('
# must go before Firefox to catch Chimera/SeaMonkey/Camino
- regex: '(Chimera|SeaMonkey|Camino)/(\d+)\.(\d+)\.?([ab]?\d+[a-z]*)?'
# Social Networks
# Facebook
- regex: '\[FB.*;(FBAV)/(\d+)(?:\.(\d+)(?:\.(\d)+)?)?'
family_replacement: 'Facebook'
# Pinterest
- regex: '\[(Pinterest)/[^\]]+\]'
- regex: '(Pinterest)(?: for Android(?: Tablet)?)?/(\d+)(?:\.(\d+)(?:\.(\d)+)?)?'
# Pale Moon
- regex: '(PaleMoon)/(\d+)\.(\d+)\.?(\d+)?'
family_replacement: 'Pale Moon'
# Firefox
- regex: '(Fennec)/(\d+)\.(\d+)\.?([ab]?\d+[a-z]*)'
family_replacement: 'Firefox Mobile'
- regex: '(Fennec)/(\d+)\.(\d+)(pre)'
family_replacement: 'Firefox Mobile'
- regex: '(Fennec)/(\d+)\.(\d+)'
family_replacement: 'Firefox Mobile'
- regex: '(?:Mobile|Tablet);.*(Firefox)/(\d+)\.(\d+)'
family_replacement: 'Firefox Mobile'
- regex: '(Namoroka|Shiretoko|Minefield)/(\d+)\.(\d+)\.(\d+(?:pre)?)'
family_replacement: 'Firefox ($1)'
- regex: '(Firefox)/(\d+)\.(\d+)(a\d+[a-z]*)'
family_replacement: 'Firefox Alpha'
- regex: '(Firefox)/(\d+)\.(\d+)(b\d+[a-z]*)'
family_replacement: 'Firefox Beta'
- regex: '(Firefox)-(?:\d+\.\d+)?/(\d+)\.(\d+)(a\d+[a-z]*)'
family_replacement: 'Firefox Alpha'
- regex: '(Firefox)-(?:\d+\.\d+)?/(\d+)\.(\d+)(b\d+[a-z]*)'
family_replacement: 'Firefox Beta'
- regex: '(Namoroka|Shiretoko|Minefield)/(\d+)\.(\d+)([ab]\d+[a-z]*)?'
family_replacement: 'Firefox ($1)'
- regex: '(Firefox).*Tablet browser (\d+)\.(\d+)\.(\d+)'
family_replacement: 'MicroB'
- regex: '(MozillaDeveloperPreview)/(\d+)\.(\d+)([ab]\d+[a-z]*)?'
- regex: '(FxiOS)/(\d+)\.(\d+)(\.(\d+))?(\.(\d+))?'
family_replacement: 'Firefox iOS'
# e.g.: Flock/2.0b2
- regex: '(Flock)/(\d+)\.(\d+)(b\d+?)'
# RockMelt
- regex: '(RockMelt)/(\d+)\.(\d+)\.(\d+)'
# e.g.: Fennec/0.9pre
- regex: '(Navigator)/(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Netscape'
- regex: '(Navigator)/(\d+)\.(\d+)([ab]\d+)'
family_replacement: 'Netscape'
- regex: '(Netscape6)/(\d+)\.(\d+)\.?([ab]?\d+)?'
family_replacement: 'Netscape'
- regex: '(MyIBrow)/(\d+)\.(\d+)'
family_replacement: 'My Internet Browser'
# UC Browser
# we need check it before opera. In other case case UC Browser detected look like Opera Mini
- regex: '(UC? ?Browser|UCWEB|U3)[ /]?(\d+)\.(\d+)\.(\d+)'
family_replacement: 'UC Browser'
# Opera will stop at 9.80 and hide the real version in the Version string.
# see: http://dev.opera.com/articles/view/opera-ua-string-changes/
- regex: '(Opera Tablet).*Version/(\d+)\.(\d+)(?:\.(\d+))?'
- regex: '(Opera Mini)(?:/att)?/?(\d+)?(?:\.(\d+))?(?:\.(\d+))?'
- regex: '(Opera)/.+Opera Mobi.+Version/(\d+)\.(\d+)'
family_replacement: 'Opera Mobile'
- regex: '(Opera)/(\d+)\.(\d+).+Opera Mobi'
family_replacement: 'Opera Mobile'
- regex: 'Opera Mobi.+(Opera)(?:/|\s+)(\d+)\.(\d+)'
family_replacement: 'Opera Mobile'
- regex: 'Opera Mobi'
family_replacement: 'Opera Mobile'
- regex: '(Opera)/9.80.*Version/(\d+)\.(\d+)(?:\.(\d+))?'
# Opera 14 for Android uses a WebKit render engine.
- regex: '(?:Mobile Safari).*(OPR)/(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Opera Mobile'
# Opera >=15 for Desktop is similar to Chrome but includes an "OPR" Version string.
- regex: '(?:Chrome).*(OPR)/(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Opera'
# Opera Coast
- regex: '(Coast)/(\d+).(\d+).(\d+)'
family_replacement: 'Opera Coast'
# Opera Mini for iOS (from version 8.0.0)
- regex: '(OPiOS)/(\d+).(\d+).(\d+)'
family_replacement: 'Opera Mini'
# Opera Neon
- regex: 'Chrome/.+( MMS)/(\d+).(\d+).(\d+)'
family_replacement: 'Opera Neon'
# Palm WebOS looks a lot like Safari.
- regex: '(hpw|web)OS/(\d+)\.(\d+)(?:\.(\d+))?'
family_replacement: 'webOS Browser'
# LuaKit has no version info.
# http://luakit.org/projects/luakit/
- regex: '(luakit)'
family_replacement: 'LuaKit'
# Snowshoe
- regex: '(Snowshoe)/(\d+)\.(\d+).(\d+)'
# Lightning (for Thunderbird)
# http://www.mozilla.org/projects/calendar/lightning/
- regex: 'Gecko/\d+ (Lightning)/(\d+)\.(\d+)\.?((?:[ab]?\d+[a-z]*)|(?:\d*))'
# Swiftfox
- regex: '(Firefox)/(\d+)\.(\d+)\.(\d+(?:pre)?) \(Swiftfox\)'
family_replacement: 'Swiftfox'
- regex: '(Firefox)/(\d+)\.(\d+)([ab]\d+[a-z]*)? \(Swiftfox\)'
family_replacement: 'Swiftfox'
# Rekonq
- regex: '(rekonq)/(\d+)\.(\d+)\.?(\d+)? Safari'
family_replacement: 'Rekonq'
- regex: 'rekonq'
family_replacement: 'Rekonq'
# Conkeror lowercase/uppercase
# http://conkeror.org/
- regex: '(conkeror|Conkeror)/(\d+)\.(\d+)\.?(\d+)?'
family_replacement: 'Conkeror'
# catches lower case konqueror
- regex: '(konqueror)/(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Konqueror'
- regex: '(WeTab)-Browser'
- regex: '(Comodo_Dragon)/(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Comodo Dragon'
- regex: '(Symphony) (\d+).(\d+)'
- regex: 'PLAYSTATION 3.+WebKit'
family_replacement: 'NetFront NX'
- regex: 'PLAYSTATION 3'
family_replacement: 'NetFront'
- regex: '(PlayStation Portable)'
family_replacement: 'NetFront'
- regex: '(PlayStation Vita)'
family_replacement: 'NetFront NX'
- regex: 'AppleWebKit.+ (NX)/(\d+)\.(\d+)\.(\d+)'
family_replacement: 'NetFront NX'
- regex: '(Nintendo 3DS)'
family_replacement: 'NetFront NX'
# Amazon Silk, should go before Safari and Chrome Mobile
- regex: '(Silk)/(\d+)\.(\d+)(?:\.([0-9\-]+))?'
family_replacement: 'Amazon Silk'
# @ref: http://www.puffinbrowser.com
- regex: '(Puffin)/(\d+)\.(\d+)(?:\.(\d+))?'
# Edge Mobile
- regex: 'Windows Phone .*(Edge)/(\d+)\.(\d+)'
family_replacement: 'Edge Mobile'
# Samsung Internet (based on Chrome, but lacking some features)
- regex: '(SamsungBrowser)/(\d+)\.(\d+)'
family_replacement: 'Samsung Internet'
# Baidu Browsers (desktop spoofs chrome & IE, explorer is mobile)
- regex: '(baidubrowser)[/\s](\d+)(?:\.(\d+)(?:\.(\d+))?)?'
family_replacement: 'Baidu Browser'
- regex: '(FlyFlow)/(\d+)\.(\d+)'
family_replacement: 'Baidu Explorer'
# MxBrowser is Maxthon. Must go before Mobile Chrome for Android
- regex: '(MxBrowser)/(\d+)\.(\d+)(?:\.(\d+))?'
family_replacement: 'Maxthon'
# Crosswalk must go before Mobile Chrome for Android
- regex: '(Crosswalk)/(\d+)\.(\d+)\.(\d+)\.(\d+)'
# Chrome Mobile
- regex: '(CrMo)/(\d+)\.(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Chrome Mobile'
- regex: '(CriOS)/(\d+)\.(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Chrome Mobile iOS'
- regex: '(Chrome)/(\d+)\.(\d+)\.(\d+)\.(\d+) Mobile(?:[ /]|$)'
family_replacement: 'Chrome Mobile'
- regex: ' Mobile .*(Chrome)/(\d+)\.(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Chrome Mobile'
# Chrome Frame must come before MSIE.
- regex: '(chromeframe)/(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Chrome Frame'
# Tizen Browser (second case included in browser/major.minor regex)
- regex: '(SLP Browser)/(\d+)\.(\d+)'
family_replacement: 'Tizen Browser'
# Sogou Explorer 2.X
- regex: '(SE 2\.X) MetaSr (\d+)\.(\d+)'
family_replacement: 'Sogou Explorer'
# QQ Browsers
- regex: '(MQQBrowser/Mini)(?:(\d+)(?:\.(\d+)(?:\.(\d+))?)?)?'
family_replacement: 'QQ Browser Mini'
- regex: '(MQQBrowser)(?:/(\d+)(?:\.(\d+)(?:\.(\d+))?)?)?'
family_replacement: 'QQ Browser Mobile'
- regex: '(QQBrowser)(?:/(\d+)(?:\.(\d+)\.(\d+)(?:\.(\d+))?)?)?'
family_replacement: 'QQ Browser'
# Rackspace Monitoring
- regex: '(Rackspace Monitoring)/(\d+)\.(\d+)'
family_replacement: 'RackspaceBot'
# PyAMF
- regex: '(PyAMF)/(\d+)\.(\d+)\.(\d+)'
# Yandex Browser
- regex: '(YaBrowser)/(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Yandex Browser'
# Mail.ru Amigo/Internet Browser (Chromium-based)
- regex: '(Chrome)/(\d+)\.(\d+)\.(\d+).* MRCHROME'
family_replacement: 'Mail.ru Chromium Browser'
# AOL Browser (IE-based)
- regex: '(AOL) (\d+)\.(\d+); AOLBuild (\d+)'
#### END SPECIAL CASES TOP ####
#### MAIN CASES - this catches > 50% of all browsers ####
# Slack desktop client (needs to be before Apple Mail, Electron, and Chrome as it gets wrongly detected on Mac OS otherwise)
- regex: '(Slack_SSB)/(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Slack Desktop Client'
# HipChat provides a version on Mac, but not on Windows.
# Needs to be before Chrome on Windows, and AppleMail on Mac.
- regex: '(HipChat)/?(\d+)?'
family_replacement: 'HipChat Desktop Client'
# Browser/major_version.minor_version.beta_version
- regex: '\b(MobileIron|FireWeb|Jasmine|ANTGalio|Midori|Fresco|Lobo|PaleMoon|Maxthon|Lynx|OmniWeb|Dillo|Camino|Demeter|Fluid|Fennec|Epiphany|Shiira|Sunrise|Spotify|Flock|Netscape|Lunascape|WebPilot|NetFront|Netfront|Konqueror|SeaMonkey|Kazehakase|Vienna|Iceape|Iceweasel|IceWeasel|Iron|K-Meleon|Sleipnir|Galeon|GranParadiso|Opera Mini|iCab|NetNewsWire|ThunderBrowse|Iris|UP\.Browser|Bunjalloo|Google Earth|Raven for Mac|Openwave|MacOutlook|Electron)/(\d+)\.(\d+)\.(\d+)'
# Outlook 2007
- regex: 'Microsoft Office Outlook 12\.\d+\.\d+|MSOffice 12'
family_replacement: 'Outlook'
v1_replacement: '2007'
# Outlook 2010
- regex: 'Microsoft Outlook 14\.\d+\.\d+|MSOffice 14'
family_replacement: 'Outlook'
v1_replacement: '2010'
# Outlook 2013
- regex: 'Microsoft Outlook 15\.\d+\.\d+'
family_replacement: 'Outlook'
v1_replacement: '2013'
# Outlook 2016
- regex: 'Microsoft Outlook (?:Mail )?16\.\d+\.\d+'
family_replacement: 'Outlook'
v1_replacement: '2016'
# Windows Live Mail
- regex: 'Outlook-Express\/7\.0.*'
family_replacement: 'Windows Live Mail'
# Apple Air Mail
- regex: '(Airmail) (\d+)\.(\d+)(?:\.(\d+))?'
# Thunderbird
- regex: '(Thunderbird)/(\d+)\.(\d+)(?:\.(\d+(?:pre)?))?'
family_replacement: 'Thunderbird'
# Postbox
- regex: '(Postbox)/(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Postbox'
# Barca
- regex: '(Barca(?:Pro)?)/(\d+)\.(\d+)(?:\.(\d+))?'
family_replacement: 'Barca'
# Lotus Notes
- regex: '(Lotus-Notes)/(\d+)\.(\d+)(?:\.(\d+))?'
family_replacement: 'Lotus Notes'
# Vivaldi uses "Vivaldi"
- regex: '(Vivaldi)/(\d+)\.(\d+)\.(\d+)'
# Edge/major_version.minor_version
- regex: '(Edge)/(\d+)\.(\d+)'
# Brave Browser https://brave.com/
- regex: '(brave)/(\d+)\.(\d+)\.(\d+) Chrome'
family_replacement: 'Brave'
# Iron Browser ~since version 50
- regex: '(Chrome)/(\d+)\.(\d+)\.(\d+)[\d.]* Iron[^/]'
family_replacement: 'Iron'
# Dolphin Browser
# @ref: http://www.dolphin.com
- regex: '\b(Dolphin)(?: |HDCN/|/INT\-)(\d+)\.(\d+)\.?(\d+)?'
# Headless Chrome
# https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
# Currently only available on Linux
- regex: 'HeadlessChrome'
family_replacement: 'HeadlessChrome'
# Browser/major_version.minor_version
- regex: '(bingbot|Bolt|AdobeAIR|Jasmine|IceCat|Skyfire|Midori|Maxthon|Lynx|Arora|IBrowse|Dillo|Camino|Shiira|Fennec|Phoenix|Flock|Netscape|Lunascape|Epiphany|WebPilot|Opera Mini|Opera|NetFront|Netfront|Konqueror|Googlebot|SeaMonkey|Kazehakase|Vienna|Iceape|Iceweasel|IceWeasel|Iron|K-Meleon|Sleipnir|Galeon|GranParadiso|iCab|iTunes|MacAppStore|NetNewsWire|Space Bison|Stainless|Orca|Dolfin|BOLT|Minimo|Tizen Browser|Polaris|Abrowser|Planetweb|ICE Browser|mDolphin|qutebrowser|Otter|QupZilla|MailBar|kmail2|YahooMobileMail|ExchangeWebServices|ExchangeServicesClient|Dragon|Outlook-iOS-Android)/(\d+)\.(\d+)(?:\.(\d+))?'
# Chrome/Chromium/major_version.minor_version
- regex: '(Chromium|Chrome)/(\d+)\.(\d+)(?:\.(\d+))?'
##########
# IE Mobile needs to happen before Android to catch cases such as:
# Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 920)...
# Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 920; ANZ821)...
# Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 920; Orange)...
# Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 920; Vodafone)...
##########
# IE Mobile
- regex: '(IEMobile)[ /](\d+)\.(\d+)'
family_replacement: 'IE Mobile'
# Baca Berita App News Reader
- regex: '(BacaBerita App)\/(\d+)\.(\d+)\.(\d+)'
# Browser major_version.minor_version.beta_version (space instead of slash)
- regex: '(iRider|Crazy Browser|SkipStone|iCab|Lunascape|Sleipnir|Maemo Browser) (\d+)\.(\d+)\.(\d+)'
# Browser major_version.minor_version (space instead of slash)
- regex: '(iCab|Lunascape|Opera|Android|Jasmine|Polaris|Microsoft SkyDriveSync|The Bat!) (\d+)\.(\d+)\.?(\d+)?'
# Kindle WebKit
- regex: '(Kindle)/(\d+)\.(\d+)'
# weird android UAs
- regex: '(Android) Donut'
v1_replacement: '1'
v2_replacement: '2'
- regex: '(Android) Eclair'
v1_replacement: '2'
v2_replacement: '1'
- regex: '(Android) Froyo'
v1_replacement: '2'
v2_replacement: '2'
- regex: '(Android) Gingerbread'
v1_replacement: '2'
v2_replacement: '3'
- regex: '(Android) Honeycomb'
v1_replacement: '3'
# desktop mode
# http://www.anandtech.com/show/3982/windows-phone-7-review
- regex: '(MSIE) (\d+)\.(\d+).*XBLWP7'
family_replacement: 'IE Large Screen'
#### END MAIN CASES ####
#### SPECIAL CASES ####
- regex: '(Obigo)InternetBrowser'
- regex: '(Obigo)\-Browser'
- regex: '(Obigo|OBIGO)[^\d]*(\d+)(?:.(\d+))?'
family_replacement: 'Obigo'
- regex: '(MAXTHON|Maxthon) (\d+)\.(\d+)'
family_replacement: 'Maxthon'
- regex: '(Maxthon|MyIE2|Uzbl|Shiira)'
v1_replacement: '0'
- regex: '(BrowseX) \((\d+)\.(\d+)\.(\d+)'
- regex: '(NCSA_Mosaic)/(\d+)\.(\d+)'
family_replacement: 'NCSA Mosaic'
# Polaris/d.d is above
- regex: '(POLARIS)/(\d+)\.(\d+)'
family_replacement: 'Polaris'
- regex: '(Embider)/(\d+)\.(\d+)'
family_replacement: 'Polaris'
- regex: '(BonEcho)/(\d+)\.(\d+)\.?([ab]?\d+)?'
family_replacement: 'Bon Echo'
# @note: iOS / OSX Applications
- regex: '(iPod|iPhone|iPad).+Version/(\d+)\.(\d+)(?:\.(\d+))?.*[ +]Safari'
family_replacement: 'Mobile Safari'
- regex: '(iPod|iPhone|iPad).+Version/(\d+)\.(\d+)(?:\.(\d+))?'
family_replacement: 'Mobile Safari UI/WKWebView'
- regex: '(iPod|iPod touch|iPhone|iPad);.*CPU.*OS[ +](\d+)_(\d+)(?:_(\d+))?.*Mobile.*[ +]Safari'
family_replacement: 'Mobile Safari'
- regex: '(iPod|iPod touch|iPhone|iPad);.*CPU.*OS[ +](\d+)_(\d+)(?:_(\d+))?.*Mobile'
family_replacement: 'Mobile Safari UI/WKWebView'
- regex: '(iPod|iPhone|iPad).* Safari'
family_replacement: 'Mobile Safari'
- regex: '(iPod|iPhone|iPad)'
family_replacement: 'Mobile Safari UI/WKWebView'
- regex: '(AvantGo) (\d+).(\d+)'
- regex: '(OneBrowser)/(\d+).(\d+)'
family_replacement: 'ONE Browser'
- regex: '(Avant)'
v1_replacement: '1'
# This is the Tesla Model S (see similar entry in device parsers)
- regex: '(QtCarBrowser)'
v1_replacement: '1'
- regex: '^(iBrowser/Mini)(\d+).(\d+)'
family_replacement: 'iBrowser Mini'
- regex: '^(iBrowser|iRAPP)/(\d+).(\d+)'
# nokia browsers
# based on: http://www.developer.nokia.com/Community/Wiki/User-Agent_headers_for_Nokia_devices
- regex: '^(Nokia)'
family_replacement: 'Nokia Services (WAP) Browser'
- regex: '(NokiaBrowser)/(\d+)\.(\d+).(\d+)\.(\d+)'
family_replacement: 'Nokia Browser'
- regex: '(NokiaBrowser)/(\d+)\.(\d+).(\d+)'
family_replacement: 'Nokia Browser'
- regex: '(NokiaBrowser)/(\d+)\.(\d+)'
family_replacement: 'Nokia Browser'
- regex: '(BrowserNG)/(\d+)\.(\d+).(\d+)'
family_replacement: 'Nokia Browser'
- regex: '(Series60)/5\.0'
family_replacement: 'Nokia Browser'
v1_replacement: '7'
v2_replacement: '0'
- regex: '(Series60)/(\d+)\.(\d+)'
family_replacement: 'Nokia OSS Browser'
- regex: '(S40OviBrowser)/(\d+)\.(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Ovi Browser'
- regex: '(Nokia)[EN]?(\d+)'
# BlackBerry devices
- regex: '(PlayBook).+RIM Tablet OS (\d+)\.(\d+)\.(\d+)'
family_replacement: 'BlackBerry WebKit'
- regex: '(Black[bB]erry|BB10).+Version/(\d+)\.(\d+)\.(\d+)'
family_replacement: 'BlackBerry WebKit'
- regex: '(Black[bB]erry)\s?(\d+)'
family_replacement: 'BlackBerry'
- regex: '(OmniWeb)/v(\d+)\.(\d+)'
- regex: '(Blazer)/(\d+)\.(\d+)'
family_replacement: 'Palm Blazer'
- regex: '(Pre)/(\d+)\.(\d+)'
family_replacement: 'Palm Pre'
# fork of Links
- regex: '(ELinks)/(\d+)\.(\d+)'
- regex: '(ELinks) \((\d+)\.(\d+)'
- regex: '(Links) \((\d+)\.(\d+)'
- regex: '(QtWeb) Internet Browser/(\d+)\.(\d+)'
#- regex: '\(iPad;.+(Version)/(\d+)\.(\d+)(?:\.(\d+))?.*Safari/'
# family_replacement: 'iPad'
# Phantomjs, should go before Safari
- regex: '(PhantomJS)/(\d+)\.(\d+)\.(\d+)'
# WebKit Nightly
- regex: '(AppleWebKit)/(\d+)\.?(\d+)?\+ .* Safari'
family_replacement: 'WebKit Nightly'
# Safari
- regex: '(Version)/(\d+)\.(\d+)(?:\.(\d+))?.*Safari/'
family_replacement: 'Safari'
# Safari didn't provide "Version/d.d.d" prior to 3.0
- regex: '(Safari)/\d+'
- regex: '(OLPC)/Update(\d+)\.(\d+)'
- regex: '(OLPC)/Update()\.(\d+)'
v1_replacement: '0'
- regex: '(SEMC\-Browser)/(\d+)\.(\d+)'
- regex: '(Teleca)'
family_replacement: 'Teleca Browser'
- regex: '(Phantom)/V(\d+)\.(\d+)'
family_replacement: 'Phantom Browser'
- regex: 'Trident(.*)rv.(\d+)\.(\d+)'
family_replacement: 'IE'
# Espial
- regex: '(Espial)/(\d+)(?:\.(\d+))?(?:\.(\d+))?'
# Apple Mail
# apple mail - not directly detectable, have it after Safari stuff
- regex: '(AppleWebKit)/(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Apple Mail'
# AFTER THE EDGE CASES ABOVE!
# AFTER IE11
# BEFORE all other IE
- regex: '(Firefox)/(\d+)\.(\d+)\.(\d+)'
- regex: '(Firefox)/(\d+)\.(\d+)(pre|[ab]\d+[a-z]*)?'
- regex: '([MS]?IE) (\d+)\.(\d+)'
family_replacement: 'IE'
- regex: '(python-requests)/(\d+)\.(\d+)'
family_replacement: 'Python Requests'
# headless user-agents
- regex: '\b(Windows-Update-Agent|Microsoft-CryptoAPI|SophosUpdateManager|SophosAgent|Debian APT-HTTP|Ubuntu APT-HTTP|libcurl-agent|libwww-perl|urlgrabber|curl|Wget|OpenBSD ftp|jupdate)(?:[ /](\d+)(?:\.(\d+)(?:\.(\d+))?)?)?'
- regex: '(Java)[/ ]{0,1}\d+\.(\d+)\.(\d+)[_-]*([a-zA-Z0-9]+)*'
# Roku Digital-Video-Players https://www.roku.com/
- regex: '^(Roku)/DVP-(\d+)\.(\d+)'
# Kurio App News Reader https://kurio.co.id/
- regex: '(Kurio)\/(\d+)\.(\d+)\.(\d+)'
family_replacement: 'Kurio App'
os_parsers:
##########
# HbbTV vendors
##########
# starts with the easy one : Panasonic seems consistent across years, hope it will continue
#HbbTV/1.1.1 (;Panasonic;VIERA 2011;f.532;0071-0802 2000-0000;)
#HbbTV/1.1.1 (;Panasonic;VIERA 2012;1.261;0071-3103 2000-0000;)
#HbbTV/1.2.1 (;Panasonic;VIERA 2013;3.672;4101-0003 0002-0000;)
#- regex: 'HbbTV/\d+\.\d+\.\d+ \(;(Panasonic);VIERA ([0-9]{4});'
# Sony is consistent too but do not place year like the other
# Opera/9.80 (Linux armv7l; HbbTV/1.1.1 (; Sony; KDL32W650A; PKG3.211EUA; 2013;); ) Presto/2.12.362 Version/12.11
# Opera/9.80 (Linux mips; U; HbbTV/1.1.1 (; Sony; KDL40HX751; PKG1.902EUA; 2012;);; en) Presto/2.10.250 Version/11.60
# Opera/9.80 (Linux mips; U; HbbTV/1.1.1 (; Sony; KDL22EX320; PKG4.017EUA; 2011;);; en) Presto/2.7.61 Version/11.00
#- regex: 'HbbTV/\d+\.\d+\.\d+ \(; (Sony);.*;.*; ([0-9]{4});\)'
# LG is consistent too, but we need to add manually the year model
#Mozilla/5.0 (Unknown; Linux armv7l) AppleWebKit/537.1+ (KHTML, like Gecko) Safari/537.1+ HbbTV/1.1.1 ( ;LGE ;NetCast 4.0 ;03.20.30 ;1.0M ;)
#Mozilla/5.0 (DirectFB; Linux armv7l) AppleWebKit/534.26+ (KHTML, like Gecko) Version/5.0 Safari/534.26+ HbbTV/1.1.1 ( ;LGE ;NetCast 3.0 ;1.0 ;1.0M ;)
- regex: 'HbbTV/\d+\.\d+\.\d+ \( ;(LG)E ;NetCast 4.0'
os_v1_replacement: '2013'
- regex: 'HbbTV/\d+\.\d+\.\d+ \( ;(LG)E ;NetCast 3.0'
os_v1_replacement: '2012'
# Samsung is on its way of normalizing their user-agent
# HbbTV/1.1.1 (;Samsung;SmartTV2013;T-FXPDEUC-1102.2;;) WebKit
# HbbTV/1.1.1 (;Samsung;SmartTV2013;T-MST12DEUC-1102.1;;) WebKit
# HbbTV/1.1.1 (;Samsung;SmartTV2012;;;) WebKit
# HbbTV/1.1.1 (;;;;;) Maple_2011
- regex: 'HbbTV/1.1.1 \(;;;;;\) Maple_2011'
os_replacement: 'Samsung'
os_v1_replacement: '2011'
# manage the two models of 2013
- regex: 'HbbTV/\d+\.\d+\.\d+ \(;(Samsung);SmartTV([0-9]{4});.*FXPDEUC'
os_v2_replacement: 'UE40F7000'
- regex: 'HbbTV/\d+\.\d+\.\d+ \(;(Samsung);SmartTV([0-9]{4});.*MST12DEUC'
os_v2_replacement: 'UE32F4500'
# generic Samsung (works starting in 2012)
#- regex: 'HbbTV/\d+\.\d+\.\d+ \(;(Samsung);SmartTV([0-9]{4});'
# Philips : not found any other way than a manual mapping
# Opera/9.80 (Linux mips; U; HbbTV/1.1.1 (; Philips; ; ; ; ) CE-HTML/1.0 NETTV/4.1.3 PHILIPSTV/1.1.1; en) Presto/2.10.250 Version/11.60
# Opera/9.80 (Linux mips ; U; HbbTV/1.1.1 (; Philips; ; ; ; ) CE-HTML/1.0 NETTV/3.2.1; en) Presto/2.6.33 Version/10.70
- regex: 'HbbTV/1.1.1 \(; (Philips);.*NETTV/4'
os_v1_replacement: '2013'
- regex: 'HbbTV/1.1.1 \(; (Philips);.*NETTV/3'
os_v1_replacement: '2012'
- regex: 'HbbTV/1.1.1 \(; (Philips);.*NETTV/2'
os_v1_replacement: '2011'
# the HbbTV emulator developers use HbbTV/1.1.1 (;;;;;) firetv-firefox-plugin 1.1.20
- regex: 'HbbTV/\d+\.\d+\.\d+.*(firetv)-firefox-plugin (\d+).(\d+).(\d+)'
os_replacement: 'FireHbbTV'
# generic HbbTV, hoping to catch manufacturer name (always after 2nd comma) and the first string that looks like a 2011-2019 year
- regex: 'HbbTV/\d+\.\d+\.\d+ \(.*; ?([a-zA-Z]+) ?;.*(201[1-9]).*\)'
##########
# @note: Windows Phone needs to come before Windows NT 6.1 *and* before Android to catch cases such as:
# Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 920)...
# Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 920; ANZ821)...
# Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 920; Orange)...
# Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 920; Vodafone)...
##########
- regex: '(Windows Phone) (?:OS[ /])?(\d+)\.(\d+)'
# Again a MS-special one: iPhone.*Outlook-iOS-Android/x.x is erroneously detected as Android
- regex: '(CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone)[ +]+(\d+)[_\.](\d+)(?:[_\.](\d+))?.*Outlook-iOS-Android'
os_replacement: 'iOS'
##########
# Android
# can actually detect rooted android os. do we care?
##########
- regex: '(Android)[ \-/](\d+)\.(\d+)(?:[.\-]([a-z0-9]+))?'
- regex: '(Android) Donut'
os_v1_replacement: '1'
os_v2_replacement: '2'
- regex: '(Android) Eclair'
os_v1_replacement: '2'
os_v2_replacement: '1'
- regex: '(Android) Froyo'
os_v1_replacement: '2'
os_v2_replacement: '2'
- regex: '(Android) Gingerbread'
os_v1_replacement: '2'
os_v2_replacement: '3'
- regex: '(Android) Honeycomb'
os_v1_replacement: '3'
# UCWEB
- regex: '^UCWEB.*; (Adr) (\d+)\.(\d+)(?:[.\-]([a-z0-9]+))?;'
os_replacement: 'Android'
- regex: '^UCWEB.*; (iPad|iPh|iPd) OS (\d+)_(\d+)(?:_(\d+))?;'
os_replacement: 'iOS'
- regex: '^UCWEB.*; (wds) (\d+)\.(\d+)(?:\.(\d+))?;'
os_replacement: 'Windows Phone'
# JUC
- regex: '^(JUC).*; ?U; ?(?:Android)?(\d+)\.(\d+)(?:[\.\-]([a-z0-9]+))?'
os_replacement: 'Android'
##########
# Kindle Android
##########
- regex: '(Silk-Accelerated=[a-z]{4,5})'
os_replacement: 'Android'
##########
# Windows
# http://en.wikipedia.org/wiki/Windows_NT#Releases
# possibility of false positive when different marketing names share same NT kernel
# e.g. windows server 2003 and windows xp
# lots of ua strings have Windows NT 4.1 !?!?!?!? !?!? !? !????!?! !!! ??? !?!?! ?
# (very) roughly ordered in terms of frequency of occurence of regex (win xp currently most frequent, etc)
##########
# ie mobile desktop mode
# spoofs nt 6.1. must come before windows 7
- regex: '(XBLWP7)'
os_replacement: 'Windows Phone'
# @note: This needs to come before Windows NT 6.1
- regex: '(Windows ?Mobile)'
os_replacement: 'Windows Mobile'
- regex: '(Windows (?:NT 5\.2|NT 5\.1))'
os_replacement: 'Windows XP'
- regex: '(Windows NT 6\.1)'
os_replacement: 'Windows 7'
- regex: '(Windows NT 6\.0)'
os_replacement: 'Windows Vista'
- regex: '(Win 9x 4\.90)'
os_replacement: 'Windows ME'
- regex: '(Windows 98|Windows XP|Windows ME|Windows 95|Windows CE|Windows 7|Windows NT 4\.0|Windows Vista|Windows 2000|Windows 3.1)'
- regex: '(Windows NT 6\.2; ARM;)'
os_replacement: 'Windows RT'
- regex: '(Windows NT 6\.2)'
os_replacement: 'Windows 8'
- regex: '(Windows NT 6\.3; ARM;)'
os_replacement: 'Windows RT 8.1'
- regex: '(Windows NT 6\.3)'
os_replacement: 'Windows 8.1'
- regex: '(Windows NT 6\.4)'
os_replacement: 'Windows 10'
- regex: '(Windows NT 10\.0)'
os_replacement: 'Windows 10'
- regex: '(Windows NT 5\.0)'
os_replacement: 'Windows 2000'
- regex: '(WinNT4.0)'
os_replacement: 'Windows NT 4.0'
- regex: '(Windows ?CE)'
os_replacement: 'Windows CE'
- regex: 'Win ?(95|98|3.1|NT|ME|2000)'
os_replacement: 'Windows $1'
- regex: 'Win16'
os_replacement: 'Windows 3.1'
- regex: 'Win32'
os_replacement: 'Windows 95'
##########
# Tizen OS from Samsung
# spoofs Android so pushing it above
##########
- regex: '(Tizen)[/ ](\d+)\.(\d+)'
##########
# Mac OS
# @ref: http://en.wikipedia.org/wiki/Mac_OS_X#Versions
# @ref: http://www.puredarwin.org/curious/versions
##########
- regex: '((?:Mac[ +]?|; )OS[ +]X)[\s+/](?:(\d+)[_.](\d+)(?:[_.](\d+))?|Mach-O)'
os_replacement: 'Mac OS X'
# Leopard
- regex: ' (Dar)(win)/(9).(\d+).*\((?:i386|x86_64|Power Macintosh)\)'
os_replacement: 'Mac OS X'
os_v1_replacement: '10'
os_v2_replacement: '5'
# Snow Leopard
- regex: ' (Dar)(win)/(10).(\d+).*\((?:i386|x86_64)\)'
os_replacement: 'Mac OS X'
os_v1_replacement: '10'
os_v2_replacement: '6'
# Lion
- regex: ' (Dar)(win)/(11).(\d+).*\((?:i386|x86_64)\)'
os_replacement: 'Mac OS X'
os_v1_replacement: '10'
os_v2_replacement: '7'
# Mountain Lion
- regex: ' (Dar)(win)/(12).(\d+).*\((?:i386|x86_64)\)'
os_replacement: 'Mac OS X'
os_v1_replacement: '10'
os_v2_replacement: '8'
# Mavericks
- regex: ' (Dar)(win)/(13).(\d+).*\((?:i386|x86_64)\)'
os_replacement: 'Mac OS X'
os_v1_replacement: '10'
os_v2_replacement: '9'
# Yosemite is Darwin/14.x but patch versions are inconsistent in the Darwin string;
# more accurately covered by CFNetwork regexes downstream
# IE on Mac doesn't specify version number
- regex: 'Mac_PowerPC'
os_replacement: 'Mac OS'
# builds before tiger don't seem to specify version?
# ios devices spoof (mac os x), so including intel/ppc prefixes
- regex: '(?:PPC|Intel) (Mac OS X)'
##########
# iOS
# http://en.wikipedia.org/wiki/IOS_version_history
##########
# keep this above generic iOS, since AppleTV UAs contain 'CPU OS'
- regex: '(Apple\s?TV)(?:/(\d+)\.(\d+))?'
os_replacement: 'ATV OS X'
- regex: '(CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS)[ +]+(\d+)[_\.](\d+)(?:[_\.](\d+))?'
os_replacement: 'iOS'
# remaining cases are mostly only opera uas, so catch opera as to not catch iphone spoofs
- regex: '(iPhone|iPad|iPod); Opera'
os_replacement: 'iOS'
# few more stragglers
- regex: '(iPhone|iPad|iPod).*Mac OS X.*Version/(\d+)\.(\d+)'
os_replacement: 'iOS'
# CFNetwork/Darwin - The specific CFNetwork or Darwin version determines
# whether the os maps to Mac OS, or iOS, or just Darwin.
# See: http://user-agents.me/cfnetwork-version-list
- regex: '(CFNetwork)/(5)48\.0\.3.* Darwin/11\.0\.0'
os_replacement: 'iOS'
- regex: '(CFNetwork)/(5)48\.(0)\.4.* Darwin/(1)1\.0\.0'
os_replacement: 'iOS'
- regex: '(CFNetwork)/(5)48\.(1)\.4'
os_replacement: 'iOS'
- regex: '(CFNetwork)/(4)85\.1(3)\.9'
os_replacement: 'iOS'
- regex: '(CFNetwork)/(6)09\.(1)\.4'
os_replacement: 'iOS'
- regex: '(CFNetwork)/(6)(0)9'
os_replacement: 'iOS'
- regex: '(CFNetwork)/6(7)2\.(1)\.13'
os_replacement: 'iOS'
- regex: '(CFNetwork)/6(7)2\.(1)\.(1)4'
os_replacement: 'iOS'
- regex: '(CF)(Network)/6(7)(2)\.1\.15'
os_replacement: 'iOS'
os_v1_replacement: '7'
os_v2_replacement: '1'
- regex: '(CFNetwork)/6(7)2\.(0)\.(?:2|8)'
os_replacement: 'iOS'
- regex: '(CFNetwork)/709\.1'
os_replacement: 'iOS'
os_v1_replacement: '8'
os_v2_replacement: '0.b5'
- regex: '(CF)(Network)/711\.(\d)'
os_replacement: 'iOS'
os_v1_replacement: '8'
- regex: '(CF)(Network)/(720)\.(\d)'
os_replacement: 'Mac OS X'
os_v1_replacement: '10'
os_v2_replacement: '10'
- regex: '(CF)(Network)/(760)\.(\d)'
os_replacement: 'Mac OS X'
os_v1_replacement: '10'
os_v2_replacement: '11'
- regex: '(CF)(Network)/758\.(\d)'
os_replacement: 'iOS'
os_v1_replacement: '9'
- regex: '(CF)(Network)/808\.(\d)'
os_replacement: 'iOS'
os_v1_replacement: '10'
##########
# CFNetwork macOS Apps (must be before CFNetwork iOS Apps
# @ref: https://en.wikipedia.org/wiki/Darwin_(operating_system)#Release_history
##########
- regex: 'CFNetwork/.* Darwin/16\.\d+.*\(x86_64\)'
os_replacement: 'Mac OS X'
os_v1_replacement: '10'
os_v2_replacement: '12'
- regex: 'CFNetwork/8.* Darwin/15\.\d+.*\(x86_64\)'
os_replacement: 'Mac OS X'
os_v1_replacement: '10'
os_v2_replacement: '11'
##########
# CFNetwork iOS Apps
# @ref: https://en.wikipedia.org/wiki/Darwin_(operating_system)#Release_history
##########
- regex: 'CFNetwork/.* Darwin/(9)\.\d+'
os_replacement: 'iOS'
os_v1_replacement: '1'
- regex: 'CFNetwork/.* Darwin/(10)\.\d+'
os_replacement: 'iOS'
os_v1_replacement: '4'
- regex: 'CFNetwork/.* Darwin/(11)\.\d+'
os_replacement: 'iOS'
os_v1_replacement: '5'
- regex: 'CFNetwork/.* Darwin/(13)\.\d+'
os_replacement: 'iOS'
os_v1_replacement: '6'
- regex: 'CFNetwork/6.* Darwin/(14)\.\d+'
os_replacement: 'iOS'
os_v1_replacement: '7'
- regex: 'CFNetwork/7.* Darwin/(14)\.\d+'
os_replacement: 'iOS'
os_v1_replacement: '8'
os_v2_replacement: '0'
- regex: 'CFNetwork/7.* Darwin/(15)\.\d+'
os_replacement: 'iOS'
os_v1_replacement: '9'
os_v2_replacement: '0'
- regex: 'CFNetwork/8.* Darwin/(16)\.\d+'
os_replacement: 'iOS'
os_v1_replacement: '10'
# iOS Apps
- regex: '\b(iOS[ /]|iOS; |iPhone(?:/| v|[ _]OS[/,]|; | OS : |\d,\d/|\d,\d; )|iPad/)(\d{1,2})[_\.](\d{1,2})(?:[_\.](\d+))?'
os_replacement: 'iOS'
- regex: '\((iOS);'
##########
# Apple TV
##########
- regex: '(tvOS)/(\d+).(\d+)'
os_replacement: 'tvOS'
##########
# Chrome OS
# if version 0.0.0, probably this stuff:
# http://code.google.com/p/chromium-os/issues/detail?id=11573
# http://code.google.com/p/chromium-os/issues/detail?id=13790
##########
- regex: '(CrOS) [a-z0-9_]+ (\d+)\.(\d+)(?:\.(\d+))?'
os_replacement: 'Chrome OS'
##########
# Linux distros
##########
- regex: '([Dd]ebian)'
os_replacement: 'Debian'
- regex: '(Linux Mint)(?:/(\d+))?'
- regex: '(Mandriva)(?: Linux)?/(?:[\d.-]+m[a-z]{2}(\d+).(\d))?'
##########
# Symbian + Symbian OS
# http://en.wikipedia.org/wiki/History_of_Symbian
##########
- regex: '(Symbian[Oo][Ss])[/ ](\d+)\.(\d+)'
os_replacement: 'Symbian OS'
- regex: '(Symbian/3).+NokiaBrowser/7\.3'
os_replacement: 'Symbian^3 Anna'
- regex: '(Symbian/3).+NokiaBrowser/7\.4'
os_replacement: 'Symbian^3 Belle'
- regex: '(Symbian/3)'
os_replacement: 'Symbian^3'
- regex: '\b(Series 60|SymbOS|S60Version|S60V\d|S60\b)'
os_replacement: 'Symbian OS'
- regex: '(MeeGo)'
- regex: 'Symbian [Oo][Ss]'
os_replacement: 'Symbian OS'
- regex: 'Series40;'
os_replacement: 'Nokia Series 40'
- regex: 'Series30Plus;'
os_replacement: 'Nokia Series 30 Plus'
##########
# BlackBerry devices
##########
- regex: '(BB10);.+Version/(\d+)\.(\d+)\.(\d+)'
os_replacement: 'BlackBerry OS'
- regex: '(Black[Bb]erry)[0-9a-z]+/(\d+)\.(\d+)\.(\d+)(?:\.(\d+))?'
os_replacement: 'BlackBerry OS'
- regex: '(Black[Bb]erry).+Version/(\d+)\.(\d+)\.(\d+)(?:\.(\d+))?'
os_replacement: 'BlackBerry OS'
- regex: '(RIM Tablet OS) (\d+)\.(\d+)\.(\d+)'