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.
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).
- reCAPTCHA type — choose reCAPTCHA v3. Required
- Domains — add your website’s address.
- Owners — your email address is added automatically.
-
Accept the terms and submit to generate your Site Key and Secret Key.
Add your keys
Section titled “Add your keys”-
Secret Key →
assets/php/recaptcha.php.Paste your Secret Key where the file indicates. This lets your server verify each submission with Google.
-
Site Key → your HTML and
assets/js/main.js.Paste your Site Key into the pages containing the form and into
main.jswhere indicated. This public key runs in the visitor’s browser.