Recaptcha secret key, where is it in my Google Cloud Recaptcha account?

Viewed 5846

I am attempting to setup a google recaptcha on my site and the plugin I am using is asking for the site key AND a secret key. No idea what a secret key is, I cannot find it in my settings anywhere in Google Cloud. Any help is greatly appreciated.

5 Answers

Try going to https://g.co/recaptcha/v3 and use that UI to set up your reCaptcha. With that process I was provided with two keys, a site key for the frontend and a secret key for the backend.

Google seems to have a couple of different ways to set up recaptcha and the documentation is out of sync with reality so there are many dead ends to get lost in. I spent a long time in the Google Cloud Platform and it was useless.

Even I faced the same confusion after trying to implement it by reading some online tutorials. The first confusion was why my Google Cloud console called it CAPTCHA "Enterprise". But I will leave that exploration to you, as it doesn't matter in our case.

But I was finally able to get it to work. I found the secret under, Legacy reCAPTCHA secret key

enter image description here

The ReCAPTCHA Enterprise version does not use a secret key. You can still use recaptcha 3 or 2 and generate a api and secret key here:

https://www.google.com/recaptcha/admin/create

Enterprise ReCaptcha is a bit different than the standard one.

  1. Login to Google cloud platform and select your project from the top menu.
  2. Search for reCAPTCHA Enterprise in the search box.
  3. On that screen you can definite Enterprise keys (public site key) and their settings (allowed domains, etc...)
  4. In order to create a secret key, go to: APIs and services menu. Select 'Credentials' and define a new API key (secret key).

Hope that helps.

Related