Configure your Google reCAPTCHA to ensure only humans can submit forms and click buttons
Google reCAPTCHA v3 is a service provided by Google that returns a user score without any interaction from the user. This can integrated with buttons to prevent bots from clicking the button on your website without a human present.
1. Go to the reCAPTCHA add site page
2. Create a new site with version reCAPTCHA v3 and the domain
Click to expand
3. Copy the site and secret key
click to expand
4. Paste the site key in the button reCAPTCHA field
click to expand
5. Configure the server-side integration on your backend
The exact steps will depend on your backend - see Google's reference for detailed instructions.
The user's reCAPTCHA response can be obtained in the API Pane with the recaptchaToken key.
Make a POST request to with the secret (secret key) and response (user response) parameters to retrieve the score in a JSON format:
"success": true|false, // whether this request was a valid reCAPTCHA token for your site
"score": number // the score for this request (0.0 - 1.0)
"action": string // the action name for this request (important to verify)
"challenge_ts": timestamp, // timestamp of the challenge load (ISO format yyyy-MM-dd'T'HH:mm:ssZZ)
"hostname": string, // the hostname of the site where the reCAPTCHA was solved
"error-codes": [...] // optional

Validation Example

click to expand
Copy link
Edit on GitHub