Identify crawlers, spiders, and bots from any user-agent string. Three methods, zero dependencies, one Composer install.
Not another SaaS dashboard. A single PHP class that does one thing and does it well.
Pure regex matching against a local signature database. No API calls, no latency penalty, no third-party dependency.
Community-maintained list of known bots, crawlers, and spiders. Updated regularly with new signatures as they appear in the wild.
isCrawler(), getMatches(), and setUserAgent(). That's the entire surface area. Works standalone or with Laravel, Symfony, and Yii.
Drop in any user-agent string and CrawlerDetect will analyse it in real time. Try it — it's instant.
One Composer command. No config files, no service providers, no setup.
composer require jaybizzle/crawler-detect
use Jaybizzle\CrawlerDetect\CrawlerDetect; // Check the current visitor's user-agent $detect = new CrawlerDetect(); if ($detect->isCrawler()) { // It's a bot } // Or pass any user-agent string $detect->isCrawler('Googlebot/2.1'); // true // Get the name of the matched bot $detect->getMatches(); // "Googlebot"
Community ports bring CrawlerDetect to every major language and runtime.
CrawlerDetect wouldn't exist without its contributors. Thank you to every one of the 87 people who have helped shape this project.
Actively maintained with 169+ releases and counting.