Set up your site key
In the hCaptcha dashboard, open Sites and choose a key dedicated to this form. Turn on domain allowlisting and add the hostname where the CAPTCHA runs. For an iframe embed, use the form’s hostname inside the iframe. Use a separate key for a staging form when possible.
Save and publish
In Wiztrom, open Forms, then Spam protection. Add the exact origins where the form runs, including the scheme. Choose hCaptcha, set verification to Report only, and save your site key and secret. Use the public site key on your webpage. Hosted forms and embeds load the widget for you. For your own HTML form, copy its snippet from Spam protection or add the hCaptcha script once and the widget inside your form.
<script src="https://js.hcaptcha.com/1/api.js?recaptchacompat=off" async defer></script>
<!-- Inside your form -->
<div class="h-captcha" data-sitekey="YOUR_SITE_KEY"></div>Send the widget token
The widget sets h-captcha-response when the visitor completes the challenge. Keep that field if you submit with FormData. If you build a JSON request, include the token under the same name. Reset the widget before retrying so it can issue a fresh token.
Test before switching to Enforce
Run Verify your form from the published link, embed, or external page. Check the result and find the received response in Inbox. If verification fails, check the allowed hostname and make sure the site and secret keys are from the same hCaptcha account. After the test passes, switch to Enforce and test again.