NEWStandard createTask and in.php APIs. Change the address and you are connected.View API docs
GATESOLVER

Glossary

Proof-of-work CAPTCHA

A proof-of-work CAPTCHA asks the visitor's device, not the visitor, to do a small amount of computation before a request is accepted.

Definition

The idea comes from anti-spam research in the 1990s and later from cryptocurrency: make each request cost the sender a little computing time, so sending one is cheap but sending millions is expensive. A proof-of-work challenge gives the browser a random value and a difficulty target. The browser's script searches for a number (a nonce) that, when combined with the value and hashed, produces a result below the target, for example a hash that starts with a certain number of zero bits. Finding it takes many attempts; checking it takes one hash on the server.

The visitor sees a short progress indicator or nothing at all. There is no image, no checkbox and nothing to read, which makes the approach friendly to accessibility and privacy.

A minimal example

// Browser side: find a nonce so that sha256(seed + nonce) starts with "0000"
async function work(seed, prefix = "0000") {
  const enc = new TextEncoder();
  for (let n = 0; ; n++) {
    const buf = await crypto.subtle.digest("SHA-256", enc.encode(seed + n));
    const hex = [...new Uint8Array(buf)]
      .map((b) => b.toString(16).padStart(2, "0")).join("");
    if (hex.startsWith(prefix)) return n;
  }
}

The server then hashes seed + n once and checks the prefix. Real products tune difficulty per visitor and bind the seed to a timestamp so answers cannot be stored and reused.

Where you meet it

Several open source and commercial widgets are built on this idea, and larger bot protection systems use proof-of-work as one ingredient among others. Cloudflare's challenge platform, for instance, can include computational steps alongside its browser checks, and some self-hosted forum and wiki software ships with a hash based challenge as a default spam filter. Often the only visible sign is a spinner for a second or two and a script with "pow", "work" or "challenge" in its name.

Strengths and limits

  • Strength: no puzzle for people, so no accessibility barrier and no data collection about the visitor.
  • Strength: it raises the cost of mass requests in a measurable way.
  • Limit: a server can compute hashes far faster than a phone, so difficulty that slows a bot farm also slows mobile visitors.
  • Limit: it proves only that work was done, not that a person was present, so sites usually combine it with rate limits or reputation.

Handling it in automation

Because the work is the whole test, a real browser engine passes on its own: Playwright, Puppeteer and Selenium run the script, wait a moment and continue. Plain HTTP clients need either a JavaScript runtime to execute the page's script or a reimplementation of the puzzle in your language. For an open, documented scheme, reimplementing is usually a few lines; for obfuscated scripts, running them in a browser is safer.

When proof-of-work is one step inside a larger product, as with a Cloudflare managed challenge, you cannot handle that step in isolation; the whole challenge has to be passed, which is what the Cloudflare Challenge task does through your proxy, returning a clearance cookie.

Cost on your side

Each solve spends your CPU time. At low volume this is negligible. At scale, it shows up as higher compute bills and slower throughput, which is exactly the effect the site intended. Budget for it, cache the pages you have already fetched, and keep request rates reasonable. That approach is respectful of the site and usually cheaper for you as well.

Is it really a CAPTCHA?

Strictly, no: it does not tell humans from computers, it tells cheap requests from expensive ones. In everyday language it sits in the same family, because it guards the same forms and solves the same problem for site owners. The CAPTCHA entry places it among the other families.

Common questions

Does a proof-of-work CAPTCHA ask me to do anything?

No. Your browser does the work in the background, usually within a second or two, and the form continues.

Can a headless browser pass proof-of-work?

Yes, if the challenge is pure computation. If it is part of a larger bot check, other signals still apply.

Why is it slow on my phone?

Difficulty is set to make mass requests expensive, and phones compute hashes far slower than desktops or servers.

Can I solve the puzzle without a browser?

For documented schemes you can reimplement the hash search in your own code; obfuscated ones are easier to run in a browser.

Does GateSolver have a proof-of-work task?

Not as a standalone type. When the work is part of a Cloudflare challenge, the challenge task handles it as a whole.

Keep reading