OSI.CYBER

On-Site Intelligence LLC / build notes

Making AI crawlers pay for what they read

I built a gate that makes AI training crawlers pay before they read a page.

Companies like OpenAI and Anthropic send bots out to read the internet so they can train their models on it, and most site owners never agreed to that and never got paid for it, so I put a small program in front of my own site that checks who's knocking and if it's one of those training bots it gets told the page costs $0.002 and here's how to pay. People get the site free. Google gets the site free. The AI answer tools like ChatGPT search stay free too, because I still want to show up when somebody asks one of them about pentesting.

It's live. Try it.

Live demo: osi-x402-crawler-gate.trails710.workers.dev

Open it in your browser and you get my normal site. Send the same request as OpenAI's crawler and you get a bill.

$ curl -A "Mozilla/5.0 Chrome/131" ...   -> 200  (person, free)
$ curl -A "Googlebot/2.1" ...            -> 200  (search, free)
$ curl -A "GPTBot/1.3" ...               -> 402  (pay $0.002 first)
$ curl -A "ClaudeBot/1.0" ...            -> 402  (pay $0.002 first)

Those are real results from the deployed demo on November 20, 2026.

Why a security guy built this

I used to be a construction inspector. Soil inspections all the way to final. The job was finding what people hoped I'd miss, and this is the same work, because the thing nobody's watching on most websites right now is who's reading them and what it's costing.

Payments are the part that gets people hurt, so I built it to fail open. If the payment service is down, or the config is wrong, or anything in the payment path throws an error, the visitor just gets the page. A person never touches the payment code at all. And there's no wallet key on the server, only a public address to get paid at, so there's nothing on it worth stealing.

How it was tested

CheckResult
Unit and integration tests70 passing
End-to-end checks in Cloudflare's real runtime7 of 7
The real x402 payment client paying with a throwaway walletPasses
Forged payment headers, replayed paymentsRejected
Known vulnerabilities in dependencies0

Testing caught three real bugs before anything went live. The worst one would've let somebody use the gate as an open proxy by requesting a path like //evil.com, and that's fixed and has a test that fails if the fix ever gets pulled out.

The demo runs on Base Sepolia, which is test money. My real site isn't behind it yet.

Want one in front of your site

If you've got content AI companies are training on and you'd rather get paid or at least know who's reading, I can set this up for you and check what your site is actually letting through. Email [email protected] and tell me what your site runs on.