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.
Register your site
Section titled “Register your site”-
Go to the reCAPTCHA admin console.
Open google.com/recaptcha/admin/create and sign in with your Google account.
-
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.
-
Accept the terms and submit.
Google generates two keys for you: a Site Key and a Secret Key.
Add your keys
Section titled “Add your keys”You now have two keys, and each goes in a different place:
-
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.
-
Site Key → your HTML and
assets/js/main.js.Paste your Site Key into the HTML pages that contain the form and into
main.jswhere indicated. This is the public key that runs in the visitor’s browser.