How to Get Google reCAPTCHA Site and Secret Keys
Accessing the reCAPTCHA Console
To obtain your reCAPTCHA Site and Secret keys, navigate to the official Google reCAPTCHA website.
Go to: https://www.google.com/recaptcha/about
From there, click on the "v3 Admin Console" button and log in using your Google account credentials.
The initial screen displays information about reCAPTCHA, explaining its function in protecting websites from fraud and abuse without hindering legitimate users. It highlights reCAPTCHA's advantage in bot mitigation and its proven track record.
Registering a New Site
On the "Register a new site" page within the console, follow these steps:
- Insert a label: Provide a descriptive name for your site (e.g., "My Website").
- Select reCAPTCHA type: Choose the "reCAPTCHA v2" checkbox option.
- Add domains: Enter your website's domain name(s) in the "Domains" section.
- Accept terms: Check the box to confirm you accept the reCAPTCHA Terms of Service.
- Submit: Click the "SUBMIT" button to register your site.
The registration form includes fields for a Label, reCAPTCHA type selection, Domains, and Owners (email addresses).
Retrieving Site and Secret Keys
After successfully registering your site, you will be presented with your unique Site Key and Secret Key.
Site Key: This key is used in the HTML code of your website to integrate reCAPTCHA for client-side verification.
Secret Key: This key is crucial for secure communication between your website's backend and the reCAPTCHA service for server-side verification.
The settings page displays the "reCAPTCHA keys" section, providing buttons to easily copy both your Site Key and your Secret Key.
Monitoring reCAPTCHA Usage
The reCAPTCHA dashboard offers insights into your reCAPTCHA implementation. You can view metrics such as total verifications, the percentage of suspicious requests, a breakdown of requests passed and failed, sessions completed, and the average score assigned to interactions.