|
/ Knowledge Base /Integrations/ Cloudflare Turnstile with SureMembers

Cloudflare Turnstile with SureMembers

Cloudflare Turnstile is a smart “CAPTCHA alternative.” It fits into your forms and lets real people pass without hassle, while blocking bots. It works behind the scenes or with a simple checkbox, depending on your settings

Keep spam away from your forms using Cloudflare Turnstile. It checks if the person filling out your login or registration is real, no puzzles or tricky clicks.

How To Enable Cloudflare Turnstile In SureMembers

To add Cloudflare Turnstile to your registration/login forms, follow these steps:

Before proceeding, make sure you register for a Cloudflare account. You can sign up for a free account or choose any of Cloudflare’s paid plans.

  • Go to your Cloudflare dashboard and navigate to Turnstile.
  • Then, click the “Add Widget” button.

Enter a name for your widget (this is for your internal reference) and add your domain name.

Note: Format your domain name like this: example.com so Cloudflare recognizes it. Also, you can add multiple domains. This allows you to use the same keys across multiple websites.

  • Select any of the following options under “Widget Type” for your forms. This decides how Cloudflare checks for spam on your forms.

Here’s what each of these options does:

  1. Managed: Cloudflare checks the visitor’s information to decide if an interaction is needed. If an interaction is required, the user will simply check a box. 
  2. Non-interactive: This option shows a widget with a loading bar while Cloudflare runs a browser-based check. It’s a completely automated process with no user interaction needed.
  3. Invisible: A background check that runs silently without any visible interaction or prompts for the user.

Now, decide whether you’d like to opt for pre-clearance for this site or not.

Note: If you choose this option, your Turnstile widget can give users a clearance cookie. This cookie makes it seem like the user has already passed a security check on your website. The cookie will stay valid for a specific time as specified in your website’s security settings.

Finally, click on the “Create” button. On the next screen, ensure you copy the generated Site and Secret key. 

Adding Cloudflare Site & Secret Key To SureMembers’ Settings

Now, we need to paste our site and secret key into our SureMembers global settings. To do this:

  • Go to SureMembers Settings and then click on “Login Customizer”.
  • Now, scroll down to the “Turnstile Settings” section as shown below.
  • Paste your Site Key and Secret Key here. Once added, click on the Save Settings button at the bottom of the page.

Additionally, you can configure how your Turnstile checkbox appears to your users while filling out your form:

  • Auto
  • Light
  • Dark

That’s all! The Cloudflare Turnstile checkbox should show up on your SureMembers Login form. Verify it yourself on the form front end.

And if you’re facing any issues enabling the Turnstile on your forms, feel free to reach out to our Support Team. We’re always here to help.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page

Remind me about SureMembers's HUGE Black Friday Sale

Scroll to Top