Caddy plugin that charges AI crawlers real USDC to access your site
Caddy plugin that charges AI crawlers real USDC to access your site
Hello, I built a Caddy middleware that implements the x402 protocol (by Coinbase) to charge AI crawlers real money for content access. When GPTBot, ClaudeBot, or any known AI crawler hits your site, it gets an HTTP 402 with payment requirements. If it pays (USDC on Base), it gets the content. If not, it gets nothing. Normal users are never affected. How it works: - Crawler detected by User-Agent → 402 response with price and wallet address - Crawler signs a USDC payment (EIP-3009) and retries with X-PAYMENT header - Plugin forwards to x402.org facilitator → on-chain settlement on Base - USDC goes directly from crawler's wallet to yours - Content served Configuration is a few lines in the Caddyfile: x402 { pay_to 0xYOUR_WALLET price 0.05 network base exempt /robots.txt } It's running on my site right now. No payments yet since most crawlers don't support x402, but they get blocked with a proper 402 instead of getting free content. When they do adopt it, the infrastructure is ready. Built with pure Go (no CGo), SQLite audit trail, Cloudflare-compatible headers.
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
Kotlin Compiler Plugin That Overrides Annotation Use-Site Targets
A plugin that fetches and displays HN comments when you visit a site
A site only LLM can access
Kneden – Transpile ES7 Async/await to ES6 Promise Chains (Babel Plugin)
RotationZoomer jQuery plugin
XBMC Plugin for doctape
jQuery-Mustache Plugin
Pixlator - jQuery Plugin
Seeking collaborators for plugin je5
Vim-eastwood, a Syntastic lint plugin for Clojure