The reCAPTCHA element helps protect your site from spam and automated abuse. Visitors must complete a challenge, like clicking a box or identifying objects in images, to prove they are human before performing actions like submitting data, logging in, or accessing private content.
To ensure complete protection, you must include backend authorization as a mandatory step of the CAPTCHA validation lifecycle outlined below.
The following outlines the typical lifecycle for CAPTCHA validation:
token
is generated. The onVerified()
event confirms successful completion of the CAPTCHA challenge. Use this event handler to enable the previously disabled clickable element.onError()
event handler to instruct the visitor to try again later. Return to Step 1.authorize()
with the generated token from the previous step to check whether the token is valid (authorized).onTimeout()
event handler to disable the clickable trigger. Return to Step 1.reset()
to reset the reCAPTCHA element for future operations.reset()
to reset the reCAPTCHA element and ask the visitor to redo the challenge. Return to Step 1.Notes: