Securing forms with a Captcha
Protect your website forms against bots by activating Google reCAPTCHA and checking your key configuration.
Google reCAPTCHA protects your website forms against automated bot submissions and spam. It works with two security keys unique to your website, created free of charge with a Google account and then entered in your website's external tools.
In this article
Create the security keys
- Go to the Google reCAPTCHA console and sign in with a Google account. You will use this account to manage the configuration later.
- In the Label field, enter the name of your website.
- Under reCAPTCHA type, select Challenge (v2), then Invisible reCAPTCHA badge.
- Under Domains, add your website's address. If you manage several websites, add each of their domains: the same key will work for all of them.
- Under Google Cloud Platform, check the project suggested in the Project Name field. Google attaches the key to this project.
- Click Submit. The setup takes about a minute.

The next page shows the two keys you will need: the site key and the secret key. Click Copy site key or Copy secret key to copy them.

Keep the secret key private, just like your Google account password.
Add the keys and activate reCAPTCHA
- Go to Website, open the website, then click the External tools tile.
- In the Google Invisible reCAPTCHA section, paste the site key in the Site key field and the secret key in the Secret key field, then click Save.
- In the form module settings, under Anti-spam protection, check the reCAPTCHA box. Repeat this step for each form you want to protect.
Both keys are required: when only one of the two fields is filled in, reCAPTCHA remains inactive on your forms.
Check the key configuration
If suspicious sign-ups still come in despite reCAPTCHA, check your key settings in Google. These settings determine which websites can use the key and the level of protection.
Open the key settings
- Go to the Google reCAPTCHA console with the Google account that manages your website's protection.
- At the top of the page, choose your website from the list.
- Click the Settings icon (gear) at the top right.
![]()
If you manage several keys, expand reCAPTCHA keys in the settings: the site key shown must match the one entered in your website's external tools. If your Google account has no key, ask the person who installed reCAPTCHA to open the existing key.
Check the authorized domains
Under Domains, check that your website's address is in the list. A main domain also covers its subdomains: for example, myassociation.org covers members.myassociation.org.

Further down, the Verify the origin of reCAPTCHA solutions box must stay checked. When it is unchecked, Google no longer verifies that submissions come from the domains in the list.
Adjust the security preference
Under Security Preference, the slider goes from Easiest for users to Most secure. Toward the left, Google asks visitors less often to solve a challenge, such as selecting images; toward the right, it asks them more often.
By default, the slider is on the left. If you still receive a lot of spam, move it to the right, then click Save.

The same domain settings are available in the Google Cloud console, under Keys: on your key's row, click the three dots ⋮, then Edit key. The Disable domain verification switch, next to Domain list, must stay off.