SurSolver

How to solve CaptchaFox

CaptchaFox ties its token to the IP that solved it, so the proxy matters as much as the sitekey. Here is how to spot the widget, find the key and submit the token without an IP mismatch.

Updated

$0.65 / 1K tasksCharged when a task is accepted

On this page

What is CaptchaFox and how to recognise it

CaptchaFox describes itself as a privacy-first, GDPR-compliant bot-protection captcha built and hosted in Europe. It is behavioural: it scores cursor movement, click timing and scroll patterns together with technical signals and network context such as IP reputation. Only suspicious sessions get a visible challenge, which can be a slide puzzle, a one-click confirmation or an audio fallback.

A page that uses it loads cdn.captchafox.com/api.js and has a container with the captchafox class and a data-sitekey attribute. The integration is reCAPTCHA-compatible: on success the widget adds a hidden input with the response token. The task takes no script-host parameter, so it targets the standard host above; a site that serves the widget from a different script host, as some large mail providers do, may reject the token.

The CaptchaFox widget inside a local demo signup form using the documented test sitekey, the widget checkbox shown in its checked state with the form fields around it

Solving it returns a token. It is single-use and short-lived, and the site verifies it server-side together with the IP it came from.

Why the token is tied to the solving IP

CaptchaFox makes one thing different from most widgets: the token is tied to the solving IP, so whatever submits the token must go out through the same proxy. In practice one sticky proxy session carries the whole flow: you create the task through the API with that proxy, then your own code submits the form through it. A proxy that rotates on every request breaks the match — use one session of at least five minutes per solve, and submit through it.

Plain HTTP clients, Playwright, Puppeteer and Selenium all work, as long as they exit through that same session; with browser automation, configure the browser to use that same proxy.

How to find the sitekey

CaptchaFox sitekeys start with sk_. There are three ways to find one.

Page source: press Ctrl+U and search for captchafox, sk_, data-key or CaptchaFox.init. You are looking for a container with data-sitekey or data-key, or a CaptchaFox.init({ key: "sk_..." }) call.

The captchafox container with its data-sitekey attribute holding the documented CaptchaFox test sitekey, selected in the DevTools Elements panel on a local demo signup form

Network tab, the most reliable: open DevTools, reload, filter requests by captchafox, challenge or init, and read the key from the query parameters or response of the requests to the CaptchaFox host. Console: try document.querySelector('[data-key]')?.dataset.key.

Send the exact page URL that shows the widget as websiteURL, together with the sitekey and your proxy. The key can be dynamic per session on some sites, so if solves suddenly fail, read it again from a fresh page load.

Where the token goes

The widget's hidden input is submitted as the POST field cf-captcha-response, so that is where the token goes on a standard integration. The site then verifies it with CaptchaFox.

The DevTools Network panel on the local demo form with the signup POST selected, its Payload tab showing the cf-captcha-response field holding the token

Custom integrations rename it. Complete the captcha once by hand and read the request in the Network tab: observed variants include cf_token, captcha_response, captchafox_token, a header such as X-Captcha-Token, or a field inside a JSON body. Use whatever name the site's own request uses.

Submit the token immediately and through the same proxy IP as the solve, with the user agent you sent in the task. Tokens live a few minutes and are single-use.

Common mistakes

The most common failure is a context mismatch: a different IP at submission fails verification with invalid-ip-match. Submit with the user agent you sent in the task, and pick a proxy in a geography that suits the target.

The second is a stale or replayed token. Tokens are single-use and expire within minutes, so poll and submit straight away. A replay comes back as timeout-or-duplicate.

The third is posting to the wrong place. If the standard field name does not work, sniff the real one from a manual solve instead of guessing.

The fourth is a stale sitekey: it can change per session, so re-extract it when a previously working integration starts failing.

Solve it with SurSolver

Send the page URL, the sitekey, your browser userAgent and your proxy to createTask with the task type CaptchaFoxToken, then poll getTaskResult until the status is ready. The solution carries the token. A task is charged when it is accepted, and failed tasks automatically return their original charge once; the accepted names and parameters are listed by the public catalog (GET /v1/task-types).

Examples in your language

The official client wraps createTask and polling in one solve call; each language tab is its Quick start with this captcha's request, and prints the solved token. The token is tied to the solving IP, so submit it from the same proxy. The Playwright tab launches the browser through your proxy, solves the task with that same proxy and submits the form on the page. Chromium cannot send credentials to a SOCKS5 proxy, so use an http:// proxy for browser runs.

quickstart.ts
npm install sursolver
import { SurSolver, TaskType } from 'sursolver';

const API_KEY = 'YOUR_API_KEY';
const USER_AGENT =
  'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36';

const client = new SurSolver(API_KEY);

const { solution } = await client.solve({
  type: TaskType.CaptchaFoxToken,
  websiteURL: 'https://example.com/login',
  websiteKey: 'YOUR_SITE_KEY',
  userAgent: USER_AGENT,
  proxy: 'http://user:password@203.0.113.10:8000',
});
console.log(solution.token);

The CaptchaFox solver API guide walks the same Playwright flow and the checks that separate a token rejection from an IP mismatch.

FAQ

How do I solve CaptchaFox captcha automatically?

Send the page URL, the sitekey, your browser user agent and your own proxy to CaptchaFoxToken, poll for the result and post the token in the cf-captcha-response field. Submit it through the same proxy IP, with the same user agent you sent in the task.

Where do I find the CaptchaFox site key?

Sitekeys start with sk_. Look in the page source for data-sitekey or data-key on the captchafox container, or for CaptchaFox.init({ key }). If that fails, filter the Network tab by captchafox and read the key from the request parameters.

Do I need a proxy for CaptchaFox?

Yes. The CaptchaFox task takes your proxy, and the token is bound to the IP that solved it, so the form submission must go out through the same session.

Why is my CaptchaFox token rejected?

Almost always a context mismatch: a different IP at submit time, a user agent that differs from the one sent in the task, an expired or replayed token, or the token sent in the wrong field. The site reports an IP mismatch as invalid-ip-match.

Why did my CaptchaFox solve suddenly stop working?

The sitekey can change per session or page load on some sites. Re-read the key from the Network tab of a fresh page load before blaming the solver.