With Wix Headless, you can add reCAPTCHA protection to your member registration and login forms to help prevent fraud and abuse. reCAPTCHA verifies that interactions are coming from real visitors rather than automated bots.
This article explains how to implement reCAPTCHA with member authentication using the REST API.
You'll learn how to:
Use a 3rd-party library like Google reCAPTCHA to implement the reCAPTCHA or choose to implement it yourself using Google's APIs.
You can choose to always require reCAPTCHA verification or only require it for suspected bots.
Important
When implementing a reCAPTCHA:
'6Ld0J8IcAAAAANyrnxzrRlX1xrrdXsOmsepUYosy'
'6LdoPaUfAAAAAJphvHoUoOob7mx0KDlXyXlgrx5v'
For example, implement a visible reCAPTCHA widget with Google reCAPTCHA:
Call the Register V2
or Login V2
endpoint with the appropriate reCAPTCHA token returned to your reCAPTCHA implementation.
When always requiring reCAPTCHA verification, send the token using the captcha_tokens.Recaptcha
property.
When only requiring reCAPTCHA verification for suspected bots, send the token using the captcha_tokens.InvisibleRecaptcha
property.