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

Add more regex for `Mail.ru` to bots list and switch to using oop php #591

Closed summercms closed 2 years ago

summercms commented 3 years ago

See github issue: https://github.com/WhichBrowser/Parser-PHP/issues/568

List of regex to be added:

Mozilla/5.0 (compatible; Linux x86_64; Mail.RU_Bot/2.0; +https://help.mail.ru/webmaster/indexing/robots)
Mozilla/5.0 (compatible; Linux x86_64; Mail.RU_Bot/Fast/2.0; +https://help.mail.ru/webmaster/indexing/robots)
Mozilla/5.0 (compatible; Linux x86_64; Mail.RU_Bot/Img/2.0; +https://help.mail.ru/webmaster/indexing/robots)
Mozilla/5.0 (compatible; Linux x86_64; Mail.RU_Bot/Video/2.0; +https://help.mail.ru/webmaster/indexing/robots)
Mozilla/5.0 (compatible; Linux x86_64; Mail.RU_Bot/Robots/2.0; +https://help.mail.ru/webmaster/indexing/robots)
Mozilla/5.0 (compatible; Linux x86_64; Mail.RU_Bot/Mail/2.0; +https://help.mail.ru/webmaster/indexing/robots)

Reverse DNS

fetcher-img2-1.p.mail.ru
fetcher13-8.go.mail.ru
fetcher-img3-7.p.mail.ru
spider9.mail.ru
aurora8.mail.ru
nipple3.mail.ru

Link: https://mail.ru/

Link: https://help.mail.ru/webmaster/indexing/robots/robot_log

coveralls commented 3 years ago

Coverage Status

Coverage decreased (-0.03%) to 99.925% when pulling 61975f4ec83b37a8679bbd036427e3d272394492 on ayumi-cloud:mail-ru-oop into 880b9fa797401d14b28956442944c3daa70240ff on WhichBrowser:master.

summercms commented 3 years ago

cleaned version: https://github.com/summercms/sc-parser-module/pull/167/files