Add Google reCAPTCHA to the sign-in pages
Switch on invisible reCAPTCHA v2 for sign in, sign up and forgotten password.
Invisible reCAPTCHA checks the sign-in forms without showing a tick box. Visitors see only Google's small badge, unless Google decides to show a challenge.
It covers: sign in, sign up, forgotten password, partner sign in, partner sign up and the back office sign-in.
Get the keys
- Open google.com/recaptcha/admin and create a site.
- Choose reCAPTCHA v2, then Invisible reCAPTCHA badge. Keys of type v3 do not work here.
- Add your platform's domain, and every partner domain that has its own sign-in page.
- Copy the site key and the secret key.
Switch it on
- Open Admin, Platform settings and find Sign-in pages: Google reCAPTCHA.
- Tick Check sign-in forms with reCAPTCHA.
- Paste the site key and the secret key, and click Save.
The secret is stored encrypted and never shown again. An empty secret field keeps what is saved.
Check it before you sign out
Open the back office sign-in in a second browser and sign in. If the keys are wrong you would otherwise lock yourself out. To switch it off without signing in, set recaptcha_on to 0 in the settings table of the database.
Things to know
- If Google cannot be reached, the form is let through; the firewall and the limit on sign-in attempts still apply.
- A partner domain that is missing from the key's domain list shows Google's "invalid domain" message on that partner's sign-in page.
- Say in your privacy policy that the sign-in pages use Google reCAPTCHA.