Skip to content

Google reCAPTCHA

Google reCAPTCHA v3 protects the Leverage contact form from spam — invisibly, without asking visitors to solve puzzles. Setup is just registering your site and copying two keys into the right files. This page assumes you’ve already set up form.php and recaptcha.php for the contact form.

  1. Go to the reCAPTCHA admin console.

    Open google.com/recaptcha/admin/create and sign in with your Google account.

  2. Fill in the registration form:

    • Label — a name to identify this site later (e.g. your domain).
    • reCAPTCHA type — choose reCAPTCHA v3. Required
    • Domains — add your website’s address.
    • Owners — your email address is added automatically.
  3. Accept the terms and submit to generate your Site Key and Secret Key.

  1. Secret Key → assets/php/recaptcha.php.

    Paste your Secret Key where the file indicates. This lets your server verify each submission with Google.

  2. Site Key → your HTML and assets/js/main.js.

    Paste your Site Key into the pages containing the form and into main.js where indicated. This public key runs in the visitor’s browser.