Live Demo
See the widget in action
Protected sign in form
Demo only - nothing is submitted.
Challenge starts on your first click, tap, or keystroke.
Form protected
end-to-end (no UI prompt)
Phase breakdown
- Challenge issued
- - ms
- PoW solved
- - ms
Computation
- SHA-256 hashes
- -
- Hash rate
- -
- Difficulty target
- -
Appended hidden field
Verify captchaapi_response server-side with a POST to /verify using your project's secret key.
What happens here
-
1
Challenge fetched
On your first interaction (click, tap, or keystroke), the widget calls
/challengein the background and receives a token with required difficulty. -
2
PoW solved in a Web Worker
The worker iterates nonces, hashing each with the token until the result clears the target.
-
3
Response assembled
The widget combines the token and solution into a single
captchaapi_responsevalue. Nothing is checked in the browser. -
4
Hidden field injected on submit
On submit,
captchaapi_responseis appended to your form. Your backend verifies it with one POST to/verifyusing your secret key.
Status panel states
idle
Fetch started
Preparing protection…
solving
Worker running
Verifying form protection…
ready
Solution found
Protection active
error
Missing key / failure
Verification unavailable
rate_limited
429 from /challenge or /verify
Please try again in {N} seconds
Live countdown driven by the server's retry_after header.
Ready to integrate?
Add data-captcha to your form and load the script. That's it.