I built a paywall that can't be bypassed with DevTools (Cloudflare Workers + KV + USDT-TRC20)
A client-side paywall is a suggestion, not a paywall. If the check runs in the browser, anyone can open DevTools, flip a boolean, and unlock your "Pro" features. I wanted to see what a real crypto paywall looks like without a billing account, a backend server, or KYC β so I built one with Cloudflare Workers, KV, and Tron's USDT-TRC20.
Live service: https://proofgate.proofgate.workers.dev
Source: https://github.com/alexcompute123nab-debug/proofgate
The rule I started with
Every access decision must be made on a machine I control, using data an attacker cannot forge locally.
That means three things have to live in the Worker:
Payment verification β reading the chain, not trusting the client.
Entitlement storage β who has a key, stored in KV.
Replay protection β the same transaction cannot unlock two accounts.
The browser only ever sends a transaction hash and reads a JSON verdict.
Matching an anonymousβ¦