How to get reCAPTCHA key
Differences between Captcha Version 2 & Version 3
- Version 2 (Checkbox reCAPTCHA): This version presents users with a checkbox to confirm they're not robots.
- Version 3 (Invisible reCAPTCHA): Version 3 runs in the background without requiring any interaction from the user. It assigns a score to each user action and allows website owners to take appropriate actions based on the score. This version offers a smoother user experience as it's less intrusive.
How to Obtain Site Key and Secret Key for Each Version
- Login to your Google account then go to the reCAPTCHA Admin Console: https://www.google.com/recaptcha/admin/create.
- Click on the "+ New Site" button and fill in the required information, including:
- Label: A name to help you identify your site.
- reCAPTCHA type: Choose either "reCAPTCHA v2" or "reCAPTCHA v3" depending on your needs.
- Domains: List the domains where you want to use reCAPTCHA.
- Click "Submit". This will generate a Site Key and a Secret Key for your chosen reCAPTCHA version.
Below is an example reCAPTCHA v3 configuration via PrestaHero's CAPTCHA-reCAPTCHA module using the Google reCAPTCHA API key pair we showed you how to obtain above:
- Go to your PrestaShop back office and navigate to Modules > Module Manager.
- Search for the CAPTCHA - reCAPTCHA module and click Configure.
- Select the Google reCAPTCHA v3 option, and enter your Site key and Secret key.
- Click Save.
Once you have saved your settings, reCAPTCHA v3 will be displayed on the selected forms. Users will need to pass the reCAPTCHA challenge before they can submit the form.