Configuring CAPTCHA
To configure CAPTCHA, you'll register for CAPTCHA keys by first creating a key pair (a public “site key” and a private “secret key”) with Google so your forms can be securely validated. Once generated, those keys should be recorded in the Base Captcha Setup page.
Register for CAPTCHA keys
A Google Cloud Platform and Project Name is required. If you do not have one associated to your google account, after you submit one will be created.
- The no-cost version (reCAPTCHA Essentials) allows up to 10,000 assessments per month. Additional assessments can be purchased if required. See reCAPTCHA Pricing.
- Navigate to: https://console.cloud.google.com/
- Sign in or create an Account.
- Click Security from the left panel to open the Security Command Center.
- Under the ‘Detections and Controls’ section, choose reCAPTCHA:

- Click the Create Key button:

- Enter a Display Name.
- Click Add a Domain to enter the new domain:
- Add your new Site URL without the http:// prefix, then click Done.
- Example: myorg-edition.na00.force.com
- Note: do not include anything after the Base URL, such as /portal or /app.
- Click the Next step (optional) button.

- Enable the Will you use challenges? option. It will default to ‘Checkbox challenge.’
- Click the Create Key button.
- To view/copy your keys:
- In the Key Details window, choose Edit key.
- The ID is your Site Key.
- Click Reveal to display your Secret Key.
- Copy these values for the next step.
Enter Keys into CAPTCHA Setup
- Note your Salesforce URL up to the force.com.
- Examples: https://na10.salesforce.com OR https://myenhanceddomain.lightning.force.com
- Append /apex/TargetX_Base__CaptchaSetup to the URL.
- Examples: https://na10.salesforce.com/apex/TargetX_Base__CaptchaSetup OR https://myenhanceddomain.lightning.force.com/apex/TargetX_Base__CaptchaSetup
- Paste in your Site Key and Secret Key from the previous step.
- Click Save Keys.

Note: the CAPTCHA Setup page will NOT display your old values to keep them locked down. Save will overwrite your old values with the new ones.