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.

About Google reCAPTCHA

Google reCAPTCHA is a popular service providing anti-abuse security to help protect your web site. For example, A2 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:

  1. Use your web browser to go to Google’s reCAPTCHA site.
  2. Click the blue Admin console button on the upper right-hand side of the page:

    Admin Console

  3. Sign in to your Google account:

    Google sign in

  4. The Google reCAPTCHA dashboard appears. If you have already generated reCAPTCHA keys, the dashboard shows statistics about your previously created keys:

    reCAPTCHA data

  5. To create a new Site Key and Secret Key, click + on the upper right-hand side of the page:

  6. 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.

    reCAPTCHA form

  7. Click SUBMIT. The newly generated Site Key and Secret Key appear:

    reCAPTCHA keys

Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.

We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.