How to generate Google reCAPTCHA keys for site security
This article guides you through the process of generating reCAPTCHA (site and secret) keys from Google. By adding reCAPTCHA capability, you can help improve your site's security.
About Google reCAPTCHA
Google reCAPTCHA is a popular service providing anti-abuse security to help protect your web site. To integrate Google reCAPTCHA in an application, you register the app or web domain with Google’s reCAPTCHA service. After the domain is registered, Google provides reCAPTCHA keys.
There are two keys, the Site Key and the Secret Key. The Site Key and the Secret Key are also sometimes called the public and private key, respectively.
The Site Key is used to render the reCAPTCHA within a page, and the Secret Key is used for server-side validation. The keys are unique to the domain for which they are registered.
How to generate Google reCAPTCHA keys
To generate the reCAPTCHA keys, follow these steps:
-
If you are not already signed in to your Google account, do so now.
-
Use your web browser to go to Google’s reCAPTCHA site.
-
Click Get Started:
-
On the Register a new site page, specify the following information:
- Label: Create a label for the site keys.
- reCAPTCHA type: Choose to verify requests with a score or a challenge.
- Domains: Specify the domain where you will use these keys, such as example.com.
-
Click SUBMIT. After a few seconds, the Site Key and Secret Key appear:
Updated 1 day ago