Google API keys

Publish the following page on an HTTP server:

<!DOCTYPE html>
<html>
  <head>
    <title>reCAPTCHA Test</title>
    <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  </head>
  <body>
    <form action="?" method="POST">
      <div class="g-recaptcha" data-sitekey="YOUR_SITE_KEY_HERE"></div>
      <br/>
      <input type="submit" value="Test reCAPTCHA">
    </form>
  </body>
</html>

Open it in a browser on your authorized domain, and it should show the reCAPTCHA widget. If the key is invalid or restricted to other domains, you'll get an error in the console or it won’t render.

Last updated