Skip to content

Google reCAPTCHA

Google reCAPTCHA v3 protects the Nexgen contact form from spam and abuse — invisibly, without making your visitors solve puzzles. Setting it up is a matter of registering your site and copying two keys into the right files.

  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 name).
    • 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.

    Google generates two keys for you: a Site Key and a Secret Key.

You now have two keys, and each goes in a different place:

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

    Open the file and paste your Secret Key where indicated. This is what lets your server verify each submission with Google.

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

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