JayBizzle / Crawler-Detect

🕷 CrawlerDetect is a PHP class for detecting bots/crawlers/spiders via the user agent
https://crawlerdetect.io
MIT License
1.96k stars 255 forks source link

Wrong bot detection with semicolon without spaces on both sides #427

Closed vintikzzz closed 3 years ago

vintikzzz commented 3 years ago

Hi!

We have UA like this: Mozilla/5.0 (Linux; U; Android 5.0; en-US; SM-N900S;iPhone: Build/LRX21V) And after exclusions it translates to this: ( U en-US SM-N900SiPhone: /LRX21V) And after that it is catched by reqular expresion /Siphon/i as bot.

I think it will be good to fix such User-Agents before processing, just add additional space after semicolon if there is no.

JayBizzle commented 3 years ago

Fixed in #428 👍