ChatGPT Won't Let You Type Until Cloudflare Reads Your React State
TL;DR Highlight
Decrypting 377 ChatGPT Turnstile programs showed 55 checks reaching into React app state
Who Should Read
Backend or frontend developers adding bot and free-API abuse defenses to an AI chat service
Core Mechanics
- Turnstile reads React state too
- Every message triggers a Cloudflare Turnstile program that runs silently in the browser.
- The author decrypted 377 of them from network traffic, and each collected 55 properties.
- The checks span three layers: browser, Cloudflare network, and the ChatGPT React app.
- 55 properties across 3 layers
- The browser layer covers GPU (WebGL), screen, hardware, fonts, DOM, and storage.
- The network layer reads Cloudflare edge headers such as cfIpCity, cfIpLatitude, cfIpLongitude, cfConnectingIp, and userRegion.
- The app layer reads __reactRouterContext, loaderData, and clientBootstrap.
- App-layer checks filter fake browsers
- The author says these properties exist only after the ChatGPT React app has fully rendered and hydrated.
- A bot that spoofs fingerprints without rendering the real SPA fails.
- The key ships inside the payload
- turnstile.dx (28,000 chars of base64) decrypts by XOR with the p token from the prepare request.
- The inner 19KB blob's key was a float literal in the bytecode (e.g. 97.35).
- It decrypted valid JSON in all 50 requests tested.
- The token is the XORed fingerprint
- The fingerprint is JSON.stringify'd, XORed, and sent as the OpenAI-Sentinel-Turnstile-Token header.
- The author says the obfuscation blocks static analysis and casual inspection but not analysis itself.
- Sentinel runs other checks too
- Signal Orchestrator (271 instructions) listens to keydown, pointermove, click, scroll, paste, and wheel, tracking 36 window.__oai_so_* properties.
- Proof of Work uses a 25-field fingerprint plus SHA-256 hashcash, with 72% solved under 5ms.
- The author says PoW is not the real defense.
Community Reactions
- Comment from an OpenAI Integrity team member
- The commenter said the checks protect first-party products from bots, scraping, and fraud while keeping free, logged-out access available.
- They said the team monitors page load time, time to first token, and payload size, and that impact is negligible for most users.
- Users reported blocked typing and slowness
- Several commenters said they could not type right away in the input box.
- A paying Teams user said their browser lagged while typing.
- Another said that behind a zscaler corporate firewall it took over a minute before they could reply.
- Pushback that this is not new
- One commenter assumed sophisticated bot detectors already do this.
- Another pointed out that headless browsers do execute JavaScript, so that claim in the article is meaningless.
- Bot cost math and technical questions
- One comment estimated a Windows 11 VM with Chrome bypass at about 1 cent per thousand page loads on AWS.
- Another asked how OpenAI wired this up, since Turnstile isn't React-specific and this token isn't a CF cookie.
How to Apply
- Audit abuse paths on your free endpoints
- If you offer logged-out access, check your logs today for requests that hit the API directly without the browser UI.
- Flag any such direct calls for separate token verification.
- Run client checks at send time, not on input
- Commenters described lag and blocked typing when checks gate the input box, so design timing accordingly.
- Move checks to just before send or to server-side receipt, and keep the input open.
- Don't trust a client-side token alone
- If the key ships with the payload, the token can be analyzed, so don't base blocking on it alone.
- Add server-side rate limits and per-account limits alongside it.
Try It
# Paste into Claude/ChatGPT as is (simplified version of the article's idea: review your bot defense design)
You are a web security reviewer. Review my bot and free-API abuse defenses based on the info below.
Service description: {{service description}}
Logged-out free access: {{yes/no}}
Current defenses: {{rate limits, CAPTCHA, etc.}}
Split the review into three layers and tabulate gaps and fixes.
1) Browser layer: which client signals do we check
2) Network layer: do we check IP, region, and proxy signals
3) App state layer: do we verify values that only exist after the real app has rendered
Assume client-only checks can be bypassed, and propose 3 server-side complements.Terminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
OpenAI still has a WebRTC Problem
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls