WhichBrowser / Parser-PHP

Browser sniffing gone too far — A useragent parser library for PHP
http://whichbrowser.net
MIT License
1.79k stars 240 forks source link

Update `Netcraft Bots` with more regex (there are 4 bot combinations) #608

Closed summercms closed 3 years ago

summercms commented 3 years ago

See github issues: https://github.com/WhichBrowser/Parser-PHP/issues/540 and https://github.com/WhichBrowser/Parser-PHP/issues/100

Our test servers have found FOUR different combination of bots, these are:

Netcraft Web Server Survey Bot

Mozilla/4.0 (compatible; Netcraft Web Server Survey)

Netcraft Survey Agent Bot

Mozilla/5.0 (compatible; NetcraftSurveyAgent/1.0; +info@netcraft.com)

Netcraft Bot

NETCRAFT

Netcraft SSL Server Survey Bot

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Netcraft SSL Server Survey - contact info@netcraft.com)
Netcraft SSL Server Survey - contact info@netcraft.com
Netcraft SSL Server Survey

Link: https://www.netcraft.com/

coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.02%) to 99.97% when pulling b8add967415c52b2cba2d874a5c9f827fbb66cdf on ayumi-cloud:Netcraft-new into 880b9fa797401d14b28956442944c3daa70240ff on WhichBrowser:master.

NielsLeenheer commented 3 years ago

Fixed in 6075f7d629c5d08037e892a05cfe95369664ec78