@@ -390,14 +390,15 @@ function browser_detection( $which_test, $test_excludes='', $external_ua_string=
390
390
array ( 'adsbot-google ' , false , 'google-ads ' , 'bot ' ),
391
391
array ( 'applebot ' , false , 'applebot ' , 'bot ' ),
392
392
array ( 'baidu ' , false , 'baidu ' , 'bot ' ),
393
- array ( 'bingbot ' , false , 'bing ' , 'bot ' ),
394
- array ( 'bingpreview ' , false , 'bing ' , 'bot ' ),
393
+ array ( 'bing ' , false , 'bing ' , 'bot ' ),
394
+ array ( 'daum ' , false , 'daum ' , 'bot ' ),
395
395
array ( 'ips-agent ' , false , 'ips-agent ' , 'bot ' ),
396
396
array ( 'msnbot ' , false , 'msn ' , 'bot ' ),
397
397
array ( 'exabot ' , false , 'exabot ' , 'bot ' ),
398
398
array ( 'googlebot ' , false , 'google ' , 'bot ' ),
399
399
array ( 'google web preview ' , false , 'googlewp ' , 'bot ' ),
400
400
array ( 'surdotlybot ' , false , 'surdotlybot ' , 'bot ' ),
401
+ array ( 'surveybot ' , false , 'surveybot ' , 'bot ' ),
401
402
array ( 'yandex ' , false , 'yandex ' , 'bot ' ),
402
403
403
404
/** then start on ideally 'real' browsers **/
@@ -440,9 +441,14 @@ function browser_detection( $which_test, $test_excludes='', $external_ua_string=
440
441
441
442
1: misc catchalls - use first to avoid extra looping. See comment footer for examples.
442
443
**/
444
+ array ( 'aggregat ' , false , 'misc-bot ' , 'bot ' ),
443
445
array ( ' bot ' , false , 'misc-bot ' , 'bot ' ),
446
+ array ( 'bot ' , false , 'misc-bot ' , 'bot ' ),
444
447
array ( '-bot ' , false , 'misc-bot ' , 'bot ' ),
445
448
array ( '_bot ' , false , 'misc-bot ' , 'bot ' ),
449
+ array ( 'bot/ ' , false , 'misc-bot ' , 'bot ' ),
450
+ array ( 'bot: ' , false , 'misc-bot ' , 'bot ' ),
451
+ array ( 'check ' , false , 'misc-bot ' , 'bot ' ),
446
452
array ( 'crawl ' , false , 'misc-bot ' , 'bot ' ),
447
453
array ( 'download ' , false , 'misc-dow ' , 'dow ' ),
448
454
array ( 'fetch ' , false , 'misc-dow ' , 'dow ' ),
@@ -511,6 +517,7 @@ function browser_detection( $which_test, $test_excludes='', $external_ua_string=
511
517
array ( 'grammarly ' , false , 'grammarly ' , 'bot ' ),
512
518
array ( 'guardcrwlr ' , false , 'guardcrwlr ' , 'bot ' ),
513
519
array ( 'headmasterseo ' , false , 'headmasterseo ' , 'bot ' ),
520
+ array ( 'heritrix ' , false , 'heritrix ' , 'bot ' ),
514
521
array ( 'hosttracker ' , false , 'hosttracker ' , 'bot ' ),/** uptime checker, host-tracker.com **/
515
522
array ( 'hubspot ' , false , 'hubspot ' , 'bot ' ),/** HubSpot Links Crawler **/
516
523
array ( 'hybridbot ' , false , 'hybridbot ' , 'bot ' ),/** russian ad bot: hybrid.ru/about **/
@@ -529,6 +536,7 @@ function browser_detection( $which_test, $test_excludes='', $external_ua_string=
529
536
array ( 'objectssearch ' , false , 'objectsearch ' , 'bot ' ),/** open source search engine **/
530
537
array ( 'omgilibot ' , false , 'omgilibot ' , 'bot ' ),
531
538
array ( 'openbot ' , false , 'openbot ' , 'bot ' ),/** openbot, from taiwan **/
539
+ array ( 'orangebot ' , false , 'orangebot ' , 'bot ' ),
532
540
array ( 'paperlibot ' , false , 'paperlibot ' , 'bot ' ),/** http://support.paper.li **/
533
541
array ( 'pingdom ' , false , 'pingdom ' , 'bot ' ),
534
542
array ( 'pinterest ' , false , 'pinterest ' , 'bot ' ),/** www.pinterest.com **/
@@ -542,6 +550,7 @@ function browser_detection( $which_test, $test_excludes='', $external_ua_string=
542
550
array ( 'safednsbot ' , false , 'safednsbot ' , 'bot ' ),/** safednsbot **/
543
551
array ( 'salesintelligent ' , false , 'salesintelligent ' , 'bot ' ),
544
552
array ( 'scooter ' , false , 'scooter ' , 'bot ' ),/** altavista **/
553
+ array ( 'scoutjet ' , false , 'scoutjet ' , 'bot ' ),
545
554
array ( 'scrapy ' , false , 'scrapy ' , 'bot ' ),
546
555
array ( 'searchie ' , false , 'searchiet ' , 'bot ' ),/** ua: Searchie/1.0 **/
547
556
array ( 'semrushbot ' , false , 'semrushbot ' , 'bot ' ),/** semrush.com/bot.html **/
@@ -554,7 +563,6 @@ function browser_detection( $which_test, $test_excludes='', $external_ua_string=
554
563
array ( 'socialrankiobot ' , false , 'socialrankiobot ' , 'bot ' ),/** http://socialrank.io/about **/
555
564
array ( 'sohu-search ' , false , 'sohu ' , 'bot ' ),/** chinese media company, search component **/
556
565
array ( 'spbot ' , false , 'spbot ' , 'bot ' ),
557
- array ( 'surveybot ' , false , 'surveybot ' , 'bot ' ),
558
566
array ( 'telegrambot ' , false , 'telegrambot ' , 'bot ' ),/** TelegramBot (like TwitterBot) **/
559
567
array ( 'twitterbot ' , false , 'twitterbot ' , 'bot ' ),/** Twitterbot/1.0 **/
560
568
array ( 'vbseo ' , false , 'vbseo ' , 'bot ' ),
@@ -1623,7 +1631,7 @@ function get_mobile_data( $pv_browser_user_agent )
1623
1631
using regex (?!mobile) did not work in my tests, not sure why.
1624
1632
**/
1625
1633
$ pattern = '/android[[:space:]]*[4-9]/ ' ;
1626
- if ( preg_match ( $ pattern , $ pv_browser_user_agent ) && !stristr ($ pv_browser_user_agent , 'mobile ' ) ) {
1634
+ if ( preg_match ( $ pattern , $ pv_browser_user_agent ) && !strstr ($ pv_browser_user_agent , 'mobile ' ) ) {
1627
1635
$ mobile_tablet = 'android tablet ' ;
1628
1636
}
1629
1637
else {
@@ -1791,6 +1799,9 @@ Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:14.0; ips-agent) Gecko/20100101 Firefox
1791
1799
SurdotlyBot:
1792
1800
Mozilla/5.0 (compatible; SurdotlyBot/1.0; +http://sur.ly/bot.html; Linux; Android 4; iPhone; CPU iPhone OS 6_0_1 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A523 Safari/8536.25
1793
1801
--------------------------------------------------------
1802
+ SurveyBot:
1803
+ Mozilla/5.0 (Windows; U; Windows NT 5.1; en; rv:1.9.0.13) Gecko/2009073022 Firefox/3.5.2 (.NET CLR 3.5.30729) SurveyBot/2.3 (DomainTools)
1804
+ --------------------------------------------------------
1794
1805
Yandex bots:
1795
1806
https://yandex.com/support/webmaster/robot-workings/check-yandex-robots.xml
1796
1807
------------
0 commit comments