Google reCAPTCHA V3

reCAPTCHA V3 checks each visitor in the background, with nothing for them to click. Submissions it judges to be from bots go to your form's Spam tab. Setting it up takes three steps.

Setup

1. Add your secret key

Enter your Google reCAPTCHA secret key under reCAPTCHA Secret when you create the form. For an existing form, open it in your dashboard and click Settings.

2. Add the form attributes

Add the has-recaptcha-v3 attribute to your form tag, and your site key as recaptcha-site-key.

<form 
    ... 
    has-recaptcha-v3
    recaptcha-site-key="YOUR_SITE_KEY"
>
    ...
</form>

3. Add the reCAPTCHA script

Add Google's reCAPTCHA script, with your site key, to your page's head.

<script src="https://www.google.com/recaptcha/api.js?render=YOUR_SITE_KEY"></script>

Example

reCAPTCHA V3 has nothing to show in the form itself. The reCAPTCHA badge in the bottom-right corner of this page shows that the form below is protected.

How the Check Works

Your form gets a token from Google when a visitor submits it, and KwesForms asks Google what that token is worth. Google answers with a score from 0.0 for a bot to 1.0 for a person.

flowchart TD
    accTitle: How a reCAPTCHA V3 check is done and how it can end
    accDescr: When a visitor presses Submit, your form gets a token from Google with your site key and sends it with the submission. KwesForms asks Google about the token with your secret key. A score of 0.8 or higher passes, and the submission goes on to the other spam checks. A score below 0.8, or a token Google rejects, sends the submission to the Spam tab. If Google gives no verdict the check is skipped, and the submission goes on to the other spam checks.

    submit([Visitor presses Submit]):::start --> token["Your form gets a token from Google<br/>with your <b>site key</b>"]
    token --> send[The token is sent with the submission]
    send --> verify["KwesForms asks Google about the token<br/>with your <b>secret key</b>"]
    verify --> verdict{{What does Google answer?}}:::ask
    verdict -- "A score of 0.8<br/>or higher" --> passed["<b>Passed</b><br/>On to the other<br/>spam checks"]:::good
    verdict -- "A score below 0.8,<br/>or a rejected token" --> caught["<b>Caught</b><br/>Goes to the<br/><b>Spam</b> tab"]:::bad
    verdict -- "No verdict" --> skipped["<b>Skipped</b><br/>On to the other<br/>spam checks"]:::warn

Google rejects a token that is made up, has expired or was used before. It gives no verdict when it can't be reached or when your secret key is wrong, and the check is then skipped so that no real submission is lost. If reCAPTCHA never catches anything, check your secret key.

The visitor sees your form's success message in every case.

Notice anything wrong in our docs? Let us know.