Repository navigation
Sell training crawlers a day pass on /crawl (x402-gateway 0.11) - #323
Merged
Merged
Conversation
…y 0.11) The crawl gateway runs first when COINPAY_X402_KEY and CRAWL_PAY_TO are set: GPTBot, ClaudeBot, headless and SEO scrapers get a 402 with PAYMENT-REQUIRED and the /crawl sales page (x402 USDC or the CoinPay Buy a day pass checkout) before the board spends a query on them. People, verified search crawlers, AI chat/search fetchers and aj_session holders pass through; /api/health stays open. A board without the two settings never sells. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
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.
config.crawlfromCOINPAY_X402_KEY+CRAWL_PAY_TO(both or nothing; self-hosted boards without them never sell).createAppmounts the@profullstack/x402-gateway0.11 Hono adapter first, beforewithViewer(no DB query for a refused crawler: agenticjobs.work saw ~53k crawler requests in the last day) and before the security headers (theirform-actionwould block the /crawl/checkout redirect to CoinPay).PAYMENT-REQUIRED, $1/day offer (USDC Base/Polygon/Ethereum), Buy a day pass checkout. Browsers, verified Googlebot/Bingbot, AI chat/search fetchers andaj_sessionholders untouched;/api/health,/llms.txt,/.well-known/open.@profullstack/x402-gateway^0.11.0 (pnpm also moved@profullstack/footerlatest0.2.1 -> 0.2.5).test/crawl-gateway.test.ts; full suite 890 pass, 1 skip.🤖 Generated with Claude Code