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.

  1. Navigate to: https://console.cloud.google.com/ 
  2. Sign in or create an Account.
  3. Click Security from the left panel to open the Security Command Center.
  4. Under the ‘Detections and Controls’ section, choose reCAPTCHA:


TargetX_RECAPTCHA_3.jpg

  1. Click the Create Key button:

TargetX_RECAPTCHA_5.jpg

  1. Enter a Display Name.
  2. 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.
  3. Click the Next step (optional) button.

    TARGETX_RECAPTCHA_678.jpg
  4. Enable the Will you use challenges? option. It will default to ‘Checkbox challenge.’
  5. Click the Create Key button.
  6. 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  

  1. Note your Salesforce URL up to the force.com. 
    • Examples: https://na10.salesforce.com OR https://myenhanceddomain.lightning.force.com
  2. 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
  3. Paste in your Site Key and Secret Key from the previous step.
  4. Click Save Keys.

TARGETX_RECAPTCHA_EnterKeys.jpg

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.

Additional Resources