# How CAPTCHA solving services work

> A CAPTCHA solving service takes the site key and page URL of a CAPTCHA, solves it on its own side with human workers or machine learning models, and returns the token. The bot submits that token with its request. The site only catches this if its server checks more than success: hostname, action, score, token age, single use and the session the token belongs to.

Category: CAPTCHA and challenges. Level: Intermediate. Updated: 2026-11-24.
Canonical page: https://stopbots.io/learn/captcha/how-captcha-solvers-work/

Solving services sell completed CAPTCHAs in bulk. They work because a token from reCAPTCHA, hCaptcha or Turnstile is a bearer token: whoever holds it can submit it, and the vendor's verification endpoint confirms only that the token is genuine, unexpired and unused. It does not confirm which browser solved it.

## What kinds of CAPTCHA solvers are there?

There are two kinds, and many services sell both behind one API.

- Human solving farms. Workers paid per solve complete CAPTCHAs from a work queue, and the service passes the result back to the bot. People handle a new puzzle type the day it appears but are slower than a model. The setup resembles [click farms](https://stopbots.io/learn/ad-fraud/how-click-farms-work.md), with the labour sold through an API.
- Automated solvers. Machine learning models classify image tiles, read text, transcribe audio and find slider positions. They are faster and cheaper per solve, and they cover the puzzle types that are common enough to train for. Many services try a model first and send failures to people. [Can AI solve CAPTCHAs](https://stopbots.io/learn/captcha/can-ai-solve-captchas.md) covers the research.

## How does the token flow work?

1. The bot loads the target page, or reads it once, and takes the public site key and the page URL. The site key sits in a `data-sitekey` attribute, or in the script URL for reCAPTCHA v3.
2. It sends both to the service's API, sometimes with the expected action name and a proxy for the service to use.
3. The service loads the vendor's widget for that site key and URL, and a worker or model passes it. The vendor issues a token.
4. The service returns the token to the bot.
5. The bot puts the token in the field your form expects (`g-recaptcha-response`, `h-captcha-response` or `cf-turnstile-response`) and submits.
6. Your server sends the token to the vendor's siteverify endpoint and gets back `"success": true`.

The vendor saw a real solve, so the token is real. A valid token proves a puzzle was solved somewhere, not that this visitor solved it.

## How do you make solved tokens less useful?

Run these checks on your server after the siteverify call.

- Verify every token. On login, signup and checkout, treat a failed or timed-out verification as a failure.
- Check `hostname` against the host that served the form, and keep the domain restriction on your site key switched on in the vendor console.
- Check `action` (reCAPTCHA v3 and Turnstile). Give each form its own action name, so a token solved for the newsletter form fails on login.
- Check the score where you get one (reCAPTCHA v3, hCaptcha Enterprise). Solved tokens can carry good scores, so a high score is not proof. Use the score to decide when to ask for an extra step.
- Check age. Vendors expire tokens within minutes, but you can set a shorter limit by comparing `challenge_ts` with the current time, based on how long real users take on that form.
- Reject reuse. Vendors treat tokens as single use, but [Turnstile's documentation](https://developers.cloudflare.com/turnstile/get-started/server-side-validation/) notes that redemption tracking is eventually consistent, so repeats sent close together may pass. Keep your own record of redeemed tokens until they expire.
- Bind the token to the session. Turnstile lets you pass up to 255 characters of your own data (`cData`) when the widget renders and returns it from siteverify. Put an HMAC of the session ID there and compare it on the server. This kills pools of pre-solved tokens and tokens shared between sessions. A bot that copies your `cData` into its request to the solver still gets a matching token, so binding raises the cost of each solve without closing the route.
- Send `remoteip`. It is optional in all three APIs and gives the vendor one more input. hCaptcha also accepts a `sitekey` parameter, so a token issued for a different site key fails ([hCaptcha docs](https://docs.hcaptcha.com/)).

Render the widget with the action and the session tag:

```html
<div class="cf-turnstile" data-sitekey="YOUR_SITE_KEY" data-action="signup" data-cdata="SESSION_TAG"></div>
```

Then check everything on the server (Node.js 18 or later):

```js
import { createHmac } from "node:crypto";

const sessionTag = (sessionId) =>
  createHmac("sha256", process.env.CDATA_KEY).update(sessionId).digest("hex");

const MAX_AGE_MS = 120_000;

async function verifyTurnstile(token, { sessionId, ip, action, hostname, seen }) {
  const body = new URLSearchParams({ secret: process.env.TURNSTILE_SECRET, response: token, remoteip: ip });
  const res = await fetch("https://challenges.cloudflare.com/turnstile/v0/siteverify", { method: "POST", body });
  const data = await res.json();

  if (!data.success) return "failed";
  if (data.hostname !== hostname) return "wrong-hostname";
  if (data.action !== action) return "wrong-action";
  if (data.cdata !== sessionTag(sessionId)) return "other-session";
  if (Date.now() - Date.parse(data.challenge_ts) > MAX_AGE_MS) return "too-old";
  if (await seen(token)) return "reused";
  return "ok";
}
```

`seen` stores the token and reports whether it was already there, for example with Redis `SET token 1 NX EX 300`. The two-minute `MAX_AGE_MS` is a starting point. Log the result codes, because each one tells you which shortcut a bot tried.

## What does solver use look like in your logs?

- The time between widget render and token arrival is longer and more uniform than for your users.
- Requests carry a valid token but the session shows no page view, asset load or JavaScript beacon before the submit.
- Your own widget callback never fired. If your page script records when the widget hands over a token, a submission whose token never passed through that callback came from somewhere else.
- Many successful verifications come from one device fingerprint or a few IP ranges, each for a new account. [Browser fingerprinting](https://stopbots.io/learn/detection/what-is-browser-fingerprinting.md) is how you link them.
- A valid token arrives with signs of automation on the same request, such as a TLS fingerprint that does not match the claimed browser.

Kairal's blog has a second walk-through of [how CAPTCHA solvers work](https://www.kairal.io/blog/how-captcha-solvers-work/). For a side-by-side of what each vendor returns, see [reCAPTCHA vs hCaptcha vs Turnstile](https://stopbots.io/learn/captcha/recaptcha-vs-hcaptcha-vs-turnstile.md).

## Tools that help

_StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking._
- [Cloudflare Turnstile](https://www.cloudflare.com/application-services/products/turnstile/): a free challenge whose `action` and `cData` fields let you tie tokens to a form and a session.
- [Google reCAPTCHA](https://cloud.google.com/security/products/recaptcha): v3 returns a score and action for each token, useful for deciding when to ask for an extra step.
- [hCaptcha](https://www.hcaptcha.com/): siteverify accepts the expected site key, and the Enterprise tier adds a risk score.
- [Fingerprint](https://fingerprint.com/): device identification that links many token-carrying signups back to one device, with a free [open source library](https://github.com/fingerprintjs/fingerprintjs) for small sites.
- [Kairal](https://www.kairal.io/product/bot-protection/): checks device, network and behaviour signals on the same request as the token, with protection set per endpoint and invisible challenges in place of puzzles.

## Common questions

### Are CAPTCHA solvers illegal?

It depends on the jurisdiction and on what the tokens are used for. Using them to commit fraud, take over accounts or break access controls can fall under computer misuse and fraud laws, and the US BOTS Act covers getting around security measures on ticket sites. This is not legal advice.

### How long does a CAPTCHA token last?

reCAPTCHA tokens are valid for two minutes, Turnstile tokens for 300 seconds and hCaptcha tokens for 120 seconds by default, according to each vendor's documentation. All three treat tokens as single use.

### Can CAPTCHA be bypassed?

Yes: by solving it elsewhere and passing on the token, by AI models, or by skipping it entirely when the server does not verify tokens. Server-side verification closes the last route. The first two need checks beyond the CAPTCHA itself.

## Related

- [Can AI solve CAPTCHAs?](https://stopbots.io/learn/captcha/can-ai-solve-captchas.md)
- [reCAPTCHA vs hCaptcha vs Cloudflare Turnstile](https://stopbots.io/learn/captcha/recaptcha-vs-hcaptcha-vs-turnstile.md)
- [How do click farms work?](https://stopbots.io/learn/ad-fraud/how-click-farms-work.md)
- [What is browser fingerprinting and how does it work?](https://stopbots.io/learn/detection/what-is-browser-fingerprinting.md)
