Skip to content

Conversation

@naorpeled
Copy link
Collaborator

@naorpeled naorpeled commented Nov 22, 2025

Summary

  • add descriptors for common AI crawlers (OpenAI, Anthropic, etc.)
  • expose new bot names in constants maps for API consumers
  • cover each bot with acceptance UA fixtures

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for detecting AI crawler bots from major AI companies, enabling developers to identify and handle traffic from various AI web crawlers. The changes include adding regex patterns for bot detection, exposing new bot names through the constants API, and providing comprehensive test coverage.

  • Added detection for 10 new AI crawler bots: GPTBot, ChatGPT-User, OAI-SearchBot (OpenAI), ClaudeBot (Anthropic), Omgilibot, Diffbot, PerplexityBot, Perplexity-User, YouBot, and Meta-WebIndexer
  • Renamed FacebookExternalHit from the previous "MetaWebCrawler" name for clarity
  • Added acceptance test fixtures for all new bots with real User-Agent strings

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 14 comments.

File Description
test/acceptance/useragentstrings.yml Added test fixtures for 10 new AI crawler bots with expected parsing results; renamed MetaWebCrawler to FacebookExternalHit
src/parser-browsers.js Added browser detection logic and version extraction for each new AI bot; renamed MetaWebCrawler to FacebookExternalHit
src/parser-platforms.js Added platform detection patterns identifying bots and their vendor companies
src/constants.js Added bot names to BROWSER_ALIASES_MAP and BROWSER_MAP for API consumers; updated FacebookExternalHit naming

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

@naorpeled naorpeled changed the title Add support for AI crawl bots feat: add support for AI crawl bots Nov 22, 2025
@naorpeled naorpeled requested a review from Copilot November 22, 2025 16:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

@naorpeled naorpeled merged commit f7d2c06 into master Nov 22, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants