Repository navigation
feat(tracker): /api/tracker/v1/bot-hits for gateway-refused requests - #452
Merged
Merged
Conversation
A swarm the gateway answers 402 never runs the beacon, so CrawlProof never saw it, and the slice that slipped through before the refusal read as human (nichedb.dev 2026-11-14: 15,069 of 15,263 'human' visitors fired one beacon). The gateway now batches the requests it refuses as mass scraping and posts them here as bot:swarm. Full-access tokens only, owner's projects only, bot: buckets only, so this can move numbers to the bot side and never invent people. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ThreatCrush Security Scan50 finding(s) HIGH/CRITICAL: 2 | MEDIUM: 30 | LOW: 18
Snippets are redacted; ThreatCrush never prints matched credential material. |
Like the beacon: no token needed, but only bot: buckets, only tracker-enabled projects, and at most 20,000 hits a call, so a forged post can only do what a forged GPTBot beacon already does. A bearer token still scopes to the owner. Lets every fleet gateway report without a write token in ~50 site envs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Server-side bot counts from a site's x402 gateway:
POST /api/tracker/v1/bot-hits {site, hits:[{bucket:'bot:swarm', path, count}]}. Full-access crp_ token, owner's projects,bot:buckets only. Bumps tracker_daily_stats (bucket) and tracker_event_daily_stats (kind=bot). Paired with x402-gatewaymassScrape.report.🤖 Generated with Claude Code