Server gate (bots & scrapers)

Phase 4 — HTTP 402 before content is served

Unlike the snippet (which only hides HTML in the browser), the gate API refuses to proxy origin content until x402 payment succeeds. Scrapers and AI agents get a machine-readable 402.

Gate URL

      
Test with curl
curl -i "GATE_URL_HERE"
Expect HTTP/1.1 402 and a JSON body with accepts[] payment options.

After paying (Phantom programmatically or via x402 client), retry the same URL with a payment-signature header to receive the full HTML from the test site origin.