A proof-of-work challenge asks the visitor’s browser to solve a small computational puzzle before it gets access. Finding the answer takes many attempts, while checking it takes one. A person barely notices the delay, but a bot sending millions of requests pays that cost millions of times.
The idea goes back to 1990s anti-spam research, including Adam Back’s Hashcash in 1997. It has returned in bot defense, especially against high-volume scraping and AI crawlers.
How it works
- The server issues a random challenge, signed and with an expiry, plus a difficulty.
- A script in the browser searches for a number, the nonce, such that a hash of the challenge and the nonce meets the difficulty, for example by starting with a set number of zero bits.
- The browser submits the nonce. The server checks it with one hash and makes sure the challenge hasn’t been used before.
- On success, the visitor gets a short-lived token or cookie.
Each extra bit of difficulty doubles the expected work, so the server can raise the price for suspicious traffic and keep it low for everyone else.
Limits
Proof of work prices automation. It doesn’t identify anyone: a solved puzzle proves the client spent compute, not that a human is present. Attackers with cheap cloud servers can pay the cost, and slow phones pay more than fast laptops. That’s why products combine it with rate limiting, fingerprinting and behavior signals.
It needs no visual puzzle. The W3C’s note on CAPTCHA accessibility lists proof of work among the non-interactive alternatives to visual tests.
Read why bot defenses make browsers do math, or compare options in the CAPTCHA provider and free bot protection rankings.