# JayBizzle/Crawler-Detect

🕷 CrawlerDetect is a PHP class for detecting bots/crawlers/spiders via the user agent

Repository: https://github.com/JayBizzle/Crawler-Detect
Canonical: https://ross.abutalabs.com/products/crawler-detect
Homepage: https://crawlerdetect.io
Language: PHP
License: MIT
License Family: permissive
Topics: php, user-agent, crawler, spider, bots, detect, hacktoberfest
Last push: 2026-07-30T22:20:38+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 92, longevity 100
- inputs: {"age_days": 4181, "days_push": 34, "days_rel": 54, "gap_med": 28, "n_releases_24m": 16}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2400, forks 280 (observed 2026-08-28T04:06:43.791219+00:00)

## What it is
CrawlerDetect is a zero-dependency PHP library that detects bots, crawlers, and spiders by matching User-Agent and HTTP_FROM headers against thousands of community-maintained signatures. It exposes a tiny three-method API (isCrawler, getMatches, setUserAgent) and works standalone or with frameworks like Laravel, Symfony, and Yii.

## Use cases
- detect bots visiting my php site
- check if a user agent is a crawler
- block spiders and scrapers in laravel
- identify googlebot from request headers
- filter bot traffic from analytics
- detect crawlers from psr-7 request headers

## When to choose
- you need lightweight, offline bot detection in PHP with no external API calls
- you want a simple drop-in class with zero dependencies
- you need to inspect headers from PSR-7, Symfony, Swoole, or Lambda requests

## When to avoid
- you need behavioral bot detection beyond user-agent matching
- you require real-time IP reputation or JavaScript fingerprinting
- you are not working in PHP or a language with a community port

## Facets
- artifact type: library
- maturity: active
- function: security, nlp
- domain: web-development, security, developer-tools
- platform: php
- tags: bot-detection, user-agent, crawler-detection, zero-dependency

## Member repositories
- JayBizzle/Crawler-Detect (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:43.791219+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:34:15.802058+00:00, confidence not recorded.
  - readme: https://github.com/JayBizzle/Crawler-Detect (fetched 2026-08-28T04:06:43.791219+00:00, sha 9da942c269c8)
  - homepage: https://crawlerdetect.io (fetched 2026-08-29T10:14:40.751941+00:00, sha 2eb86ceaa09c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
