Set up Google reCAPTCHA v3

Use a Google score-based website key for your hosted form or existing site and test it before enforcement.

Create the website key

In Google Cloud, create a score-based website key and keep domain validation enabled. Register the hostname where the CAPTCHA runs. Use your own website hostname for an HTML form or the form’s hostname inside the iframe for a hosted embed. Copy the site key and its legacy secret for use with a third-party service.

Add it to your form

Open Forms, then Spam protection. Add the exact origins where the form runs, including the scheme. Choose Google reCAPTCHA v3, set verification to Report only, and save the site key and secret. Review the minimum score for your form. Keep the secret in Wiztrom and use the public site key in the browser.

Publish the CAPTCHA

Wiztrom loads reCAPTCHA on hosted forms and embeds. On your own site, copy the HTML from Spam protection and use your form’s action from that snippet. If you supply your own JavaScript, call grecaptcha.execute with the site key and that action when the visitor submits. Send the resulting token in g-recaptcha-response with the form fields, whether you use FormData or JSON. Obtain a fresh token for every attempt and follow Google’s notice requirements.

Run a published-page test

Open Verify your form and submit a test from the page your visitors will use. Check the CAPTCHA result and follow the receipt to Inbox. If the check fails, review the registered hostname, action, minimum score, and saved secret. Check Google’s usage limits if the result reports a verification error. Once the check passes, switch to Enforce and repeat the test.

References