How to generate Google reCAPTCHA keys for site security
This article describes how to generate reCAPTCHA keys from Google. By adding reCAPTCHA capability to your web site, you can help make it more secure.Table of Contents
- About Google reCAPTCHA
- How to generate Google reCAPTCHA keys
About Google reCAPTCHA
Google reCAPTCHA is a popular service providing anti-abuse security to help protect your web site. For example, A Hostvento hosting Optimized for WordPress utilizes the reCAPTCHA feature as an additional layer of security for your 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:
- Use your web browser to go to Google’s reCAPTCHA site.
- Click the blue Admin console button on the upper right-hand side of the page:
- Sign in to your Google account:
- The Google reCAPTCHA dashboard appears. If you have already generated reCAPTCHA keys, the dashboard shows statistics about your previously created keys:
- To create a new Site Key and Secret Key, click + on the upper right-hand side of the page:
- The Register a new site form appears. Specify the following information about your site to obtain the Site Key and Secret Key:
- Label: Create a label for the site’s keys.reCAPTCHA Type: There are four different types of Google reCAPTCHA available for use on your site. Domain: The website URL where you will use these keys, such as example.com.Owners: This option is set by default according to the Google account you logged in with. To register multiple owners, click Enter email addresses, and then type the e-mail accounts you want to add.Terms of Service: Accept the reCAPTCHA terms of service to use reCAPTCHA for your site. Alerts: If there are any problems on your website, such as reCaptcha misconfiguration or increased suspicious traffic, alerts are sent to the owner(s) of the site listed in the form.
- Click SUBMIT. The newly generated Site Key and Secret Key appear: