<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: NSLSolver Team</title>
    <description>The latest articles on DEV Community by NSLSolver Team (@nslsolver).</description>
    <link>https://dev.to/nslsolver</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4276367%2F21d8dc37-52d3-4fcb-bd10-588b81885f0e.png</url>
      <title>DEV Community: NSLSolver Team</title>
      <link>https://dev.to/nslsolver</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nslsolver"/>
    <language>en</language>
    <item>
      <title>Cheapest CAPTCHA Solver API in 2026 — Pricing Comparison</title>
      <dc:creator>NSLSolver Team</dc:creator>
      <pubDate>Fri, 04 Dec 2026 20:53:39 +0000</pubDate>
      <link>https://dev.to/nslsolver/cheapest-captcha-solver-api-in-2026-pricing-comparison-ej7</link>
      <guid>https://dev.to/nslsolver/cheapest-captcha-solver-api-in-2026-pricing-comparison-ej7</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://nslsolver.com/blog/cheapest-captcha-solver-2026" rel="noopener noreferrer"&gt;nslsolver.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;We compared list prices across 6 CAPTCHA solving APIs to find which one gives you the most solves per dollar, per CAPTCHA type: Cloudflare Turnstile, Cloudflare Challenge, reCAPTCHA v2 and reCAPTCHA v3. Prices were re-checked on November 30, 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  Price per 1,000 solves
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Service&lt;/th&gt;
&lt;th&gt;Turnstile&lt;/th&gt;
&lt;th&gt;CF Challenge&lt;/th&gt;
&lt;th&gt;reCAPTCHA v2&lt;/th&gt;
&lt;th&gt;reCAPTCHA v3&lt;/th&gt;
&lt;th&gt;Payment&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;NSLSolver (Cheapest)&lt;/td&gt;
&lt;td&gt;$0.80&lt;/td&gt;
&lt;td&gt;$1.00&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;&lt;a href="https://nslsolver.com/solutions/recaptcha-v3" rel="noopener noreferrer"&gt;$1.00&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Crypto only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CapSolver&lt;/td&gt;
&lt;td&gt;$1.20&lt;/td&gt;
&lt;td&gt;$1.20&lt;/td&gt;
&lt;td&gt;$0.80&lt;/td&gt;
&lt;td&gt;$1.00&lt;/td&gt;
&lt;td&gt;Card + Crypto&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2Captcha&lt;/td&gt;
&lt;td&gt;€1.40&lt;/td&gt;
&lt;td&gt;€1.40&lt;/td&gt;
&lt;td&gt;€0.99–2.80&lt;/td&gt;
&lt;td&gt;€1.40–2.80&lt;/td&gt;
&lt;td&gt;Card + Crypto + PayPal&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Anti-Captcha&lt;/td&gt;
&lt;td&gt;$2.00&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;$0.95–2.00&lt;/td&gt;
&lt;td&gt;$1.00–2.00&lt;/td&gt;
&lt;td&gt;Card + PayPal&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DeathByCaptcha&lt;/td&gt;
&lt;td&gt;$2.89&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;td&gt;$2.89&lt;/td&gt;
&lt;td&gt;$2.89&lt;/td&gt;
&lt;td&gt;Card + Crypto + PayPal&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CapMonster&lt;/td&gt;
&lt;td&gt;$1.30&lt;/td&gt;
&lt;td&gt;$1.30&lt;/td&gt;
&lt;td&gt;$0.60&lt;/td&gt;
&lt;td&gt;$0.90&lt;/td&gt;
&lt;td&gt;Card + Crypto&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;List prices checked on each provider's public pricing page on November 30, 2026 (2Captcha shows euro prices to EU visitors; ranges depend on solve speed or score). "—" means the type is not listed. Subject to change.&lt;/p&gt;

