Getting Started

Affiliate Area

Troubleshooting

Miscellaneous

Integrations

Pre-sale Questions

Developers

Functions

Filters

Adding CAPTCHA to your affiliate forms

Spam is far from pretty. That’s why we recommend you to protect your website from spam and brute force attacks by using a CAPTCHA widget on your affiliate forms.

SliceWP allows you to safeguard your affiliate forms through:

This article guides you through the process of obtaining the needed API credentials and integrating them with SliceWP.

Registering your website and getting your API keys

  1. Navigate to Google reCAPTCHA admin panel and log into it with your Google account.
  2. From the top right icons, click on the “+” (plus) icon, as shown in the screenshot below, to register a new website:Create new Google reCAPTCHA site
  3. In the Label field add your website’s name or URL. This field’s value is used only for display purposes, so name it to whatever feels more intuitive to you.
  4. For the reCAPTCHA type field select reCAPTCHA v2 and then “I’m not a robot” Checkbox as shown in the screenshot below. This will ensure that your visitors will need to complete a quick challenge to validate that they are human.Google reCAPTCHA type selection field.
  5. The last thing you need before submitting the form is to add your website’s domain. With it Google can render the reCAPCHA challenge and handle the validations. Make sure to add the domain name without http or https and without ending slashes, similar to how it’s set in this screenshot:Google reCAPTCHA registering a new site domain

Once your website is registered you should be redirected to the Google reCAPTCHA API keys. To have everything working with the affiliate registration form we will need to copy these keys into SliceWP.

Important note: SliceWP supports only reCAPTCHA v2. v3 is not currently supported, so please make sure that the API keys you generate are for reCAPTCHA v2.

Adding your keys to SliceWP

  1. To find your API keys navigate to your reCAPTCHA admin panel and, from the top right icons, click the Settings icon.Settings button in Google reCAPTCHA admin panel
  2. Next, in the Settings page, click on the reCAPTCHA keys section title to show the keys.Google reCAPTCHA keys.
  3. Then, copy these two keys from your Google reCAPTCHA account and paste them into your WordPress administrator dashboard > SliceWP > Settings > Integrations > Captcha > Google reCAPTCHA site key and secret key fields.
  4. Lastly, turn on the switch next to the Google reCAPTCHA label to enable the integration.The API settings panel for Google reCAPTCHA in SliceWP

Once you save the settings the reCAPTCHA widget will appear on affiliate specific forms, right before the form’s submit button.

If the reCAPTCHA widget does not show up, please make sure to:

  • check that reCAPTCHA is set to v2, not v3;
  • verify that the API keys from SliceWP match the ones from your Google account.

Registering your website and getting your API keys

  1. Navigate and log into to your Cloudflare dashboard.
  2. From the menu, navigate to Turnstile.
  3. Here, click the Add site button to generate the site and secret keys for your website.
  4. Add a Site name, Domain (the URL of your WordPress site), and select a Widget Mode (Managed recommended).
  5. Click the Create button to reveal the Site Key and the Secret Key.

Adding your keys to SliceWP

  1. Navigate to your WordPress administrator dashboard > SliceWP > Settings > Integrations > Captcha > Cloudflare Turnstile. Here, click on the “Configure” link to open the Turnstile settings.
  2. Then, copy the Site Key and Secret Key from your Cloudflare account and paste them into the SliceWP settings fields.
  3. Lastly, turn on the switch next to the Cloudflare Turnstile label to enable the integration.The API settings panel for Cloudflare Turnstile in SliceWP

Once you save the settings the Turnstile widget will be added to your affiliate specific forms.

Registering your website and getting your API keys

  1. Navigate and log into to your hCaptcha dashboard.
  2. From the menu, navigate to Sites.
  3. Here, click the Add site button to generate the site key for your website.
  4. Add a Name, Domain (the URL of your WordPress site) and select a Behavior and a Passing Threshold.
  5. Click the Save button to create your site key.

Adding your keys to SliceWP

  1. Navigate to your WordPress administrator dashboard > SliceWP > Settings > Integrations > Captcha > hCaptcha. Here, click on the “Configure” link to open the hCaptcha settings. Here you will paste your hCaptcha Site Key and Secret Key.
  2. Then, to copy the site key, navigate to your hCaptcha dashboard > Sites and click on the site you wish to integrate. Here, copy the Sitekey and paste it in the Site Key field in SliceWP.
  3. Then, to copy the secret key, navigate to the Settings page of your hCaptcha dashboard. Here you will find your account secret key. You may need to generate a new key in order to copy it. However, if you already know your hCaptcha secret key, do not generate a new one. If you generate a new one, you will have to change it everywhere you’re using hCaptcha. Once you have the secret key, paste in the Secret Key field in SliceWP.
  4. Lastly, turn on the switch next to the hCaptcha label to enable the integration.The API settings panel for hCaptcha in SliceWP

Once you save the settings the hCaptcha widget will be added to your affiliate specific forms.

Important note: If you generate a new hCaptcha secret key, please make sure to add this new key everywhere you’re using hCaptcha.

Was this article helpful?

Do you have any feedback or suggestions to improve this page?