Ca

Caddy plugin that charges AI crawlers real USDC to access your site

Hacker News

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 card

Actual performance

1points
2comments
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: compatible · Missing: supports, reddit linkedin, podcasting
84%84% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: agent, claude, user · Missing: mac, agents, macos
62%62% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: io · Missing: https docs, excited, just released
47%47% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Strong signals: users · Missing: plus, platform, intuitive
41%41% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: users · Missing: mobile apps, ios, personal
29%29% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
17%17% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
1%1% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Ko
Kotlin Compiler Plugin That Overrides Annotation Use-Site Targets36%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Kotlin Compiler Plugin That Overrides Annotation Use-Site Targets

Hacker News1
A
A plugin that fetches and displays HN comments when you visit a site43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A plugin that fetches and displays HN comments when you visit a site

Hacker News1
A
A site only LLM can access29%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A site only LLM can access

Hacker News1
Kn
Kneden – Transpile ES7 Async/await to ES6 Promise Chains (Babel Plugin)44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Kneden – Transpile ES7 Async/await to ES6 Promise Chains (Babel Plugin)

Hacker News76
Ro
RotationZoomer jQuery plugin55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

RotationZoomer jQuery plugin

Hacker News1
XB
XBMC Plugin for doctape24%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

XBMC Plugin for doctape

Hacker News1
jQ
jQuery-Mustache Plugin32%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

jQuery-Mustache Plugin

Hacker News2
Pi
Pixlator - jQuery Plugin32%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Pixlator - jQuery Plugin

Hacker News3
Se
Seeking collaborators for plugin je555%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Seeking collaborators for plugin je5

Hacker News2
Vi
Vim-eastwood, a Syntastic lint plugin for Clojure44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Vim-eastwood, a Syntastic lint plugin for Clojure

Hacker News1