&lt;p&gt;Per type, as of November 30, 2026: CapSolver charges $0.80 per 1,000 reCAPTCHA v2 tokens, $1.00 for v2 Enterprise and v3, $3.00 for v3 Enterprise and $1.20 for Turnstile and Cloudflare Challenge. CapMonster Cloud charges $0.60 for reCAPTCHA v2, $0.90 for v3 and $1.30 for Turnstile. On reCAPTCHA v3, CapMonster is the cheapest list price ($0.90 vs NSLSolver's $1.00); on Turnstile and Cloudflare Challenge, NSLSolver is ($0.80 and $1.00). NSLSolver does not solve reCAPTCHA v2.&lt;/p&gt;

&lt;p&gt;Methodology: per-1,000 list prices were collected from each provider's public pricing page on the date shown above and are subject to change — always confirm current rates before budgeting. NSLSolver's own rates are listed on our &lt;a href="https://nslsolver.com/pricing" rel="noopener noreferrer"&gt;pricing page&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Speed comparison
&lt;/h2&gt;

&lt;p&gt;Price isn't everything — speed matters too. Here's how the top three compare on Cloudflare Turnstile:&lt;/p&gt;

&lt;p&gt;NSLSolver's speed advantage comes from solving tokens server-side without a full browser environment, which eliminates the overhead that slows down competitors.&lt;/p&gt;

&lt;p&gt;Solve-time figures are NSLSolver's own published numbers; competitor figures are typical observed ranges. See our &lt;a href="https://nslsolver.com/benchmarks" rel="noopener noreferrer"&gt;benchmarks&lt;/a&gt; · &lt;a href="https://nslsolver.com/status" rel="noopener noreferrer"&gt;live status&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Free tiers &amp;amp; trial credits
&lt;/h2&gt;

&lt;p&gt;Most services offer some free credits to get started. NSLSolver gives 100 free solves after email verification (Gmail or Proton Mail address) — no credit card required. CapSolver and 2Captcha offer similar trial credits. Anti-Captcha requires a minimum deposit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Our verdict
&lt;/h2&gt;

&lt;p&gt;If you primarily solve Cloudflare Turnstile or Challenge, NSLSolver leads on both price and speed in our comparison. At $0.80/1K for Turnstile and ~250ms average, it is the cheapest and fastest of the six on Cloudflare.&lt;/p&gt;

&lt;p&gt;NSLSolver also solves reCAPTCHA v3 / Enterprise at $1.00/1K. If you need reCAPTCHA v2 (image/checkbox), hCaptcha or a wider range of CAPTCHA types, CapSolver or 2Captcha are solid alternatives — but you'll pay roughly 1.5–2x more for Turnstile solves.&lt;/p&gt;

&lt;p&gt;Bottom line: for Cloudflare-focused workloads, NSLSolver offers the best value in 2026.&lt;/p&gt;

&lt;p&gt;Want the raw numbers behind these claims? Check our &lt;a href="https://nslsolver.com/benchmarks" rel="noopener noreferrer"&gt;published benchmarks&lt;/a&gt; and &lt;a href="https://nslsolver.com/status" rel="noopener noreferrer"&gt;live status page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Prefer a head-to-head? Read our deep dives: &lt;a href="https://nslsolver.com/blog/nslsolver-vs-capsolver" rel="noopener noreferrer"&gt;NSLSolver vs CapSolver&lt;/a&gt;, &lt;a href="https://nslsolver.com/blog/nslsolver-vs-capmonster" rel="noopener noreferrer"&gt;NSLSolver vs CapMonster&lt;/a&gt;, &lt;a href="https://nslsolver.com/blog/nslsolver-vs-anti-captcha" rel="noopener noreferrer"&gt;NSLSolver vs Anti-Captcha&lt;/a&gt;, &lt;a href="https://nslsolver.com/alternatives" rel="noopener noreferrer"&gt;or browse all alternatives&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What is the cheapest CAPTCHA solver in 2026?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For Cloudflare Turnstile, NSLSolver is the cheapest at $0.80 per 1,000 solves — and you only pay for successful solves. CapSolver and 2Captcha typically charge more per 1,000 for the same challenge.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I only pay for successful solves?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. With NSLSolver, failed solves are free, so your effective cost per solve matches the headline price. Providers that bill per attempt cost more in practice when success rates dip.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How much does it cost to solve 10,000 Turnstile CAPTCHAs?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;At $0.80 per 1,000, 10,000 Turnstile solves cost $8.00 on NSLSolver. The same volume runs roughly $10–$30 on competitors, depending on their per-1,000 rate.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Are there volume discounts?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. NSLSolver adds bonus credit on larger deposits — +3% from $25, +5% from $50, +8% from $100 and +12% from $250 — lowering your effective per-solve cost further.&lt;/p&gt;




&lt;p&gt;If you'd rather not maintain a solver yourself, &lt;a href="https://nslsolver.com/solutions/cloudflare-turnstile" rel="noopener noreferrer"&gt;NSLSolver&lt;/a&gt; returns tokens from a single REST call.&lt;/p&gt;

</description>
      <category>webscraping</category>
      <category>api</category>
      <category>automation</category>
      <category>cloudflare</category>
    </item>
    <item>
      <title>FlareSolverr Not Working in 2026: Why It Fails and What to Use Instead</title>
      <dc:creator>NSLSolver Team</dc:creator>
      <pubDate>Fri, 04 Dec 2026 20:50:00 +0000</pubDate>
      <link>https://dev.to/nslsolver/flaresolverr-not-working-in-2026-why-it-fails-and-what-to-use-instead-525e</link>
      <guid>https://dev.to/nslsolver/flaresolverr-not-working-in-2026-why-it-fails-and-what-to-use-instead-525e</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://nslsolver.com/blog/flaresolverr-not-working-2026" rel="noopener noreferrer"&gt;nslsolver.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;FlareSolverr was, for years, the default answer to "how do I get past Cloudflare from a scraper?" You ran it as a small proxy server, POSTed a URL to it, and it launched a real browser, sat through the challenge, and handed you back cookies and HTML. It was the workhorse behind countless Jackett, Prowlarr, and Sonarr setups, and behind a lot of home-grown scrapers too.&lt;/p&gt;

&lt;p&gt;In 2026 it increasingly does not work. The symptoms are familiar: the request times out, you get back the challenge page instead of the content, the logs say "Challenge not detected", or a Turnstile widget on the page is simply never solved. This post explains honestly why FlareSolverr fails on modern Cloudflare, where it still works fine, the real alternatives, and how to migrate to a managed API when you want a single HTTP call instead of a browser to babysit.&lt;/p&gt;

&lt;h2&gt;
  
  
  What FlareSolverr actually does
&lt;/h2&gt;

&lt;p&gt;FlareSolverr is a self-hosted proxy server, usually run in Docker. You send it an HTTP request like {"cmd": "request.get", "url": "&lt;a href="https://target.com%22" rel="noopener noreferrer"&gt;https://target.com"&lt;/a&gt;}, and under the hood it drives a real Chromium browser (via undetected-chromedriver / Selenium) to load the page. When Cloudflare serves the legacy "I'm Under Attack Mode" (IUAM) interstitial — the "Checking your browser... Just a moment" page — FlareSolverr waits for the browser to run the challenge JavaScript, collects the resulting cf_clearance cookie, and returns the cookies plus the page HTML and User-Agent to you.&lt;/p&gt;

&lt;p&gt;The key design assumption is that loading the page in a real browser and waiting is enough. For the old IUAM challenge, it was: the browser executed the JS-math puzzle, the cookie dropped, and you were through. That assumption is exactly what broke.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why FlareSolverr stopped working on modern Cloudflare
&lt;/h2&gt;

&lt;p&gt;Cloudflare's protection moved on, and FlareSolverr's browser-and-wait approach no longer covers what the wall throws at it. There are four overlapping reasons it fails today:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Turnstile — Cloudflare's CAPTCHA replacement runs a non-interactive proof-of-work plus browser-API probes and only then issues a cf-turnstile-response token. FlareSolverr loads the page but has no logic to produce that token, so a Turnstile-gated form or page is never cleared — it just sits there.&lt;/li&gt;
&lt;li&gt;Managed Challenge — modern challenges dynamically pick proof-of-work / proof-of-space, behavioral signals, and web-API probing based on the visitor. The plain Chromium that FlareSolverr drives is detectable, so the challenge frequently never clears and you get the interstitial back instead of your content.&lt;/li&gt;
&lt;li&gt;Stalled maintenance — keeping a browser-automation tool invisible to Cloudflare is a constant cat-and-mouse job, and FlareSolverr's development has been slow and intermittent. Each Cloudflare update that the project does not chase tends to break another batch of targets.&lt;/li&gt;
&lt;li&gt;Heavy resource use and fragility — every request spins up a headful/headless Chromium. That is hundreds of megabytes of RAM per worker, slow cold starts, frequent timeouts under load, and a process that crashes or hangs far more than a plain HTTP client would.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Typical FlareSolverr error symptoms in 2026
&lt;/h2&gt;

&lt;p&gt;If you are debugging, the failure usually shows up as one of these. Recognizing which one tells you whether it is fixable or fundamental:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It returns the challenge page — the response "solution" contains the "Just a moment..." / "Checking your browser" HTML instead of the real content. Cloudflare served a challenge the embedded browser could not clear.&lt;/li&gt;
&lt;li&gt;Timeouts — the request hangs and eventually errors out (often around the maxTimeout you set). Under modern managed challenges the browser waits for a cookie that never drops.&lt;/li&gt;
&lt;li&gt;"Challenge not detected" — FlareSolverr loaded the page, did not recognize a challenge it knows how to handle, and returned early. Common when the wall is Turnstile or a v3-style challenge it was not built for.&lt;/li&gt;
&lt;li&gt;Turnstile unsolved — the page loads but the Turnstile widget stays unverified and any form submission fails, because there is no token-solving step in the pipeline.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  When FlareSolverr still works fine
&lt;/h2&gt;

&lt;p&gt;To be fair: FlareSolverr is not useless, and you should not rip it out reflexively. If your target still serves the old IUAM JS-math interstitial — and some smaller or older sites do — a real browser loading the page and waiting still clears it, and FlareSolverr does exactly that with zero per-request cost.&lt;/p&gt;

&lt;p&gt;So the honest test is: open the target in a browser. If you see a brief "Just a moment..." page that clears on its own with no checkbox and no visible widget, FlareSolverr (or a maintained fork) will probably handle it. If you see a Turnstile checkbox, an interactive widget, or a managed-challenge page that loops or stalls, no amount of FlareSolverr tuning will reliably get you through — that is a different class of challenge.&lt;/p&gt;

&lt;h2&gt;
  
  
  FlareSolverr alternatives in 2026, compared honestly
&lt;/h2&gt;

&lt;p&gt;No single tool wins outright — it depends on which Cloudflare layer is blocking you. Here is a fair breakdown of the realistic options; our &lt;a href="https://nslsolver.com/blog/flaresolverr-alternatives" rel="noopener noreferrer"&gt;FlareSolverr alternatives&lt;/a&gt; guide compares each tool's licence, release status and Prowlarr compatibility in detail:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Maintained forks (e.g. Byparr) — drop-in-ish FlareSolverr replacements that track Cloudflare changes more actively and swap in newer stealth browser stacks. If you like the proxy-server model, this is the lowest-friction upgrade — but it is still a browser you host, and it still struggles with Turnstile and tough managed challenges.&lt;/li&gt;
&lt;li&gt;nodriver — the modern successor to undetected-chromedriver, with minimal CDP traces. Good when you genuinely need JavaScript to run and want fewer automation fingerprints. Trade-offs: heavy CPU/RAM, slow startup, fragile at scale, and still not a guarantee against managed challenges or Turnstile.&lt;/li&gt;
&lt;li&gt;curl_cffi / curl-impersonate — impersonate a real browser's TLS and HTTP/2 fingerprint, lightweight and fast. Perfect when the only obstacle is TLS fingerprinting and the site is not actually issuing a JS challenge. But they execute no JavaScript and solve no CAPTCHA, so they cannot pass a managed challenge or Turnstile alone.&lt;/li&gt;
&lt;li&gt;Managed solving API — you POST the target details to an HTTP endpoint and get back a valid token or cf_clearance cookie. No browser fleet, no Docker container to babysit, no chasing Cloudflare updates. You trade a small per-solve cost for reliability and zero infrastructure.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  When a managed API is the right call, and why NSLSolver
&lt;/h2&gt;

&lt;p&gt;If you are clearing old IUAM pages on a couple of low-traffic targets, keep FlareSolverr or move to a maintained fork like Byparr — it is free and good enough. But if you are hitting Turnstile or managed challenges, running this in production, or tired of a Docker container that eats RAM and breaks on every Cloudflare update, hosting a browser is the wrong layer to be fighting at.&lt;/p&gt;

&lt;p&gt;NSLSolver is a developer API built for exactly that. It handles Cloudflare Turnstile, Cloudflare Challenge (managed / JS challenge), and Kasada behind a single HTTP contract — no browser to host, no infra to maintain. Turnstile solves average around 250 ms with a 99.9% success rate, billing is per successful solve so failed solves are free, and pricing is pay-as-you-go: Turnstile at $0.80 per 1,000 solves, Cloudflare Challenge at $1.00 per 1,000, and Kasada at $1.50 per 1,000. New accounts get 100 free requests at signup — no card and no crypto needed to start.&lt;/p&gt;

&lt;p&gt;The mental shift is simple: instead of running a browser proxy that loads the page and hopes the challenge clears, you make one HTTP call and get back exactly the artifact you need — a cf_clearance cookie and matching User-Agent for a challenge, or a token for Turnstile — then replay it on your own requests session.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;

&lt;span class="no"&gt;API&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://api.nslsolver.com"&lt;/span&gt;
&lt;span class="no"&gt;HEADERS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"X-API-Key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"nsl_YOUR_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="no"&gt;TARGET&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://target-site.com"&lt;/span&gt;

&lt;span class="c1"&gt;# 1) Ask NSLSolver to pass the Cloudflare managed/JS challenge&lt;/span&gt;
&lt;span class="c1"&gt;#    (replaces the FlareSolverr request.get round-trip)&lt;/span&gt;
&lt;span class="n"&gt;resp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{API}/solve"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;HEADERS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"challenge"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;TARGET&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"proxy"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"http://user:pass@host:port"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# 2) Replay the clearance cookie + User-Agent on your own session&lt;/span&gt;
&lt;span class="n"&gt;session&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Session&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cookies&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"cookies"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;          &lt;span class="c1"&gt;# dict keyed by cf_clearance&lt;/span&gt;
&lt;span class="n"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"User-Agent"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"user_agent"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;  &lt;span class="c1"&gt;# snake_case field&lt;/span&gt;

&lt;span class="c1"&gt;# 3) Now scrape normally — the request looks like a cleared browser&lt;/span&gt;
&lt;span class="n"&gt;html&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;TARGET&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;html&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Solving Turnstile tokens directly
&lt;/h2&gt;

&lt;p&gt;If the wall is a Turnstile widget rather than a full interstitial — for example a protected login or signup form that FlareSolverr leaves unverified — request a token instead. POST the widget's site_key and the page url, and use the returned token as the cf-turnstile-response value when you submit the form.&lt;/p&gt;

&lt;p&gt;That is the whole migration. You stop running the Docker proxy, keep your existing requests session, and let the API handle the part FlareSolverr was never able to brute-force with a browser.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;

&lt;span class="no"&gt;API&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://api.nslsolver.com"&lt;/span&gt;
&lt;span class="no"&gt;HEADERS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"X-API-Key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"nsl_YOUR_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="n"&gt;resp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{API}/solve"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;HEADERS&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"turnstile"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"site_key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"0x4AAAAAAA..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://target-site.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;token&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"token"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;  &lt;span class="c1"&gt;# e.g. "0.AAAA..."&lt;/span&gt;

&lt;span class="c1"&gt;# Submit the token as cf-turnstile-response&lt;/span&gt;
&lt;span class="n"&gt;payload&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"cf-turnstile-response"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"username"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"me"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"password"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"secret"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://target-site.com/login"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Why is FlareSolverr not working in 2026?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Because Cloudflare moved past the legacy IUAM challenge FlareSolverr was built to clear. The browser-and-wait approach no longer beats Turnstile or modern managed challenges, the project's maintenance has been slow to chase Cloudflare's updates, and each update tends to break another set of targets. For old IUAM-only pages it can still work; for Turnstile and managed challenges it usually returns the challenge page or times out.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What does "Challenge not detected" mean in FlareSolverr?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It means FlareSolverr loaded the page but did not recognize a challenge type it knows how to handle, so it returned early. This commonly happens when the site is using Turnstile or a newer managed/JS-VM challenge rather than the classic IUAM interstitial FlareSolverr was designed for.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the best FlareSolverr alternative?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It depends on the obstacle. For old IUAM pages, a maintained fork like Byparr or nodriver still works. For TLS-only blocks, curl_cffi is lightweight and effective. For Turnstile and managed challenges at scale — the cases where FlareSolverr fails most — a managed solving API like NSLSolver is the most reliable, no-infrastructure option.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does NSLSolver replace the FlareSolverr Docker container?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes, for the challenges it covers. Instead of hosting a browser proxy, you make one HTTP call and get back a cf_clearance cookie and User-Agent for a Cloudflare challenge, or a token for Turnstile. You apply those to a normal requests.Session — no Docker, no Chromium, no FlareSolverr. Note it covers Cloudflare Turnstile, Cloudflare Challenge, and Kasada specifically, not every bot wall.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Should I drop FlareSolverr entirely?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Not necessarily. If your targets still serve the old IUAM "Just a moment..." page and you are happy hosting a browser, FlareSolverr or a maintained fork is free and fine. Switch to a managed API when you hit Turnstile or managed challenges, need production reliability, or no longer want to babysit a resource-heavy container that breaks on Cloudflare updates.&lt;/p&gt;




&lt;p&gt;If you'd rather not maintain a solver yourself, &lt;a href="https://nslsolver.com/solutions/cloudflare-challenge" rel="noopener noreferrer"&gt;NSLSolver&lt;/a&gt; returns cf_clearance cookies from a single REST call.&lt;/p&gt;

</description>
      <category>webscraping</category>
      <category>cloudflare</category>
      <category>docker</category>
      <category>python</category>
    </item>
    <item>
      <title>Give Your AI Agent a Captcha Solver: an MCP Server for Claude, Cursor and VS Code</title>
      <dc:creator>NSLSolver Team</dc:creator>
      <pubDate>Fri, 04 Dec 2026 20:13:10 +0000</pubDate>
      <link>https://dev.to/nslsolver/give-your-ai-agent-a-captcha-solver-an-mcp-server-for-claude-cursor-and-vs-code-3113</link>
      <guid>https://dev.to/nslsolver/give-your-ai-agent-a-captcha-solver-an-mcp-server-for-claude-cursor-and-vs-code-3113</guid>
      <description>&lt;p&gt;AI agents can now browse, fill forms, scrape and run end-to-end tests on their own. Then they hit a Cloudflare "Just a moment..." page or a Turnstile widget, and the run stops. The agent cannot click a checkbox that is designed to detect automation, and it has no way to buy its way past one.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;NSLSolver MCP server&lt;/strong&gt; fixes that. It plugs a captcha-solving API into any Model Context Protocol client, so the agent can call a solver the same way it calls a file-system or browser tool. This guide covers the setup, what the agent receives, and the few rules that make the tokens and cookies actually work.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Short version:&lt;/strong&gt; install the server with one &lt;code&gt;npx&lt;/code&gt; command, add your API key, and your agent gets six tools for Turnstile, Cloudflare Challenge, reCAPTCHA v3, Kasada, Akamai and your balance. Copy-paste configs for every client are on the &lt;a href="https://nslsolver.com/mcp?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=mcp" rel="noopener noreferrer"&gt;MCP setup page&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Why agents get stuck on captchas
&lt;/h2&gt;

&lt;p&gt;Bot walls are built to stop exactly what an agent is: software driving a browser or an HTTP client. Turnstile scores the browser environment, Cloudflare Challenge issues a &lt;code&gt;cf_clearance&lt;/code&gt; cookie only to clients that pass its checks, Kasada and Akamai require signed sensor payloads, and reCAPTCHA v3 grades the session silently.&lt;/p&gt;

&lt;p&gt;An agent can recognise these pages, but it cannot pass them by itself. What it can do is call a tool. Once a solver is available as an MCP tool, the agent detects the wall, sends the site key and URL to the solver, and gets back a token, cookies or headers to continue with.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the MCP server is
&lt;/h2&gt;

&lt;p&gt;The Model Context Protocol (MCP) is the open standard that AI clients such as Claude Code, Claude Desktop, Cursor, VS Code and Windsurf use to talk to external tools. A server describes its tools, their inputs and what they do; the client shows them to the model, and the model decides when to call them.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.npmjs.com/package/nslsolver-mcp" rel="noopener noreferrer"&gt;&lt;code&gt;nslsolver-mcp&lt;/code&gt;&lt;/a&gt; is open source (MIT), published on npm and in the official MCP Registry, runs locally over stdio, and only talks to the NSLSolver API with your key. No state, no telemetry, no other network access.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install it in Claude Code, Claude Desktop or Cursor
&lt;/h2&gt;

&lt;p&gt;You need Node.js 18+ and an API key. The key is active as soon as you &lt;a href="https://nslsolver.com/auth/register?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=mcp" rel="noopener noreferrer"&gt;sign up&lt;/a&gt;, and signing up with Google, Gmail or Proton adds free credit. In Claude Code, one command registers the server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Claude Code: one command, available in every project&lt;/span&gt;
claude mcp add nslsolver -e &lt;span class="nv"&gt;NSLSOLVER_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;YOUR_API_KEY -- npx -y nslsolver-mcp

&lt;span class="c"&gt;# check it is connected&lt;/span&gt;
claude mcp list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  JSON config for other clients
&lt;/h2&gt;

&lt;p&gt;Claude Desktop (&lt;code&gt;claude_desktop_config.json&lt;/code&gt;), Cursor (&lt;code&gt;~/.cursor/mcp.json&lt;/code&gt;) and Windsurf (&lt;code&gt;~/.codeium/windsurf/mcp_config.json&lt;/code&gt;) all accept the same block:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"nslsolver"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"npx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"-y"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"nslsolver-mcp"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"NSLSOLVER_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"YOUR_API_KEY"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;VS Code uses a &lt;code&gt;servers&lt;/code&gt; key and can prompt for the key so it is never written to disk; that variant is on the &lt;a href="https://nslsolver.com/mcp?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=mcp" rel="noopener noreferrer"&gt;setup page&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tools your agent gets
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Returns&lt;/th&gt;
&lt;th&gt;Avg. time&lt;/th&gt;
&lt;th&gt;Per 1,000&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;solve_turnstile&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;token&lt;/td&gt;
&lt;td&gt;~250 ms&lt;/td&gt;
&lt;td&gt;$0.80&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;solve_cloudflare_challenge&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;cf_clearance + user_agent&lt;/td&gt;
&lt;td&gt;~3.3 s&lt;/td&gt;
&lt;td&gt;$1.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;solve_recaptcha_v3&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;token&lt;/td&gt;
&lt;td&gt;~13 s&lt;/td&gt;
&lt;td&gt;$1.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;solve_kasada&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;x-kpsdk-* headers&lt;/td&gt;
&lt;td&gt;3–10 s&lt;/td&gt;
&lt;td&gt;$1.50&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;solve_akamai&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;_abck + session cookies&lt;/td&gt;
&lt;td&gt;~15 s&lt;/td&gt;
&lt;td&gt;$2.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_balance&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;balance, CPM limits&lt;/td&gt;
&lt;td&gt;instant&lt;/td&gt;
&lt;td&gt;free&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Only successful solves are billed. Validation errors, 429 and 503 responses cost nothing.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a call looks like
&lt;/h2&gt;

&lt;p&gt;Ask in plain language, for example: &lt;em&gt;"Get a Turnstile token for &lt;a href="https://example.com/login" rel="noopener noreferrer"&gt;https://example.com/login&lt;/a&gt;, the sitekey is 0x4AAAAAAA..."&lt;/em&gt; or &lt;em&gt;"This page shows Just a moment..., get a cf_clearance through my proxy &lt;a href="http://user:pass@1.2.3.4:8080" rel="noopener noreferrer"&gt;http://user:pass@1.2.3.4:8080&lt;/a&gt;"&lt;/em&gt;. The agent picks the tool and gets JSON back:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="err"&gt;//&lt;/span&gt; &lt;span class="n"&gt;solve_turnstile&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"success"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"turnstile"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"token"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"0.AkBr7..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"cost"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.0008&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="err"&gt;//&lt;/span&gt; &lt;span class="n"&gt;solve_cloudflare_challenge&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"success"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"challenge"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"cookies"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"cf_clearance"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"abc123..."&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"user_agent"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Mozilla/5.0 ..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"cost"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.001&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Three rules that make the results work
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Replay cookies with the same proxy and User-Agent.&lt;/strong&gt; &lt;code&gt;cf_clearance&lt;/code&gt; and the Akamai cookies are bound to the exit IP and browser identity they were minted with. The challenge tool returns the &lt;code&gt;user_agent&lt;/code&gt; to reuse.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use tokens quickly, and only once.&lt;/strong&gt; A Turnstile token expires after about 300 seconds and is single-use, so solve right before you submit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Match the widget exactly.&lt;/strong&gt; If the widget sets &lt;code&gt;data-action&lt;/code&gt;/&lt;code&gt;data-cdata&lt;/code&gt;, or the site calls &lt;code&gt;grecaptcha.execute&lt;/code&gt; with an action, pass the same value.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Keep costs under control
&lt;/h2&gt;

&lt;p&gt;Every solve is a paid call, so treat the tools like any other side effect. The tools are marked non-idempotent, and clients such as Claude Code ask for approval before running them unless you allow them. &lt;code&gt;get_balance&lt;/code&gt; is free. Rate-limited and temporarily failing calls are retried with backoff, and timeouts are never retried, so one prompt never pays twice for the same solve.&lt;/p&gt;

&lt;p&gt;Use the solver only where you are allowed to automate: your own sites, QA environments, and sites whose terms permit it.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Try it:&lt;/strong&gt; &lt;a href="https://nslsolver.com/auth/register?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=mcp" rel="noopener noreferrer"&gt;create a free account&lt;/a&gt;, paste one config block, and your agent can solve Turnstile, Cloudflare Challenge, reCAPTCHA v3, Kasada and Akamai. Source: &lt;a href="https://github.com/NSLSolver/NSLSolver-MCP" rel="noopener noreferrer"&gt;github.com/NSLSolver/NSLSolver-MCP&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>webscraping</category>
      <category>automation</category>
    </item>
    <item>
      <title>Kasada x-kpsdk-ct and x-kpsdk-cd Headers Explained: Token, Proof of Work and Why You Get a 429</title>
      <dc:creator>NSLSolver Team</dc:creator>
      <pubDate>Thu, 03 Dec 2026 18:22:27 +0000</pubDate>
      <link>https://dev.to/nslsolver/kasada-x-kpsdk-ct-and-x-kpsdk-cd-headers-explained-token-proof-of-work-and-why-you-get-a-429-1l01</link>
      <guid>https://dev.to/nslsolver/kasada-x-kpsdk-ct-and-x-kpsdk-cd-headers-explained-token-proof-of-work-and-why-you-get-a-429-1l01</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://nslsolver.com/blog/kasada-x-kpsdk-ct-cd-headers" rel="noopener noreferrer"&gt;nslsolver.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;x-kpsdk-ct is Kasada's client token: an opaque value the site issues after Kasada's p.js script has fingerprinted the browser and posted the result to the /tl endpoint, and which the client then sends on every request to a protected endpoint. x-kpsdk-cd is its companion proof-of-work header: in most deployments a small JSON payload with the answers to a SHA-256, hashcash-style puzzle plus timing data, recomputed for every request, so it cannot be copied from one call to the next.&lt;/p&gt;

&lt;p&gt;Together with x-kpsdk-v (the SDK version), these are the headers Kasada checks before letting an API call through. A missing, expired or reused value typically gets an HTTP 429 instead of the response you wanted. This page explains where each header comes from, how to recognise a Kasada deployment, what x-kpsdk-cd contains, why Kasada reverse engineering is expensive to keep working, and how to get a valid set of headers from a single API call instead.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Short version:&lt;/strong&gt; you do not have to reverse engineer Kasada's VM to get valid headers. The &lt;a href="https://nslsolver.com/solutions/kasada" rel="noopener noreferrer"&gt;NSLSolver Kasada API&lt;/a&gt; returns x-kpsdk-ct, x-kpsdk-cd, x-kpsdk-v and x-kpsdk-h from one POST, typically in 3 to 10 seconds, for $1.50 per 1,000 successful solves.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Related reading: for an end-to-end Python walkthrough, see the &lt;a href="https://nslsolver.com/blog/kasada-bypass-guide" rel="noopener noreferrer"&gt;Kasada bypass guide&lt;/a&gt;; for parameters, pricing and live samples, see the &lt;a href="https://nslsolver.com/solutions/kasada" rel="noopener noreferrer"&gt;Kasada solver API page&lt;/a&gt;; for the equivalent cookie on Akamai, see &lt;a href="https://nslsolver.com/blog/akamai-bot-manager-abck-cookie" rel="noopener noreferrer"&gt;the Akamai _abck cookie explained&lt;/a&gt;. This page is about the x-kpsdk headers themselves.&lt;/p&gt;

&lt;h2&gt;
  
  
  The x-kpsdk headers at a glance
&lt;/h2&gt;

&lt;p&gt;Kasada does not publish its protocol, so the descriptions below reflect what is commonly observed on Kasada-protected sites. Treat every value as opaque and replay it exactly as you received it.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Header&lt;/th&gt;
&lt;th&gt;Where it comes from&lt;/th&gt;
&lt;th&gt;What it carries&lt;/th&gt;
&lt;th&gt;Reusable?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;x-kpsdk-ct&lt;/td&gt;
&lt;td&gt;Response to the POST /tl request, after the fingerprint has been accepted&lt;/td&gt;
&lt;td&gt;The client token that says "this session passed the challenge"&lt;/td&gt;
&lt;td&gt;Within its session, until the server stops accepting it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x-kpsdk-cd&lt;/td&gt;
&lt;td&gt;Computed client-side right before each protected request&lt;/td&gt;
&lt;td&gt;Proof of work: puzzle answers, timing data, server time&lt;/td&gt;
&lt;td&gt;No, it is computed per request&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x-kpsdk-v&lt;/td&gt;
&lt;td&gt;Set by the Kasada SDK on the page&lt;/td&gt;
&lt;td&gt;The SDK version string&lt;/td&gt;
&lt;td&gt;Yes, it only changes when the script changes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x-kpsdk-h&lt;/td&gt;
&lt;td&gt;Set alongside the others on some deployments&lt;/td&gt;
&lt;td&gt;An additional hash value&lt;/td&gt;
&lt;td&gt;Replay it as returned with the same ct&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Not every site checks every header. Send all the x-kpsdk-* headers you get back; extra ones do no harm.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to recognise Kasada on a site
&lt;/h2&gt;

&lt;p&gt;Open DevTools on the page, tick "Preserve log" in the Network tab and reload. A Kasada deployment usually shows several of these signals at once, and the same requests give you the three values NSLSolver needs.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Signal&lt;/th&gt;
&lt;th&gt;Where to look&lt;/th&gt;
&lt;th&gt;What it gives you&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;p.js under two UUIDs&lt;/td&gt;
&lt;td&gt;A script such as /149e9513-01fa-4fb0-aad4-566afd725d1b/2d206a39-8ed7-437e-a3be-862e0f06eea3/p.js&lt;/td&gt;
&lt;td&gt;That path is p_js_path. It is specific to each site&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;/fp fingerprint page&lt;/td&gt;
&lt;td&gt;A request to the same UUID prefix ending in /fp, often loaded in a hidden iframe&lt;/td&gt;
&lt;td&gt;The host serving it is fp_host&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;POST /tl&lt;/td&gt;
&lt;td&gt;A POST to the same UUID prefix ending in /tl; its response carries x-kpsdk-ct&lt;/td&gt;
&lt;td&gt;The host receiving it is tl_host (often an API host, not the page host)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;x-kpsdk-* request headers&lt;/td&gt;
&lt;td&gt;Request headers of the site's own XHR / fetch calls to its API&lt;/td&gt;
&lt;td&gt;Which endpoints are protected&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HTTP 429 with x-kpsdk-* headers&lt;/td&gt;
&lt;td&gt;A blocked API call or page load&lt;/td&gt;
&lt;td&gt;Confirms the block comes from Kasada, not from a plain rate limit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A KPSDK object&lt;/td&gt;
&lt;td&gt;Type KPSDK in the console; many sites call KPSDK.configure(...) with a list of protected endpoints&lt;/td&gt;
&lt;td&gt;The SDK is loaded on this page&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  How the Kasada token flow works, step by step
&lt;/h2&gt;

&lt;p&gt;The exact details change between script builds, but in most deployments the sequence looks like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;1. The page loads p.js from the two-UUID path. This loader sets up the KPSDK object and opens the /fp fingerprint page.&lt;/li&gt;
&lt;li&gt;2. The /fp page loads the main challenge script (often referred to as ips.js). Its logic does not run as readable JavaScript: it runs as bytecode inside an obfuscated, custom virtual machine.&lt;/li&gt;
&lt;li&gt;3. The script collects browser signals (navigator properties, rendering and timing behaviour, automation markers and more) and checks that they are consistent with each other.&lt;/li&gt;
&lt;li&gt;4. It packs and encrypts the result and POSTs it to /tl on tl_host.&lt;/li&gt;
&lt;li&gt;5. If the server accepts the payload, the /tl response carries x-kpsdk-ct and, typically, the server time and the parameters the client needs for proof of work.&lt;/li&gt;
&lt;li&gt;6. For each call to an endpoint registered with KPSDK.configure, the SDK computes a fresh proof of work and attaches x-kpsdk-ct, x-kpsdk-cd and x-kpsdk-v (plus x-kpsdk-h on some sites) by hooking fetch / XMLHttpRequest.&lt;/li&gt;
&lt;li&gt;7. The server checks the headers. If ct is missing or no longer valid, or cd is wrong, stale or already used, it answers 429 and the SDK runs the flow again.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What is inside x-kpsdk-cd?
&lt;/h2&gt;

&lt;p&gt;x-kpsdk-cd is a client-side proof of work. In most deployments it is a JSON object, sent as a string in the header. The client has to find values that, hashed with SHA-256 together with the challenge data, meet a target set by a difficulty level. Finding them costs CPU time; checking them costs the server almost nothing. That asymmetry is the point: it makes every protected request cost the client a little work.&lt;/p&gt;

&lt;p&gt;Typically the payload carries:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The answers to the puzzle: a short list of values that satisfy the difficulty.&lt;/li&gt;
&lt;li&gt;Timing information, such as how long the work took, and the server time it was computed against, so a stale cd can be detected.&lt;/li&gt;
&lt;li&gt;Data that links it to the current challenge and session.&lt;/li&gt;
&lt;li&gt;On some sites, a site-specific constant mixed into the computation. That is what NSLSolver's optional cd_constant parameter is for; most sites do not need it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why x-kpsdk-cd changes on every request
&lt;/h2&gt;

&lt;p&gt;The puzzle input includes time and fresh challenge data, and the server can remember answers it has already accepted. A cd computed for one request is therefore usually rejected on the next one, even when x-kpsdk-ct is still valid. That is the most common reason a scraper works for exactly one request and then gets 429s: the headers were captured once from a browser and replayed.&lt;/p&gt;

&lt;p&gt;The practical rule: cache nothing about cd. With NSLSolver, the reliable pattern is one solve per protected call, replayed with the same User-Agent you passed to /solve. Only endpoints the site registered with Kasada need the headers; page HTML, static assets and unprotected endpoints usually do not, so you rarely need a solve for every request you make.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Kasada reverse engineering is costly
&lt;/h2&gt;

&lt;p&gt;People do reverse engineer Kasada, and you will find write-ups for older script builds. The problem is not getting it to work once; it is keeping it working. The main costs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Bytecode VM: the logic lives in bytecode run by a custom interpreter. You have to understand the interpreter before you can read anything, and the opcodes, bytecode and string tables change when the script is rebuilt.&lt;/li&gt;
&lt;li&gt;Script rotation: new builds ship regularly. A deobfuscator or a pure re-implementation that works today can break without warning, usually when you are not watching.&lt;/li&gt;
&lt;li&gt;Encrypted /tl payload: you have to reproduce the exact payload format and its encryption, not just plausible fingerprint values.&lt;/li&gt;
&lt;li&gt;Fingerprint consistency: the signals have to agree with each other and with what the server sees on the protected call: the User-Agent, the Chrome major version, and the TLS and HTTP/2 fingerprint of your HTTP client.&lt;/li&gt;
&lt;li&gt;Session binding and per-request work: ct belongs to the session that earned it and cd has to be computed for each request, so what you build is a pipeline you run continuously, not a token you fetch once.&lt;/li&gt;
&lt;li&gt;Per-site configuration: each site has its own UUID path, hosts and, sometimes, its own constant.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Common failure symptoms and what they mean
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Symptom&lt;/th&gt;
&lt;th&gt;Likely cause&lt;/th&gt;
&lt;th&gt;What to do&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;429 on the protected call, no x-kpsdk-ct sent&lt;/td&gt;
&lt;td&gt;The endpoint is registered with Kasada and the headers are missing&lt;/td&gt;
&lt;td&gt;Get a solve and send every returned x-kpsdk-* header&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;429 right after a fresh solve&lt;/td&gt;
&lt;td&gt;User-Agent differs from the user_agent passed to /solve, or ua_version does not match it&lt;/td&gt;
&lt;td&gt;Replay with the exact same UA; set ua_version to its Chrome major version&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;First call works, the same headers fail on the second&lt;/td&gt;
&lt;td&gt;x-kpsdk-cd reused; it is single-use on most deployments&lt;/td&gt;
&lt;td&gt;Get a new solve (fresh cd) for each protected call&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Headers worked earlier, now 429&lt;/td&gt;
&lt;td&gt;x-kpsdk-ct expired or the session was invalidated; the lifetime is set server-side&lt;/td&gt;
&lt;td&gt;Solve again; do not hard-code a lifetime&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;429 with an x-kpsdk-r header or a reload instruction&lt;/td&gt;
&lt;td&gt;Kasada is telling the SDK to run the challenge again&lt;/td&gt;
&lt;td&gt;Treat it as "re-solve"; if it repeats, check UA, client fingerprint and proxy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fresh headers fail from your client but work in a browser&lt;/td&gt;
&lt;td&gt;TLS / HTTP/2 fingerprint or header set does not look like the UA you claim&lt;/td&gt;
&lt;td&gt;Use a browser-impersonating HTTP client (for example curl_cffi) on the protected call&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;/solve returns 400&lt;/td&gt;
&lt;td&gt;Missing or invalid url, p_js_path, fp_host or tl_host&lt;/td&gt;
&lt;td&gt;Copy the three values from the Network tab, as shown above&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Kasada does not document its error responses; the causes above are the ones most commonly observed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get the x-kpsdk headers with one API call
&lt;/h2&gt;

&lt;p&gt;The NSLSolver &lt;a href="https://nslsolver.com/solutions/kasada" rel="noopener noreferrer"&gt;Kasada solver API&lt;/a&gt; runs the whole flow on its side (p.js, the fingerprint page, the /tl exchange and the proof of work) and returns the headers. POST to &lt;a href="https://api.nslsolver.com/solve" rel="noopener noreferrer"&gt;https://api.nslsolver.com/solve&lt;/a&gt; with your key in the X-API-Key header, type "kasada", the page URL and a kasada_config object with p_js_path, fp_host and tl_host. Add cd_constant only if the site needs one. Pass the user_agent you will replay with and its Chrome major version as ua_version; proxy is optional (protocol://user:pass@host:port).&lt;/p&gt;

&lt;p&gt;The response contains x-kpsdk-ct, x-kpsdk-cd, x-kpsdk-v and x-kpsdk-h. Send them on the protected request with the same User-Agent. It costs $1.50 per 1,000 successful solves, failed solves are not billed, and a solve typically takes 3 to 10 seconds. New accounts get 100 free solves after email verification, no card required.&lt;/p&gt;

&lt;p&gt;Use it only on sites you own or are authorised to automate.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Ask NSLSolver for a full set of Kasada headers&lt;/span&gt;
curl -s https://api.nslsolver.com/solve \
  -H &lt;span class="s2"&gt;"X-API-Key: nsl_YOUR_API_KEY"&lt;/span&gt; \
  -H &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{
    "type": "kasada",
    "url": "https://www.example.com/login",
    "kasada_config": {
      "p_js_path": "/&amp;lt;uuid-1&amp;gt;/&amp;lt;uuid-2&amp;gt;/p.js",
      "fp_host": "www.example.com",
      "tl_host": "api.example.com"
    },
    "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36",
    "ua_version": 145
  }'&lt;/span&gt;

&lt;span class="c"&gt;# Response (200 OK)&lt;/span&gt;
&lt;span class="c"&gt;# {&lt;/span&gt;
&lt;span class="c"&gt;#   "success": true,&lt;/span&gt;
&lt;span class="c"&gt;#   "type": "kasada",&lt;/span&gt;
&lt;span class="c"&gt;#   "headers": {&lt;/span&gt;
&lt;span class="c"&gt;#     "x-kpsdk-ct": "...",&lt;/span&gt;
&lt;span class="c"&gt;#     "x-kpsdk-cd": "...",&lt;/span&gt;
&lt;span class="c"&gt;#     "x-kpsdk-v": "...",&lt;/span&gt;
&lt;span class="c"&gt;#     "x-kpsdk-h": "..."&lt;/span&gt;
&lt;span class="c"&gt;#   },&lt;/span&gt;
&lt;span class="c"&gt;#   "cost": 0.0015&lt;/span&gt;
&lt;span class="c"&gt;# }&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Python example with requests
&lt;/h2&gt;

&lt;p&gt;The same request in Python, followed by the protected call. The headers dict from the response is merged as-is, so any x-kpsdk-* header the site expects is included.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# kasada_headers.py  (pip install requests)&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;

&lt;span class="no"&gt;API_KEY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"nsl_YOUR_API_KEY"&lt;/span&gt;
&lt;span class="no"&gt;USER_AGENT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36"&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;get_kasada_headers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="s2"&gt;"https://api.nslsolver.com/solve"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"X-API-Key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;API_KEY&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="s2"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"kasada"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s2"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://www.example.com/login"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s2"&gt;"kasada_config"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="s2"&gt;"p_js_path"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"/&amp;lt;uuid-1&amp;gt;/&amp;lt;uuid-2&amp;gt;/p.js"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;# from the Network tab&lt;/span&gt;
                &lt;span class="s2"&gt;"fp_host"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"www.example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;            &lt;span class="c1"&gt;# host serving /fp&lt;/span&gt;
                &lt;span class="s2"&gt;"tl_host"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"api.example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;            &lt;span class="c1"&gt;# host receiving POST /tl&lt;/span&gt;
                &lt;span class="c1"&gt;# "cd_constant": "&amp;lt;hex&amp;gt;",                # only if the site needs one&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
            &lt;span class="s2"&gt;"user_agent"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;USER_AGENT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;# the exact UA you will replay with&lt;/span&gt;
            &lt;span class="s2"&gt;"ua_version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;145&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;         &lt;span class="c1"&gt;# Chrome major version of that UA&lt;/span&gt;
            &lt;span class="c1"&gt;# "proxy": "http://user:pass@host:port",  # optional&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"success"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;RuntimeError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"solve failed: {r.status_code} {data}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;  &lt;span class="c1"&gt;# x-kpsdk-ct, x-kpsdk-cd, x-kpsdk-v, x-kpsdk-h&lt;/span&gt;

&lt;span class="c1"&gt;# x-kpsdk-cd is single-use on most deployments: one solve per protected call.&lt;/span&gt;
&lt;span class="n"&gt;kasada&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;get_kasada_headers&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;resp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"https://api.example.com/v1/search"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="n"&gt;kasada&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"User-Agent"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;USER_AGENT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"q"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"..."&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# 429 here usually means a header was rejected&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Python example with the official SDK
&lt;/h2&gt;

&lt;p&gt;The nslsolver package wraps the same call in solve_kasada(...) with a KasadaConfig object, retries 429 and 503 responses for you and raises typed errors. This example uses Twitch's public Kasada configuration.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# pip install nslsolver&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;nslsolver&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;NSLSolver&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;KasadaConfig&lt;/span&gt;

&lt;span class="n"&gt;solver&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;NSLSolver&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"nsl_YOUR_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;solver&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;solve_kasada&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://passport.twitch.tv"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;user_agent&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;ua_version&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;145&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;kasada_config&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nc"&gt;KasadaConfig&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;p_js_path&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"/149e9513-01fa-4fb0-aad4-566afd725d1b/2d206a39-8ed7-437e-a3be-862e0f06eea3/p.js"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;fp_host&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"passport.twitch.tv"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;tl_host&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"gql.twitch.tv"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# result.headers holds the x-kpsdk-* headers; result.ct / result.cd are shortcuts&lt;/span&gt;
&lt;span class="n"&gt;resp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"https://gql.twitch.tv/gql"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="o"&gt;**&lt;/span&gt;&lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"User-Agent"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"query"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"..."&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Node.js example with fetch
&lt;/h2&gt;

&lt;p&gt;Node 18+ has fetch built in. Node's TLS fingerprint is not a browser's; if fresh headers are still rejected with the right User-Agent, make the protected call from a browser-impersonating client instead.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// kasada.mjs  (Node 18+, built-in fetch)&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;API_KEY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"nsl_YOUR_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;USER_AGENT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://api.nslsolver.com/solve"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s2"&gt;"X-API-Key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;API_KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"kasada"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://www.example.com/login"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;kasada_config&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;p_js_path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"/&amp;lt;uuid-1&amp;gt;/&amp;lt;uuid-2&amp;gt;/p.js"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;fp_host&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"www.example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="n"&gt;tl_host&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"api.example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;user_agent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;USER_AGENT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;ua_version&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;145&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;success&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"solve failed: "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;" "&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// Replay every returned x-kpsdk-* header with the SAME User-Agent&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;api&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://api.example.com/v1/search"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"User-Agent"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;USER_AGENT&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;q&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"..."&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://docs.nslsolver.com" rel="noopener noreferrer"&gt;Full API reference&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  NSLSolver API errors
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;th&gt;What to do&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;400&lt;/td&gt;
&lt;td&gt;Validation error: a required field is missing or malformed&lt;/td&gt;
&lt;td&gt;Check url and kasada_config (p_js_path, fp_host, tl_host)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;401&lt;/td&gt;
&lt;td&gt;Missing or invalid API key&lt;/td&gt;
&lt;td&gt;Send your key in the X-API-Key header&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;402&lt;/td&gt;
&lt;td&gt;Insufficient balance&lt;/td&gt;
&lt;td&gt;Top up your balance&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;429&lt;/td&gt;
&lt;td&gt;NSLSolver rate limit (not Kasada's)&lt;/td&gt;
&lt;td&gt;Back off and retry&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;503&lt;/td&gt;
&lt;td&gt;Temporarily unavailable&lt;/td&gt;
&lt;td&gt;Retry; it is not billed&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Only successful solves are billed, so retrying a failed solve does not cost extra.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What is x-kpsdk-ct?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;x-kpsdk-ct is Kasada's client token. The site issues it in the response to the /tl request after Kasada's p.js script has fingerprinted the browser, and the client sends it as a request header on every call to a Kasada-protected endpoint. It is opaque: you cannot decode, edit or generate it yourself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is x-kpsdk-cd and why does it change every request?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;x-kpsdk-cd is Kasada's proof-of-work header. In most deployments it is a JSON payload with answers to a SHA-256, hashcash-style puzzle plus timing data and the server time. The puzzle input includes time and fresh challenge data and the server can reject answers it has already seen, so a new cd has to be computed for every protected request.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I reuse a Kasada x-kpsdk-ct token?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Only within the session that earned it and only until the server stops accepting it; the lifetime is set server-side and varies by site. Even while ct is valid, each request still needs a fresh x-kpsdk-cd. With NSLSolver, the reliable pattern is one solve per protected call, replayed with the same User-Agent.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why does Kasada return 429?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Kasada typically answers blocked requests with HTTP 429 rather than 403. It usually means the x-kpsdk headers were missing, expired or reused, or that the client did not look like the browser that earned them (User-Agent, Chrome version, TLS fingerprint). A 429 with an x-kpsdk-r header or a reload instruction means the challenge has to be run again.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why is Kasada reverse engineering so hard?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The challenge logic runs as bytecode inside an obfuscated custom VM, the script is rebuilt regularly, the /tl payload is encrypted, and the fingerprint must stay consistent with the User-Agent and TLS fingerprint of the client that replays the headers. Getting it to work once is possible; keeping it working is an ongoing maintenance job.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is there a Kasada solver API?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. The NSLSolver Kasada API takes the page URL plus the p.js path, fp host and tl host, and returns x-kpsdk-ct, x-kpsdk-cd, x-kpsdk-v and x-kpsdk-h from one POST to &lt;a href="https://api.nslsolver.com/solve" rel="noopener noreferrer"&gt;https://api.nslsolver.com/solve&lt;/a&gt;. It costs $1.50 per 1,000 successful solves, typically takes 3 to 10 seconds, and new accounts get 100 free solves after email verification.&lt;/p&gt;




&lt;p&gt;If you'd rather not maintain a solver yourself, &lt;a href="https://nslsolver.com/solutions/kasada" rel="noopener noreferrer"&gt;NSLSolver&lt;/a&gt; returns the x-kpsdk-* headers from a single REST call.&lt;/p&gt;

</description>
      <category>webscraping</category>
      <category>security</category>
      <category>python</category>
      <category>node</category>
    </item>
    <item>
      <title>Cloudflare Turnstile Error Codes: 110xxx, 200100, 300xxx, 600xxx and How to Fix Them</title>
      <dc:creator>NSLSolver Team</dc:creator>
      <pubDate>Thu, 03 Dec 2026 18:21:41 +0000</pubDate>
      <link>https://dev.to/nslsolver/cloudflare-turnstile-error-codes-110xxx-200100-300xxx-600xxx-and-how-to-fix-them-269k</link>
      <guid>https://dev.to/nslsolver/cloudflare-turnstile-error-codes-110xxx-200100-300xxx-600xxx-and-how-to-fix-them-269k</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://nslsolver.com/blog/cloudflare-turnstile-error-codes" rel="noopener noreferrer"&gt;nslsolver.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Cloudflare Turnstile error codes are six-digit numbers the widget reports when it cannot finish. The first three digits give the family: 110xxx means a configuration problem such as an invalid sitekey or an unauthorized domain, 200100 means the device clock is wrong or a cache served a stale challenge, and 300xxx or 600xxx mean the visitor failed the bot check. On the server, siteverify returns text codes instead, and invalid-input-response or timeout-or-duplicate almost always mean the token is fake, older than 300 seconds, or already used.&lt;/p&gt;

&lt;p&gt;This page lists every code in Cloudflare's current reference with its meaning and fix, then translates the plain-English messages that sites and plugins show, such as "Invalid Turnstile token" or "Turnstile verify failed", back to the code that caused them.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Two kinds of errors:&lt;/strong&gt; six-digit codes come from the widget in the browser, text codes such as invalid-input-response come from siteverify on the server. If your form says "the cf-turnstile-response field is required", or siteverify rejects every token, the step-by-step fixes are in &lt;a href="https://nslsolver.com/blog/cf-turnstile-response-invalid" rel="noopener noreferrer"&gt;our cf-turnstile-response invalid guide&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How do Turnstile error codes work?
&lt;/h2&gt;

&lt;p&gt;When the widget hits a problem, it calls the error-callback you passed to turnstile.render() (or data-error-callback on the div) with the code as the first argument. If the callback returns a falsy value, Turnstile also writes a warning with the code to the browser console. With no callback at all, it throws a JavaScript exception, so add one in production.&lt;/p&gt;

&lt;p&gt;The first three digits name the family and the rest identify the exact error. Cloudflare writes some codes with an asterisk, such as 300* and 600*: the trailing digits vary and are for internal use, so 600010 is simply one member of the 600 family. By default the widget retries on its own (retry: "auto"), which means the callback can fire several times for one underlying problem.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;turnstile&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;render&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'#login-widget'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;sitekey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'0x4AAAAAAAB...'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'error-callback'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// code is a string such as "110200", "200100" or "600010"&lt;/span&gt;
    &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;warn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Turnstile error'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;code&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt; &lt;span class="c1"&gt;// falsy: Turnstile also logs the code and keeps retrying&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Client-side Turnstile error codes (widget)
&lt;/h2&gt;

&lt;p&gt;These are the codes in Cloudflare's error code reference. "Retry helps" follows Cloudflare's own column: when it says no, retrying will fail the same way until the cause is fixed.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Code&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;th&gt;Retry helps&lt;/th&gt;
&lt;th&gt;Fix&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;110100&lt;/td&gt;
&lt;td&gt;Invalid sitekey&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Copy the sitekey again from the Turnstile widget in the Cloudflare dashboard.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;110110&lt;/td&gt;
&lt;td&gt;Sitekey not found&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Check the sitekey for typos and confirm the widget still exists in the dashboard.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;110200&lt;/td&gt;
&lt;td&gt;Domain not authorized&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Add the page hostname (including staging and subdomains) under Hostname Management.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;110600&lt;/td&gt;
&lt;td&gt;Challenge timed out&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;The challenge took too long or the device clock is wrong. Sync the clock and retry.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;110620&lt;/td&gt;
&lt;td&gt;Interaction timed out&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;The visitor did not interact in time. Call turnstile.reset() to show a new challenge.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;200100&lt;/td&gt;
&lt;td&gt;Clock or cache problem&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Fix the device clock, or stop a CDN, proxy or service worker from caching the challenge.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;200500&lt;/td&gt;
&lt;td&gt;Iframe load error&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;The Turnstile iframe could not load. Make sure challenges.cloudflare.com is not blocked.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;300xxx&lt;/td&gt;
&lt;td&gt;Generic challenge failure&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Bot-like behavior was detected. Work through the browser checklist below.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;400020&lt;/td&gt;
&lt;td&gt;Invalid sitekey&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Same fix as 110100: verify the sitekey in the dashboard.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;400021&lt;/td&gt;
&lt;td&gt;Sitekey domain mismatch&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;The sitekey region does not match the domain in the Turnstile script tag. Use the script tag that matches the widget.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;400070&lt;/td&gt;
&lt;td&gt;Sitekey disabled&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;The widget is disabled. Re-enable it in the dashboard or use an active sitekey.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;600xxx&lt;/td&gt;
&lt;td&gt;Generic challenge failure&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Same as 300xxx: the bot check failed. Retry, then use the checklist below.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Source: Cloudflare Turnstile error codes reference, checked 29 November 2026. Lists still circulating with codes such as 100010, 110420, 110500, 120010 or 200010 come from an older version of that page, which Cloudflare corrected in March 2026; 200100 and 200500 also changed meaning then.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does Turnstile error 200100 mean?
&lt;/h2&gt;

&lt;p&gt;Error 200100 means Cloudflare saw a clock or cache problem: either the visitor's system clock is wrong, or the challenge was cached by something between the browser and Cloudflare. Because the challenge is time-sensitive, a stale copy or a clock that is hours off cannot pass, and retrying the same page does not help.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Visitors: turn on automatic date and time in the operating system settings, then reload the page with a hard refresh (Ctrl+Shift+R or Cmd+Shift+R).&lt;/li&gt;
&lt;li&gt;Visitors: try a private window. It rules out a cached copy and browser extensions in one step.&lt;/li&gt;
&lt;li&gt;Site owners: exclude the page that renders the widget, and every request to challenges.cloudflare.com, from page caches, caching plugins and service workers.&lt;/li&gt;
&lt;li&gt;Site owners: if a reverse proxy or CDN sits in front of the page, check that it is not caching responses it should pass through.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  "Turnstile script failed to load" and error 200500
&lt;/h2&gt;

&lt;p&gt;The widget is loaded from &lt;a href="https://challenges.cloudflare.com/turnstile/v0/api.js" rel="noopener noreferrer"&gt;https://challenges.cloudflare.com/turnstile/v0/api.js&lt;/a&gt; and runs inside an iframe served from the same domain. If either is blocked, the site shows something like "Turnstile script failed to load", or the widget reports 200500 (iframe load error). Nothing is wrong with the token at that point: the challenge never started.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ad blockers, privacy extensions and script blockers are the most common cause. Disable them for the site and reload.&lt;/li&gt;
&lt;li&gt;A Content-Security-Policy must allow &lt;a href="https://challenges.cloudflare.com" rel="noopener noreferrer"&gt;https://challenges.cloudflare.com&lt;/a&gt; in both script-src and frame-src.&lt;/li&gt;
&lt;li&gt;Corporate firewalls, DNS filters, VPNs and some proxies block challenges.cloudflare.com. Try another network, such as a mobile hotspot.&lt;/li&gt;
&lt;li&gt;JavaScript must be enabled. Turnstile supports all major browsers except Internet Explorer.&lt;/li&gt;
&lt;li&gt;A 401 error in the console during the check is usually harmless: Cloudflare explains it as a Private Access Token request the browser does not support. If you still get a token, ignore it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What do 300xxx and 600xxx errors mean?
&lt;/h2&gt;

&lt;p&gt;Both families are generic challenge failures: Cloudflare detected behavior it associates with bots and did not issue a token. Error 600010, the one people search for most, is part of this family. A retry can succeed, but if the same browser fails repeatedly, the environment is the problem, not the site.&lt;/p&gt;

&lt;p&gt;Cloudflare's troubleshooting list for these codes is, in order:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Check browser compatibility and update the browser. Cloudflare has a checker at debug.challenges.cloudflare.com.&lt;/li&gt;
&lt;li&gt;Disable browser extensions, especially ad blockers, and reload.&lt;/li&gt;
&lt;li&gt;Make sure JavaScript is enabled.&lt;/li&gt;
&lt;li&gt;Try an incognito or private window.&lt;/li&gt;
&lt;li&gt;Try another browser or device.&lt;/li&gt;
&lt;li&gt;Turn off VPNs and proxies temporarily.&lt;/li&gt;
&lt;li&gt;Switch to a different network.&lt;/li&gt;
&lt;li&gt;Site owners: automated test browsers (Selenium, Playwright, Cypress) are detected as bots by design. For your own test suites, use Cloudflare's dummy sitekeys, such as 1x00000000000000000000AA (always passes), instead of the production key.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Server-side siteverify error codes
&lt;/h2&gt;

&lt;p&gt;The widget alone does not protect a form: your backend has to POST the token and your secret key to &lt;a href="https://challenges.cloudflare.com/turnstile/v0/siteverify" rel="noopener noreferrer"&gt;https://challenges.cloudflare.com/turnstile/v0/siteverify&lt;/a&gt;. On failure, Cloudflare returns "success": false and an "error-codes" array. A token is at most 2,048 characters, valid for 300 seconds, and meant to be validated once.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;error-codes value&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;th&gt;Fix&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;missing-input-secret&lt;/td&gt;
&lt;td&gt;The secret parameter was not sent.&lt;/td&gt;
&lt;td&gt;Send the widget's secret key. An unset environment variable is the usual culprit.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;invalid-input-secret&lt;/td&gt;
&lt;td&gt;The secret key is invalid or expired.&lt;/td&gt;
&lt;td&gt;Copy the secret from the same widget as the sitekey. After a rotation, deploy the new secret.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;missing-input-response&lt;/td&gt;
&lt;td&gt;No token was sent.&lt;/td&gt;
&lt;td&gt;The form arrived without cf-turnstile-response. See the "token required" messages below.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;invalid-input-response&lt;/td&gt;
&lt;td&gt;The token is invalid, malformed or expired.&lt;/td&gt;
&lt;td&gt;Have the visitor redo the challenge. Check the token is not truncated or a test token.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bad-request&lt;/td&gt;
&lt;td&gt;The request itself is malformed.&lt;/td&gt;
&lt;td&gt;POST secret and response as form data or JSON to the siteverify endpoint.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;timeout-or-duplicate&lt;/td&gt;
&lt;td&gt;The token is older than 300 s or was already validated.&lt;/td&gt;
&lt;td&gt;Get a new token and validate each token exactly once.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;internal-error&lt;/td&gt;
&lt;td&gt;Cloudflare hit an internal error.&lt;/td&gt;
&lt;td&gt;Retry the siteverify call. An idempotency_key makes the retry safe.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Source: Cloudflare Turnstile server-side validation docs, checked 29 November 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does the message on the page actually mean?
&lt;/h2&gt;

&lt;p&gt;Most people never see a raw Cloudflare code. They see a message written by the site, WordPress plugin, form builder or login script that wraps the widget and siteverify. The wording changes from site to site, but each message maps back to one of the codes above.&lt;/p&gt;

&lt;p&gt;One message is worth decoding in full: "captcha provider unable to verify token =&amp;gt; turnstile token is not valid (http ok; ts invalid-input-response)". Here "http ok" means the site reached Cloudflare without trouble, and "ts invalid-input-response" is the siteverify code Cloudflare sent back: the token itself was rejected.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Message you see&lt;/th&gt;
&lt;th&gt;What it usually means&lt;/th&gt;
&lt;th&gt;What to do&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;"Turnstile token required", "Error! Turnstile token required", "Turnstile token missing", "Turnstile token is empty"&lt;/td&gt;
&lt;td&gt;The form was sent without a token (missing-input-response). The widget never finished, or never loaded.&lt;/td&gt;
&lt;td&gt;Wait for the checkmark before submitting; disable blockers. Developers: keep the widget inside the form.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"请完成 Turnstile 验证，然后重试"&lt;/td&gt;
&lt;td&gt;Chinese for "complete the Turnstile check, then try again". Same cause: no token was sent.&lt;/td&gt;
&lt;td&gt;Complete the widget first. If it never appears, see the script-loading fixes above.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"Error getting Turnstile token"&lt;/td&gt;
&lt;td&gt;The widget raised a client-side error instead of producing a token.&lt;/td&gt;
&lt;td&gt;Open the browser console and look up the six-digit code in the table above.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"Invalid Turnstile token", "Error! Invalid Turnstile token", "turnstile.invalid_input_response", "turnstile token is not valid"&lt;/td&gt;
&lt;td&gt;siteverify returned invalid-input-response: the token is malformed, forged, expired or a test token.&lt;/td&gt;
&lt;td&gt;Reload the page and pass the check again. Site owners: check sitekey and secret belong to the same widget.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"Turnstile verify failed, please refresh the page and try again", "Turnstile validation failed"&lt;/td&gt;
&lt;td&gt;siteverify returned success: false, very often timeout-or-duplicate after a long wait or a double submit.&lt;/td&gt;
&lt;td&gt;Refresh, pass the check again and submit once, within five minutes.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"Incorrect Turnstile response. Try the verification again."&lt;/td&gt;
&lt;td&gt;A generic siteverify rejection, usually an expired or reused token.&lt;/td&gt;
&lt;td&gt;Redo the challenge. If it keeps failing, use the 300xxx/600xxx checklist.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These messages are not Cloudflare's. The mapping is the most common cause; the site's own logs show the exact error-codes value.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why is a token from a solver still rejected?
&lt;/h2&gt;

&lt;p&gt;If you automate your own login flows, run integration tests against a third-party site or scrape pages you are allowed to scrape, you can get Turnstile tokens from a solver API instead of a browser. A token that the site still rejects is almost always one of these:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Action or cdata mismatch. If the widget sets data-action or data-cdata, siteverify returns those values and many sites compare them. Pass exactly the same strings to the solver.&lt;/li&gt;
&lt;li&gt;Expired. Tokens are valid for 300 seconds from generation. Solve right before you submit, not at the start of a long job.&lt;/li&gt;
&lt;li&gt;Reused. Tokens are single-use, so a retry with the same token returns timeout-or-duplicate. Solve again for every submission.&lt;/li&gt;
&lt;li&gt;Wrong sitekey or URL. Use the data-sitekey of the widget on the exact page you submit, and that page's URL. Sites with several widgets often use a different sitekey on login and signup.&lt;/li&gt;
&lt;li&gt;Wrong field. The token usually goes in cf-turnstile-response, but sites can rename it (data-response-field-name) or send it in a JSON body or header. Copy what the browser sends.&lt;/li&gt;
&lt;li&gt;IP checks. siteverify accepts an optional remoteip. If tokens fail only from your script, solve through the proxy you submit from, using the proxy and user_agent fields.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Get a fresh Turnstile token in Python
&lt;/h2&gt;

&lt;p&gt;NSLSolver solves Turnstile in about 250 ms on average and returns a token you submit exactly like a browser would. It costs $0.80 per 1,000 successful solves, and failed solves are never billed. Turnstile is solved without a proxy by default.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;

&lt;span class="no"&gt;NSL_API_KEY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"nsl_your_api_key"&lt;/span&gt;
&lt;span class="no"&gt;PAGE_URL&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://example.com/login"&lt;/span&gt;  &lt;span class="c1"&gt;# the page that shows the widget&lt;/span&gt;
&lt;span class="no"&gt;SITE_KEY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"0x4AAAAAAAB..."&lt;/span&gt;             &lt;span class="c1"&gt;# data-sitekey of the .cf-turnstile element&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;solve_turnstile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cdata&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"turnstile"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"site_key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;SITE_KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;PAGE_URL&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"action"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;action&lt;/span&gt;  &lt;span class="c1"&gt;# only if the widget sets data-action&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;cdata&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"cdata"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;cdata&lt;/span&gt;    &lt;span class="c1"&gt;# only if the widget sets data-cdata&lt;/span&gt;
    &lt;span class="n"&gt;resp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="s2"&gt;"https://api.nslsolver.com/solve"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"X-API-Key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;NSL_API_KEY&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;120&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;raise_for_status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"token"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;

&lt;span class="c1"&gt;# Solve right before you submit: the token expires after ~300 s and works once.&lt;/span&gt;
&lt;span class="n"&gt;token&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;solve_turnstile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"login"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;PAGE_URL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="s2"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"you@example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"password"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"your-password"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s2"&gt;"cf-turnstile-response"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="c1"&gt;# or the field name the site actually uses&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://docs.nslsolver.com/api-reference/solve/" rel="noopener noreferrer"&gt;Full /solve API reference&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Still stuck on siteverify? The &lt;a href="https://nslsolver.com/blog/cf-turnstile-response-invalid" rel="noopener noreferrer"&gt;cf-turnstile-response invalid guide&lt;/a&gt; covers every root cause of rejected tokens. For integration details and pricing, see the &lt;a href="https://nslsolver.com/solutions/cloudflare-turnstile" rel="noopener noreferrer"&gt;Cloudflare Turnstile solver API&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What does Turnstile error 200100 mean?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It is a clock or cache problem: the device clock is wrong, or a CDN, proxy, caching plugin or service worker served a cached copy of the challenge. Sync the clock, hard-refresh or use a private window; site owners should exclude the widget page and challenges.cloudflare.com from caching.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What does "invalid Turnstile token" mean?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The site sent your token to Cloudflare's siteverify endpoint and got invalid-input-response back: the token was malformed, forged, expired or a test token. Reload the page and complete the check again. For site owners, every root cause is covered in &lt;a href="https://nslsolver.com/blog/cf-turnstile-response-invalid" rel="noopener noreferrer"&gt;our cf-turnstile-response invalid guide&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why does it say the Turnstile token is required or missing after I completed the check?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The form reached the server without the cf-turnstile-response value. Usually the widget had not finished, an extension blocked it, or the site's JavaScript submitted the form without reading the token. Wait for the checkmark, disable blockers and try again.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I fix Turnstile error 600010?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;600010 belongs to the 600xxx family of generic challenge failures: Cloudflare detected bot-like behavior. Update the browser, disable extensions, try a private window, turn off VPNs or proxies, or switch network. Site owners cannot allow-list a visitor from this error.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How long is a Turnstile token valid?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;300 seconds (5 minutes) from generation, and only for one siteverify call. After that, or on a second validation, Cloudflare returns timeout-or-duplicate and the visitor needs a new token, for example via turnstile.reset().&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get a valid Turnstile token for automated tests or scraping?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For your own site, use Cloudflare's dummy test sitekeys. For other sites you are allowed to automate, a solver API returns real tokens: NSLSolver takes the sitekey and page URL, answers in about 250 ms, and charges $0.80 per 1,000 successful solves, with 100 free solves on signup. See the &lt;a href="https://nslsolver.com/solutions/cloudflare-turnstile" rel="noopener noreferrer"&gt;Turnstile solver API&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;If you'd rather not maintain a solver yourself, &lt;a href="https://nslsolver.com/solutions/cloudflare-turnstile" rel="noopener noreferrer"&gt;NSLSolver&lt;/a&gt; returns tokens from a single REST call.&lt;/p&gt;

</description>
      <category>cloudflare</category>
      <category>webdev</category>
      <category>security</category>
      <category>javascript</category>
    </item>
    <item>
      <title>How to Bypass Akamai Bot Manager in 2026: _abck, sensor_data and a Solver API</title>
      <dc:creator>NSLSolver Team</dc:creator>
      <pubDate>Thu, 03 Dec 2026 13:05:39 +0000</pubDate>
      <link>https://dev.to/nslsolver/how-to-bypass-akamai-bot-manager-in-2026-abck-sensordata-and-a-solver-api-1dao</link>
      <guid>https://dev.to/nslsolver/how-to-bypass-akamai-bot-manager-in-2026-abck-sensordata-and-a-solver-api-1dao</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://nslsolver.com/blog/akamai-bot-manager-bypass" rel="noopener noreferrer"&gt;nslsolver.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Akamai Bot Manager is Akamai's bot-detection layer: an obfuscated sensor script collects browser and device signals, posts them back as sensor_data, and Akamai only treats requests as human once the _abck cookie reaches a validated state. Bypassing it means getting a validated cookie jar (_abck, bm_sz, ak_bmsc) and replaying it from the same IP, the same User-Agent and a client whose TLS and HTTP/2 fingerprint matches that browser.&lt;/p&gt;

&lt;p&gt;You can do that by driving a real browser, by maintaining your own sensor generator, or by asking an API for the cookies. This guide explains how Bot Manager decides, why the do-it-yourself routes keep breaking, and how to use the NSLSolver Akamai API, which is in beta, from Python and Node.js. Only automate sites you own or are authorised to access.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick answer: symptom → fix
&lt;/h2&gt;

&lt;p&gt;Find what you see on the Akamai-protected site, then apply the fix on the right.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;403 "Access Denied" with a "Reference #" on the very first request&lt;/strong&gt;: &lt;strong&gt;The Akamai edge refused the client before any cookie mattered.&lt;/strong&gt; Move to a clean residential or mobile sticky proxy and a client with a Chrome-like TLS and HTTP/2 fingerprint, then get cookies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;_abck stays at ~-1~ after the sensor runs&lt;/strong&gt;: &lt;strong&gt;The sensor data was not accepted.&lt;/strong&gt; Fix IP, User-Agent and client consistency first (see the sensor_data guide), or get validated cookies from a solver.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Works in Chrome, 403 in python-requests, Node fetch or Go&lt;/strong&gt;: &lt;strong&gt;Your HTTP client does not look like the browser named in the User-Agent.&lt;/strong&gt; Replay with a Chrome-impersonating client such as curl_cffi, with the same User-Agent and IP.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cookies work for a few requests, then 403 again&lt;/strong&gt;: &lt;strong&gt;The _abck cookie was burned or invalidated by the server.&lt;/strong&gt; Solve again for a fresh cookie jar; keep one cookie set per IP and do not share it across workers on other IPs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Blocked right after rotating the proxy&lt;/strong&gt;: &lt;strong&gt;Akamai cookies are bound to the exit IP that earned them.&lt;/strong&gt; Use a sticky session and re-solve whenever the IP changes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;NSLSolver: "user_agent is required for akamai type" or "Proxy is required"&lt;/strong&gt;: &lt;strong&gt;Both fields are mandatory for type akamai.&lt;/strong&gt; Send the exact User-Agent you will replay with and a proxy (http://, https:// or socks5://).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;NSLSolver: "Could not find Akamai script tag"&lt;/strong&gt;: &lt;strong&gt;The URL you sent does not load the Akamai sensor on the first GET.&lt;/strong&gt; Send the page that actually serves the sensor script, often the login or product page.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Akamai does not document the _abck format or the sensor protocol; cookie behaviour above comes from the public write-ups listed under Sources (checked 2026-12-01). The NSLSolver error strings are the ones listed in the Akamai API reference on docs.nslsolver.com.&lt;/p&gt;

&lt;h2&gt;
  
  
  How Akamai Bot Manager decides who gets through
&lt;/h2&gt;

&lt;p&gt;On a protected site the page loads a first-party script from a path made of random segments on the site's own host. The script collects browser, device and behaviour signals, encrypts them into a payload widely called sensor_data and POSTs it back, usually several times during the first seconds of the visit. Each accepted post can update the _abck cookie, and protected endpoints only answer normally when _abck is in a validated state.&lt;/p&gt;

&lt;p&gt;Akamai also looks below the page. Akamai researchers published a white paper on passive HTTP/2 fingerprinting (Black Hat Europe 2017) showing that SETTINGS values and order, WINDOW_UPDATE, PRIORITY frames and pseudo-header order identify the client library whatever the User-Agent says. A python-requests or Node fetch call is recognisable before any cookie is read.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Cookie&lt;/th&gt;
&lt;th&gt;What it is used for&lt;/th&gt;
&lt;th&gt;What it means for you&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;_abck&lt;/td&gt;
&lt;td&gt;Long-lived cookie used for behavioural tracking and risk scoring (Bright Data); its state reflects whether the sensor was accepted&lt;/td&gt;
&lt;td&gt;The one that must be validated; send it with every protected request&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bm_sz&lt;/td&gt;
&lt;td&gt;Session cookie set early in the visit; Hyper Solutions' SDK uses it as an input to sensor generation&lt;/td&gt;
&lt;td&gt;Must belong to the same session as the sensor and _abck&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ak_bmsc&lt;/td&gt;
&lt;td&gt;Short-lived session cookie that expires within a few hours (Bright Data)&lt;/td&gt;
&lt;td&gt;Keep it in the jar; expect to refresh it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;bm_sv and other bm_*&lt;/td&gt;
&lt;td&gt;Listed by Akamai as first-party cookies without a public description&lt;/td&gt;
&lt;td&gt;Let your cookie jar carry whatever the site sets&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Akamai's cookie notice lists _abck, bm_sz, ak_bmsc and bm_sv but does not describe their contents; the roles above come from third-party write-ups.&lt;/p&gt;

&lt;h2&gt;
  
  
  The flow, step by step
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Your first GET sets bm_sz, ak_bmsc and an unvalidated _abck (commonly read as ~-1~ in the second field).&lt;/li&gt;
&lt;li&gt;The page loads the sensor script from its random-looking first-party path.&lt;/li&gt;
&lt;li&gt;The script POSTs sensor_data to that path one or more times.&lt;/li&gt;
&lt;li&gt;When a post is accepted, Akamai updates _abck to a validated state.&lt;/li&gt;
&lt;li&gt;Protected API calls then succeed as long as the cookie jar, the IP and the client stay consistent.&lt;/li&gt;
&lt;li&gt;The server can invalidate the cookie later; another accepted sensor post or a fresh session restores it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why do-it-yourself Akamai bypasses break
&lt;/h2&gt;

&lt;p&gt;Every route has to produce the same thing, a validated cookie jar replayed consistently, and this is where home-made bypasses break:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The sensor script is heavily obfuscated and changes over time, so a home-made generator needs ongoing reverse engineering.&lt;/li&gt;
&lt;li&gt;The payload is scored together with the client that sends it: a correct sensor posted from a non-browser TLS or HTTP/2 stack still fails.&lt;/li&gt;
&lt;li&gt;Cookies are bound to the exit IP. Scrappey lists _abck or bm_sz sent from a different IP than the previous response as a sign of shared cookies.&lt;/li&gt;
&lt;li&gt;Sensor, bm_sz and _abck must come from the same visit; replayed or stale sensors do not fit a real timeline.&lt;/li&gt;
&lt;li&gt;Real browsers are scored too: headless mode, automation flags and datacenter IPs lower the score, and each browser costs memory and seconds per page.&lt;/li&gt;
&lt;li&gt;A validated cookie can still be burned after some traffic, so a bypass needs a re-solve path, not a one-off.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Your options compared
&lt;/h2&gt;

&lt;p&gt;If your _abck never validates, the detailed diagnosis is in our guide to &lt;a href="https://nslsolver.com/blog/akamai-sensor-data-invalid" rel="noopener noreferrer"&gt;Akamai sensor_data invalid and _abck stuck at -1&lt;/a&gt;; for recognising Akamai and replaying cookies, see &lt;a href="https://nslsolver.com/blog/akamai-bot-manager-abck-cookie" rel="noopener noreferrer"&gt;Akamai Bot Manager and the _abck cookie&lt;/a&gt;. Here is how the main routes compare:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Approach&lt;/th&gt;
&lt;th&gt;What you maintain&lt;/th&gt;
&lt;th&gt;Typical failure&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Real browser automation (Playwright, Puppeteer, Selenium)&lt;/td&gt;
&lt;td&gt;Browsers, stealth patches, proxies&lt;/td&gt;
&lt;td&gt;Headless and automation signals; memory and time per page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Anti-detect or stealth browser&lt;/td&gt;
&lt;td&gt;Browser builds and fingerprint profiles&lt;/td&gt;
&lt;td&gt;Profiles drift from what Akamai expects; still one browser per session&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Your own sensor generator + TLS-impersonating client&lt;/td&gt;
&lt;td&gt;Reverse engineering of every sensor update, per-site differences&lt;/td&gt;
&lt;td&gt;Breaks when the script changes; TLS/HTTP2 mismatch&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scraping / unlocker API&lt;/td&gt;
&lt;td&gt;Nothing on your side; you get page bodies&lt;/td&gt;
&lt;td&gt;Per-request cost; you do not control the session&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Solver API (NSLSolver Akamai, beta)&lt;/td&gt;
&lt;td&gt;Your HTTP client and a sticky proxy&lt;/td&gt;
&lt;td&gt;Beta variability; cookies must be replayed from the same IP and User-Agent&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Bypass Akamai with the NSLSolver API (beta)
&lt;/h2&gt;

&lt;p&gt;The NSLSolver &lt;a href="https://nslsolver.com/solutions/akamai" rel="noopener noreferrer"&gt;Akamai solver API&lt;/a&gt; returns a validated Akamai cookie jar from one HTTP call. No browser is used: solving is server-side and request-based. The solver fetches your URL through your proxy, finds the Akamai sensor script in the HTML, runs that script in an isolated JavaScript environment, posts the resulting sensor data back to the site and returns the cookies once _abck is valid.&lt;/p&gt;

&lt;p&gt;Akamai support is in beta. Expect more variability than on the Cloudflare and Kasada solvers, and build a retry path. It costs $2.00 per 1,000 successful solves, a solve averages about 15 seconds, failed solves are not billed, and new accounts get 100 free solves after email verification. POST to &lt;a href="https://api.nslsolver.com/solve" rel="noopener noreferrer"&gt;https://api.nslsolver.com/solve&lt;/a&gt; with your key in the X-API-Key header:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;Required&lt;/th&gt;
&lt;th&gt;Notes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;type&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;"akamai" (alias "akamai-bypass")&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;url&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;The Akamai-protected page that loads the sensor script&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;user_agent&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;The exact User-Agent you will replay the cookies with&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;proxy&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;http://, https:// or socks5://; the cookies are bound to its exit IP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Response: cookies&lt;/td&gt;
&lt;td&gt;-&lt;/td&gt;
&lt;td&gt;_abck, bm_sz, ak_bmsc and any other cookie the site set&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Response: success, type, cost&lt;/td&gt;
&lt;td&gt;-&lt;/td&gt;
&lt;td&gt;true, "akamai" and the USD charged (0.002)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# akamai_bypass.py  (pip install requests curl_cffi)&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;curl_cffi&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;cffi&lt;/span&gt;

&lt;span class="no"&gt;UA&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36"&lt;/span&gt;
&lt;span class="no"&gt;PROXY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"http://user:pass@sticky-proxy.example.com:8080"&lt;/span&gt;  &lt;span class="c1"&gt;# sticky: one exit IP for the whole session&lt;/span&gt;
&lt;span class="no"&gt;PAGE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://www.example.com/login"&lt;/span&gt;            &lt;span class="c1"&gt;# a page that loads the Akamai sensor script&lt;/span&gt;
&lt;span class="no"&gt;API&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://www.example.com/api/products"&lt;/span&gt;      &lt;span class="c1"&gt;# the protected endpoint you actually want&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;solve_akamai&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="s2"&gt;"https://api.nslsolver.com/solve"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"X-API-Key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"NSLSOLVER_API_KEY"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"akamai"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;PAGE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"user_agent"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;UA&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"proxy"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;PROXY&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;180&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"success"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;RuntimeError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"solve failed: {r.status_code} {data}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"cookies"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;  &lt;span class="c1"&gt;# _abck, bm_sz, ak_bmsc, ...&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;new_session&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;cffi&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Session&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="c1"&gt;# Same User-Agent and proxy as the solve, Chrome-like TLS and HTTP/2.&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;cffi&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Session&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;impersonate&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"chrome"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"User-Agent"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;UA&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;proxies&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"http"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;PROXY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"https"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;PROXY&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;solve_akamai&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;items&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cookies&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;

&lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;new_session&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;resp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;API&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;403&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="c1"&gt;# cookie burned or invalidated: solve once more&lt;/span&gt;
    &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;new_session&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;resp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;API&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Node.js example
&lt;/h2&gt;

&lt;p&gt;The request is the same from any language. The important part is what happens after: every returned cookie goes back to the site through the same proxy and with the same User-Agent.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// akamai-bypass.mjs  (Node.js 18+)&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;UA&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="no"&gt;PROXY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"http://user:pass@sticky-proxy.example.com:8080"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://api.nslsolver.com/solve"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"X-API-Key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;NSLSOLVER_API_KEY&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"akamai"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://www.example.com/login"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c1"&gt;// page that loads the sensor script&lt;/span&gt;
    &lt;span class="n"&gt;user_agent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;UA&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                        &lt;span class="c1"&gt;// required for akamai&lt;/span&gt;
    &lt;span class="n"&gt;proxy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;PROXY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                          &lt;span class="c1"&gt;// required for akamai&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;signal&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;AbortSignal&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;180_000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;success&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sb"&gt;`solve failed: ${r.status} ${JSON.stringify(data)}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// Send every returned cookie, through the SAME proxy, with the SAME User-Agent.&lt;/span&gt;
&lt;span class="c1"&gt;// Node's built-in fetch has its own TLS fingerprint and no proxy option, so use an&lt;/span&gt;
&lt;span class="c1"&gt;// HTTP client that supports your proxy (and, for strict sites, Chrome-like TLS).&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;cookie&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;entries&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cookies&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;v&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="sb"&gt;`${k}=${v}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"; "&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;cookie&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;cookie&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="s2"&gt;"..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;cost&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cost&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Replay rules that keep the cookies valid
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Same exit IP: use a sticky proxy session for the solve and every request that follows.&lt;/li&gt;
&lt;li&gt;Same User-Agent, byte for byte, and headers that belong to that browser.&lt;/li&gt;
&lt;li&gt;A client whose TLS and HTTP/2 look like that Chrome version (curl_cffi with impersonate="chrome" in Python).&lt;/li&gt;
&lt;li&gt;Send all returned cookies, not only _abck, and let the jar keep any cookie the site updates.&lt;/li&gt;
&lt;li&gt;On a 403 or a challenge page served with 200, solve once more; if it fails again, stop and check the IP.&lt;/li&gt;
&lt;li&gt;One cookie jar per IP. Do not share cookies between workers on different proxies.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Sources (checked 2026-12-01)&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.nslsolver.com/api-reference/akamai" rel="noopener noreferrer"&gt;NSLSolver API reference: Akamai (request fields, response, troubleshooting)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.akamai.com/legal/privacy-and-policies/manage-cookie-preferences" rel="noopener noreferrer"&gt;Akamai: cookies and similar technologies on akamai.com (_abck, bm_sz, ak_bmsc, bm_sv)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://blackhat.com/docs/eu-17/materials/eu-17-Shuster-Passive-Fingerprinting-Of-HTTP2-Clients-wp.pdf" rel="noopener noreferrer"&gt;Akamai white paper: Passive Fingerprinting of HTTP/2 Clients (Black Hat EU 2017)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://brightdata.com/blog/web-data/bypass-akamai-bot-detection" rel="noopener noreferrer"&gt;Bright Data: Akamai bot detection (_abck and ak_bmsc lifetimes)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://pkg.go.dev/github.com/Hyper-Solutions/akamai-sdk-go" rel="noopener noreferrer"&gt;Hyper Solutions: akamai-sdk-go docs (bm_sz as sensor input, cookie validity)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://scrappey.com/qa/web-automation/how-akamai-detects-bots" rel="noopener noreferrer"&gt;Scrappey: how Akamai detects bots (IP changes, IP reputation)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://scrapfly.io/blog/posts/akamai-bot-manager-understanding-abck-cookies-and-sensor-data" rel="noopener noreferrer"&gt;Scrapfly: Akamai Bot Manager, _abck cookies and sensor data&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can you bypass Akamai Bot Manager?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes, by getting a validated cookie jar (_abck, bm_sz, ak_bmsc) and replaying it from the same IP, the same User-Agent and a Chrome-like TLS client. You can earn the cookies with a real browser, your own sensor generator or a solver API. NSLSolver's Akamai API is in beta.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the Akamai _abck cookie?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;_abck is Akamai Bot Manager's main cookie. Its state reflects whether the sensor data was accepted, and protected endpoints only let requests through when it is validated. Akamai does not document its format; public write-ups read ~-1~ in the second field as not validated.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Akamai sensor_data?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;sensor_data is the encrypted payload Akamai's first-party sensor script builds from browser, device and behaviour signals and POSTs back to the site. When a post is accepted, Akamai updates _abck to a validated state.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why does python requests get 403 on Akamai sites?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Because it never runs the sensor, so _abck is never validated, and because its TLS and HTTP/2 fingerprint does not match a browser. Get validated cookies first, then replay them with a Chrome-impersonating client such as curl_cffi.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is there an Akamai solver API?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. NSLSolver's Akamai API takes the page url, your user_agent and a proxy (all required) and returns the cookies, including _abck, bm_sz and ak_bmsc. It is in beta and costs $2.00 per 1,000 successful solves.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does NSLSolver use a browser to solve Akamai?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;No. Solving is server-side and request-based: the solver fetches the page through your proxy, runs the site's sensor script in an isolated JavaScript environment and posts the sensor data, with no browser involved.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I reuse Akamai cookies on another proxy?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Not reliably. The cookies are bound to the exit IP that earned them. Keep one cookie jar per sticky IP and solve again when the IP changes or the cookie gets burned.&lt;/p&gt;

&lt;p&gt;If you'd rather not maintain a solver yourself, &lt;a href="https://nslsolver.com/solutions/akamai" rel="noopener noreferrer"&gt;NSLSolver&lt;/a&gt; returns validated Akamai cookies from a single REST call.&lt;/p&gt;

</description>
      <category>webscraping</category>
      <category>security</category>
      <category>python</category>
      <category>node</category>
    </item>
    <item>
      <title>cf-turnstile-response invalid: Why Your Turnstile Token Is Rejected and How to Fix It</title>
      <dc:creator>NSLSolver Team</dc:creator>
      <pubDate>Tue, 01 Dec 2026 18:32:51 +0000</pubDate>
      <link>https://dev.to/nslsolver/cf-turnstile-response-invalid-why-your-turnstile-token-is-rejected-and-how-to-fix-it-45m7</link>
      <guid>https://dev.to/nslsolver/cf-turnstile-response-invalid-why-your-turnstile-token-is-rejected-and-how-to-fix-it-45m7</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://nslsolver.com/blog/cf-turnstile-response-invalid" rel="noopener noreferrer"&gt;nslsolver.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;cf-turnstile-response is the form field that carries Cloudflare Turnstile's one-time token. "Required" means the field reached the server empty; "invalid" means Cloudflare's siteverify rejected the token.&lt;/p&gt;

&lt;p&gt;Fix an empty field by rendering the widget inside the form and sending its token on submit; fix a rejected token by verifying it once, within 300 seconds, with the secret key of the same widget. The table below maps each message to its cause and fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick answer: what your error message means
&lt;/h2&gt;

&lt;p&gt;Form plugins and frameworks word the same two failures differently: either the token never reached your server, or Cloudflare's siteverify rejected it. Find your exact message below.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Message&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;th&gt;Fix&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;The cf-turnstile-response field is required.&lt;/td&gt;
&lt;td&gt;The token never reached your server.&lt;/td&gt;
&lt;td&gt;The hidden cf-turnstile-response input was missing or empty on submit: the widget did not render (CSP, ad blocker, missing api.js), sits outside the &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt;, or a JavaScript submit dropped it. Add turnstile.getResponse() to the payload and block submit until the callback fires.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Error! Turnstile token required / Turnstile token missing / Please complete the captcha&lt;/td&gt;
&lt;td&gt;Same cause: the field was empty.&lt;/td&gt;
&lt;td&gt;Usually the visitor submitted before the challenge finished, or a caching or optimization plugin deferred the Turnstile script. Exclude challenges.cloudflare.com from JS deferral and minification.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Invalid Turnstile captcha response. / Error! Invalid Turnstile token&lt;/td&gt;
&lt;td&gt;siteverify returned success: false.&lt;/td&gt;
&lt;td&gt;Read the error-codes array: timeout-or-duplicate (token older than 300 s or verified twice), invalid-input-secret (secret from another widget or not loaded from env), invalid-input-response (malformed or truncated token).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Incorrect or missing Turnstile token&lt;/td&gt;
&lt;td&gt;The site's Turnstile check failed or never ran.&lt;/td&gt;
&lt;td&gt;Site owners: same causes as the two messages above (empty field or rejected token). Visitors seeing it on a shop or login page: reload the page, wait for the check to finish before clicking, and disable VPNs, ad blockers or privacy extensions that block challenges.cloudflare.com.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Invalid challenge response&lt;/td&gt;
&lt;td&gt;The challenge token was rejected server-side.&lt;/td&gt;
&lt;td&gt;Usually an expired or reused token, or a sitekey and secret that come from different Turnstile widgets. Check the error-codes returned by siteverify.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Incorrect Turnstile response. Try the verification again.&lt;/td&gt;
&lt;td&gt;The token was rejected, usually because it expired.&lt;/td&gt;
&lt;td&gt;The form stayed open more than 5 minutes or the request was retried. Call turnstile.reset() in an expired-callback and verify each token exactly once.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Turnstile validation failed / Turnstile verify failed&lt;/td&gt;
&lt;td&gt;Your server could not get a success from siteverify.&lt;/td&gt;
&lt;td&gt;Besides the causes above, check that your server can reach challenges.cloudflare.com (firewall, IPv6, proxy), that you POST form-encoded or JSON with both secret and response, and that hostname and action in the reply match your site.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cf-turnstile-response is empty in Selenium, Playwright or requests&lt;/td&gt;
&lt;td&gt;Automation never ran a real challenge.&lt;/td&gt;
&lt;td&gt;A script that posts the form without a browser cannot produce a token. Get one from a solver API (type turnstile, site_key + url) and send it as cf-turnstile-response within 300 seconds.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This error has an entry in our &lt;a href="https://nslsolver.com/errors#turnstile-invalid-input-response" rel="noopener noreferrer"&gt;anti-bot error-code reference&lt;/a&gt;, next to every other Cloudflare, Turnstile, Kasada, Akamai and reCAPTCHA error.&lt;/p&gt;

&lt;p&gt;Quick fix&lt;/p&gt;

&lt;p&gt;A Turnstile token is the value of the cf-turnstile-response field. Instead of waiting for the widget in a browser, request a valid token with one POST and submit it with your form.&lt;/p&gt;

&lt;p&gt;before → after&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# before: drive a browser and wait for the widget&lt;/span&gt;
&lt;span class="n"&gt;driver&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;URL&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sleep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;token&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;driver&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;find_element&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;By&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;NAME&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"cf-turnstile-response"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get_attribute&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"value"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# after: one POST, no browser&lt;/span&gt;
&lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://api.nslsolver.com/solve"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"X-API-Key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                  &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"turnstile"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"site_key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;SITE_KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;URL&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;token&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"token"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;  &lt;span class="c1"&gt;# send it as cf-turnstile-response&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No proxy needed: Turnstile is solved proxyless unless you pass one.&lt;/p&gt;

&lt;p&gt;$0.80 per 1,000 solves · failed solves are free · no browser&lt;/p&gt;

&lt;p&gt;&lt;a href="https://nslsolver.com/auth/register" rel="noopener noreferrer"&gt;Get your API key&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Free credit with Google, Gmail or Proton sign-up · no card&lt;/p&gt;

&lt;h2&gt;
  
  
  What the cf-turnstile-response field actually is
&lt;/h2&gt;

&lt;p&gt;When the Turnstile widget runs in the browser, it performs a lightweight challenge and produces a one-time token. That token is written into a hidden form input named cf-turnstile-response (and is also passed to your JavaScript callback). It is the proof that a real browser solved the challenge.&lt;/p&gt;

&lt;p&gt;Your backend must take that token and verify it server-side by POSTing it to &lt;a href="https://challenges.cloudflare.com/turnstile/v0/siteverify" rel="noopener noreferrer"&gt;https://challenges.cloudflare.com/turnstile/v0/siteverify&lt;/a&gt; together with your secret key. Cloudflare returns JSON: { "success": true, ... } on success, or { "success": false, "error-codes": [...] } when the token is rejected. A 'cf-turnstile-response invalid' problem is really a non-success siteverify response, and the error-codes array tells you exactly why.&lt;/p&gt;

&lt;h2&gt;
  
  
  "The cf-turnstile-response field is required": the token never reached your server
&lt;/h2&gt;

&lt;p&gt;This message is different from an invalid token: it means the request arrived with no cf-turnstile-response value at all, so your validation layer (Laravel's required rule, a Django or Express form validator, a WordPress plugin) rejected it before siteverify was even called. Nothing is wrong with Cloudflare — the browser simply did not send the field.&lt;/p&gt;

&lt;p&gt;The widget writes the token into a hidden input named cf-turnstile-response inside its container. If that input is missing or empty when the form is submitted, you get this error. Work through these causes in order:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  The widget never rendered: the api.js script is blocked (a Content-Security-Policy without &lt;a href="https://challenges.cloudflare.com" rel="noopener noreferrer"&gt;https://challenges.cloudflare.com&lt;/a&gt; in script-src and frame-src, an ad blocker, or the script tag missing on that page). Open DevTools and check that the iframe exists.&lt;/li&gt;
&lt;li&gt;  The widget is outside the &lt;code&gt;&amp;lt;form&amp;gt;&lt;/code&gt;: the hidden input is only submitted if the Turnstile container sits inside the form element you post. Move the div.cf-turnstile inside the form.&lt;/li&gt;
&lt;li&gt;  The form is submitted by JavaScript: a fetch/axios call that builds JSON by hand, or new FormData() on a different element, silently drops the hidden input. Read the token with turnstile.getResponse() and add it to the payload explicitly.&lt;/li&gt;
&lt;li&gt;  The user submitted before the challenge finished: disable the submit button until the callback fires, then enable it.&lt;/li&gt;
&lt;li&gt;  A custom field name: if you set data-response-field-name (or response-field: false) on the widget, the backend must read that name instead.&lt;/li&gt;
&lt;li&gt;  Single-page apps: after a client-side route change the widget is not re-rendered. Call turnstile.render() on mount and turnstile.remove() on unmount.&lt;/li&gt;
&lt;li&gt;  Automation with no browser: a scraper or script that POSTs the form never runs the widget, so the field is empty. You need a real token — see the NSLSolver section below.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Root cause #1: the token is expired or already used (timeout-or-duplicate)
&lt;/h2&gt;

&lt;p&gt;This is by far the most frequent reason a turnstile token is invalid. Turnstile tokens are single-use and short-lived: each token is valid for about 300 seconds (5 minutes) and can be verified exactly once. Submit it twice, or submit it after the window closes, and siteverify replies with error-codes: ["timeout-or-duplicate"].&lt;/p&gt;

&lt;p&gt;It happens more than you'd expect in the real world: a user opens a form, gets distracted, attaches a large file, or submits over a slow network, and the token expires in flight. Or your code retries a failed request and accidentally re-verifies the same token. Or a double-clicked submit button fires two requests.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Refresh the widget after it expires using the JavaScript callback turnstile.reset() (or render with a fresh widget) so the user always submits a current token.&lt;/li&gt;
&lt;li&gt;  Verify each token exactly once. Never call /siteverify twice with the same cf-turnstile-response.&lt;/li&gt;
&lt;li&gt;  Disable the submit button after the first click to prevent duplicate POSTs.&lt;/li&gt;
&lt;li&gt;  If a form can sit open a long time, set an expired-callback that re-runs the challenge before submission.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Root cause #2: sitekey and secret mismatch (invalid-input-secret)
&lt;/h2&gt;

&lt;p&gt;Your frontend renders the widget with a public sitekey; your backend verifies with a private secret key. These two must belong to the same Turnstile widget in the same Cloudflare account. If you mix a sitekey from one widget with the secret of another, or you swapped staging and production keys, every verification fails. The classic siteverify error code here is invalid-input-secret (and missing-input-secret when the secret is empty).&lt;/p&gt;

&lt;p&gt;Fix it by opening the Cloudflare dashboard, finding the exact widget, and copying both the sitekey and the secret from that same widget. Store the secret in an environment variable and confirm it is actually loaded at runtime (a missing env var is a surprisingly common culprit). Make sure you are sending the secret as the secret form field, not the sitekey.&lt;/p&gt;

&lt;h2&gt;
  
  
  Root cause #3: hostname, action, or cData mismatch
&lt;/h2&gt;

&lt;p&gt;A Turnstile widget is bound to the domains you configured for it. If the page that rendered the widget is on a hostname that the widget does not allow, the token will be rejected. The siteverify response includes a hostname field, plus action and cdata fields, that you can and should compare against what you expect.&lt;/p&gt;

&lt;p&gt;Three mismatches to check. First, hostname: ensure the domain serving the widget (including subdomains and localhost during development) is on the widget's allowed list, and compare the returned hostname to your own domain. Second, action: if you set a data-action on the widget, verify the action returned by siteverify matches; treat a mismatch as a failure. Third, cData: if you pass custom data via data-cdata, validate the returned cdata. These checks also harden you against token reuse across endpoints. On the client, a wrong sitekey or an unauthorized domain shows up as a 110xxx error (110100, 110110, 110200), not as 600010.&lt;/p&gt;

&lt;h2&gt;
  
  
  Root cause #4: dummy testing keys, idempotency, and clock skew
&lt;/h2&gt;

&lt;p&gt;A few subtler causes catch experienced developers off guard.&lt;/p&gt;

&lt;p&gt;Testing sitekeys in production: Cloudflare's dummy keys (for example the always-passes sitekey 1x00000000000000000000AA) generate a dummy token. A real production secret key will reject that dummy token, and vice versa, a test secret rejects real tokens. If you left a testing key in your build, swap it for your real widget's keys.&lt;/p&gt;

&lt;p&gt;idempotency_key reuse: siteverify accepts an optional idempotency_key so you can safely retry verifying the same token and get a cached result. But if you reuse the same idempotency_key for a different token, you get back the cached (old) result, which looks like a wrong or invalid response. Use a fresh idempotency_key per token, or omit it.&lt;/p&gt;

&lt;p&gt;Clock skew: token expiry is time-based, so a server clock that drifts can make fresh tokens look expired (or stretch the window incorrectly). Keep your server synced with NTP.&lt;/p&gt;

&lt;h2&gt;
  
  
  A quick triage checklist
&lt;/h2&gt;

&lt;p&gt;Before changing code, read the error-codes array from your siteverify response. It usually names the exact problem:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  timeout-or-duplicate -&amp;gt; token expired (over ~300s) or verified more than once. Get a fresh token; verify once.&lt;/li&gt;
&lt;li&gt;  invalid-input-response -&amp;gt; the cf-turnstile-response is malformed, empty, or expired in transit. Confirm the field is actually being sent.&lt;/li&gt;
&lt;li&gt;  invalid-input-secret / missing-input-secret -&amp;gt; wrong or absent secret. Re-copy the secret for the matching widget.&lt;/li&gt;
&lt;li&gt;  Client shows 110xxx -&amp;gt; configuration issue (invalid sitekey, domain not allowed). Client shows 300xxx or 600xxx (such as 600010) -&amp;gt; the challenge itself failed because Cloudflare saw bot-like signals: retry, update the browser, disable extensions, try another network. See the full Turnstile error-code list.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  When you need a valid token programmatically: NSLSolver
&lt;/h2&gt;

&lt;p&gt;Everything above fixes a legitimate, human-facing integration. But if you are automating, running a scraper, a bot, an integration test against a third-party site, or load tooling, there is no human to solve the widget, and you cannot mint your own valid cf-turnstile-response. You need a service that drives a real challenge and returns a fresh, single-use token you can submit.&lt;/p&gt;

&lt;p&gt;That is what NSLSolver does. You POST the target's sitekey and URL to /solve, and it returns a valid Turnstile token you use as the cf-turnstile-response value, just as a browser would. Tokens come back in roughly 250ms on average with a 99.9% success rate, and failed solves are not charged. Turnstile solving is $0.80 per 1,000 solves, pay-as-you-go, and sign-ups with Google, Gmail or Proton get $0.10 of free credit (about 125 Turnstile solves), no card and no crypto required to start.&lt;/p&gt;

&lt;p&gt;Because every token NSLSolver returns is fresh, you sidestep the single-use and expiry problems entirely, as long as you submit it promptly (within the ~300s window) and exactly once.&lt;/p&gt;

&lt;p&gt;Here is a complete Python example that solves the Turnstile challenge and then submits the token to the target form:&lt;/p&gt;

&lt;p&gt;solve_turnstile.py&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;

&lt;span class="no"&gt;NSL_API_KEY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"nsl_YOUR_API_KEY"&lt;/span&gt;
&lt;span class="no"&gt;TARGET_URL&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"https://target-site.com"&lt;/span&gt;
&lt;span class="no"&gt;SITE_KEY&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"0x4AAAAAAA..."&lt;/span&gt;  &lt;span class="c1"&gt;# the data-sitekey on the target page&lt;/span&gt;

&lt;span class="c1"&gt;# 1) Ask NSLSolver for a fresh, valid Turnstile token&lt;/span&gt;
&lt;span class="n"&gt;resp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="s2"&gt;"https://api.nslsolver.com/solve"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"X-API-Key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;NSL_API_KEY&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"turnstile"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"site_key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;SITE_KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;TARGET_URL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;120&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;raise_for_status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;token&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"token"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;  &lt;span class="c1"&gt;# e.g. "0.AAAA..."&lt;/span&gt;

&lt;span class="c1"&gt;# 2) Submit the token as the cf-turnstile-response value&lt;/span&gt;
&lt;span class="c1"&gt;# Do this promptly (within ~300s) and only once per token.&lt;/span&gt;
&lt;span class="n"&gt;submit&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{TARGET_URL}/login"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"username"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"me@example.com"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"password"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"secret"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"cf-turnstile-response"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;submit&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status_code&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;submit&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Skip the workarounds&lt;/p&gt;

&lt;h2&gt;
  
  
  Solve Cloudflare Turnstile with NSLSolver
&lt;/h2&gt;

&lt;p&gt;One REST call returns a fresh token (or cookies). Pay only for successful solves, with no browser to babysit.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://nslsolver.com/auth/register" rel="noopener noreferrer"&gt;Start free&lt;/a&gt; &lt;a href="https://nslsolver.com/solutions/cloudflare-turnstile" rel="noopener noreferrer"&gt;View the Cloudflare Turnstile solver&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Free credit with Google, Gmail or Proton · no credit card · no crypto to start · &lt;a href="https://nslsolver.com/pricing" rel="noopener noreferrer"&gt;See pricing&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;See also: the &lt;a href="https://nslsolver.com/solutions/cloudflare-turnstile" rel="noopener noreferrer"&gt;Cloudflare Turnstile solver API&lt;/a&gt; for the full integration and pricing, or — if you are hitting a hard 403 rather than a rejected token — &lt;a href="https://nslsolver.com/blog/cloudflare-403-forbidden-python" rel="noopener noreferrer"&gt;Cloudflare 403 in Python&lt;/a&gt;. Seeing a numeric widget error such as 110200, 200100 or 600010 instead? Check the &lt;a href="https://nslsolver.com/blog/cloudflare-turnstile-error-codes" rel="noopener noreferrer"&gt;Turnstile error code reference&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>cloudflare</category>
      <category>webdev</category>
      <category>python</category>
      <category>security</category>
    </item>
  </channel>
</rss>
