Turnstile API Protection

Interactive demo showing frontend interception + backend validation

View turnstile-guard.js source →

🌐

Frontend Interception

ON
Intercept requests & attach token

When ON: turnstile-guard.js intercepts fetch/XHR, queues until validated, attaches X-CF-Turnstile-Token header.

Backend Validation

ON
Worker validates token via siteverify

When ON: Worker requires valid Turnstile token. When OFF: sends X-Bypass-Turnstile: true to skip validation.

Full Protection

Frontend intercepts requests, backend validates tokens. Scrapers blocked.

API: https://demo-api.oli.xyz
Initializing...

Results

Debug Log