Spam protection
hCaptcha
hCaptcha is a CAPTCHA service that presents a challenge to visitors and is positioned as a privacy-focused alternative to Google's reCAPTCHA.
Also called: h-captcha, hCaptcha widget
hCaptcha does the same job as reCAPTCHA: it puts a challenge in front of a form so that scripts have a hard time getting through. Many sites switch to it, or to Cloudflare Turnstile, because they want a provider other than Google, or because they want to limit what is shared about their visitors.
How it works in a form
You register your site with hCaptcha to get a site key and a secret key. The page loads hCaptcha’s script and renders a widget with your site key inside the form. When the visitor passes the challenge, the script adds a hidden input called h-captcha-response to the form. That value is the token.
Verify the token on the server
The server sends the token and the secret key to hCaptcha’s verification endpoint and accepts the form only when the answer is a success. A check done only in the visitor’s browser can be skipped by posting straight to the form endpoint.
Choosing between providers
The choice usually comes down to friction, privacy and what you already use. Interactive challenges ask more of the visitor and cost some completed forms. Whichever you choose, a honeypot field next to it catches the simple bots before they ever reach the challenge.
In StaticForm
Pick hCaptcha as the CAPTCHA type in the form settings and enter the secret key. With the widget inside your form, the h-captcha-response token is sent with the submission and verified before it is accepted. The JavaScript helper supports it with captcha: { type: 'hcaptcha' }: it loads the script, picks up the token and resets the widget after every submission so the visitor can submit again.
Learn more
Related terms
- CAPTCHAA CAPTCHA is a challenge that separates people from automated scripts, used to stop bots from submitting forms, creating accounts or scraping a site.
- reCAPTCHAreCAPTCHA is Google's CAPTCHA service. v2 shows a checkbox, v3 scores visitors invisibly from 0.0 to 1.0, and Enterprise is the Google Cloud version.
- Cloudflare TurnstileCloudflare Turnstile is a CAPTCHA alternative from Cloudflare that checks visitors with a short background challenge, so most people never have to solve a puzzle.