Skip to content

0.2.2: spoof check skips declared crawlers (Googlebot evergreen UA) - #3

Merged
ralyodio merged 1 commit into
mainfrom
declared-bots
Sep 5, 2026
Merged

ralyodio merged 1 commit into
mainfrom
declared-bots

Conversation

@ralyodio

@ralyodio ralyodio commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

isSpoofedBrowser now returns false for any user agent that declares itself (compatible;, bot, crawler, spider, slurp). Googlebot and Bingbot claim Chrome/… and send no Sec-Fetch-Mode, so chargeSpoofedBrowsers would have charged them. Tests added for the evergreen Googlebot, Bingbot and Applebot strings.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WJaXiqE9BDoNfoJBhfXroC

Googlebot's evergreen user agent claims Chrome and sends no Sec-Fetch-Mode,
so 0.2.0's spoof check would have charged Google -- and Bing -- the moment a
site switched it on. Caught on rssamplifier before it shipped, by the site's
own exemption; now the library refuses to judge anything that says
"compatible;", "bot", "crawler", "spider" or "slurp". Those are charged by
the lists or not at all. The check is for the client that declares nothing.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WJaXiqE9BDoNfoJBhfXroC
@ralyodio
ralyodio merged commit e5c111b into main Sep 5, 2026
@ralyodio
ralyodio deleted the declared-bots branch September 5, 2026 17:10
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.

1 participant