> ## Documentation Index
> Fetch the complete documentation index at: https://docs.landerlab.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Enable Cloudflare Turnstile for Form Protection

> Enable Cloudflare Turnstile to protect your landing page forms from bots without CAPTCHA, improving both security and visitor experience.

> Add Cloudflare Turnstile to your landing pages in LanderLab to protect your forms from bots and spam submissions, without asking visitors to solve a CAPTCHA puzzle.

## What is Cloudflare Turnstile?

Cloudflare Turnstile is a free bot protection tool that replaces traditional CAPTCHA challenges. Instead of asking visitors to identify traffic lights or type distorted text, Turnstile verifies visitors silently in the background using browser signals and behavioral analysis.

For most legitimate visitors, Turnstile is completely invisible. Only suspicious traffic gets challenged, which means your forms stay protected without adding friction for real users.

LanderLab handles the Turnstile script installation for you. Once the integration is added with your Site Key, Turnstile is automatically active on your landing page forms.

<Note>
  Once you add a Turnstile integration, it is saved **globally** in your account. You can reuse it across multiple landing pages without entering the details again.
</Note>

***

## Before You Start

Before adding Turnstile in LanderLab, you need to create a Turnstile widget in your Cloudflare account and get your **Site Key**. This takes about 2 minutes.

<Steps>
  <Step title="Log in to Cloudflare">
    Go to [dash.cloudflare.com](https://dash.cloudflare.com) and log in. If you do not have a Cloudflare account, you can sign up for free at [cloudflare.com](https://www.cloudflare.com).
  </Step>

  <Step title="Open Turnstile">
    In the left sidebar of your Cloudflare dashboard, click **Turnstile**. This takes you to the Turnstile widget management page.
  </Step>

  <Step title="Create a new widget">
    Click **Add Widget** and fill in the following:

    | Field           | What to enter                                                                                                   |
    | :-------------- | :-------------------------------------------------------------------------------------------------------------- |
    | **Widget name** | A descriptive label for this widget (e.g. "LanderLab Forms").                                                   |
    | **Hostname**    | Click **Add Hostname** and enter your landing page domain (e.g. `yourdomain.com`, without `https://` or `www`). |
    | **Widget mode** | Choose the mode that fits your setup. See the widget modes explained below.                                     |

    Click **Create** to save the widget.
  </Step>

  <Step title="Copy your Site Key">
    After creating the widget, Cloudflare will display your **Site Key** and Secret Key. Copy the **Site Key** (it looks like `0x4AAAAAAA...`). You only need the Site Key for LanderLab.

    <Note>
      Keep your **Secret Key** private and do not share it. LanderLab only requires the Site Key.
    </Note>
  </Step>
</Steps>

***

## Widget Modes Explained

Cloudflare Turnstile offers three widget modes. Choose the one that fits your needs when creating the widget in your Cloudflare dashboard.

| Mode                | How it works                                                                                                                                                  |
| :------------------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Managed**         | Cloudflare decides automatically. Most visitors pass silently. Only suspicious traffic sees a challenge. This is the recommended mode for most landing pages. |
| **Non-Interactive** | Always shows a small visible widget, but visitors do not need to click or interact with it. Useful if you want a visible security indicator.                  |
| **Invisible**       | Fully silent. No widget is ever shown. Verification happens entirely in the background.                                                                       |

<Tip>
  For lead generation landing pages, **Managed mode** is usually the best choice. It keeps the experience smooth for real visitors while blocking bot submissions.
</Tip>

***

## How to Add Turnstile in LanderLab

<Steps>
  <Step title="Go to your landing page">
    Navigate to **Landing Pages** and click the **name of the landing page** where you want to enable Turnstile bot protection.
  </Step>

  <Step title="Open the Integrations tab">
    Click **Add Integration** to open the integrations panel.
  </Step>

  <Step title="Select Turnstile">
    From the list of available integrations, find **Turnstile** (labeled as "Protect your forms from bots with Turnstile") and click on it. A configuration form will appear.
  </Step>

  <Step title="Fill in the required fields">
    Enter the following details:

    | Field        | Description                                                                                                                                            |
    | :----------- | :----------------------------------------------------------------------------------------------------------------------------------------------------- |
    | **Name**     | A label to identify this integration (e.g. "Turnstile"). Helps you recognize it when reusing across pages.                                             |
    | **Site Key** | The Site Key from your Cloudflare Turnstile widget (e.g. `0x4AAAAAAA...`). Found in your Cloudflare dashboard under Turnstile after creating a widget. |
  </Step>

  <Step title="Click Add Turnstile">
    Click the **Add Turnstile** button to save the integration. LanderLab stores this globally, so you can connect it to other landing pages later without re-entering the details.
  </Step>

  <Step title="Publish your landing page">
    Click **Publish** or **Republish** your landing page to activate Turnstile on your forms. No additional configuration is needed in the form editor.
  </Step>
</Steps>

<Frame>
  <img src="https://mintcdn.com/landerlab-babdc23f/HMKrQYFyvSl4tVFf/images/turnstile.png?fit=max&auto=format&n=HMKrQYFyvSl4tVFf&q=85&s=3f997793d00d9554271d930dc42fdb52" alt="Turnstile" width="1920" height="991" data-path="images/turnstile.png" />
</Frame>

***

## Connect Turnstile to Another Landing Page

Since Turnstile integrations are saved globally, you do not need to create a new one for every landing page. You can reuse any previously saved integration across multiple pages.

<Steps>
  <Step title="Open a different landing page">
    Go to **Landing Pages** and click the name of the landing page where you want to use the same Turnstile integration.
  </Step>

  <Step title="Add Integration">
    Click **Add Integration**. You will see your previously saved Turnstile configurations listed. Select the one you want to connect.
  </Step>

  <Step title="Select variants (if applicable)">
    If your landing page has multiple **A/B test variants**, a modal will appear asking you to choose which variants should use this integration. Select the variants you want and confirm.

    <Note>
      The variant selection modal only appears when your landing page has more than one active variant. If there is only one variant, the integration is applied automatically.
    </Note>
  </Step>

  <Step title="Save and publish">
    Click **Save**, then **Publish** or **Republish** your landing page to activate Turnstile on the selected variants.
  </Step>
</Steps>

***

## How to Verify Turnstile Is Working

Once your landing page is published with Turnstile enabled:

1. Open the **published landing page URL** in your browser.
2. Submit the form with test data.
3. Turnstile will validate the submission automatically in the background.

To confirm it is working on the Cloudflare side:

1. Go back to your [Cloudflare dashboard](https://dash.cloudflare.com).
2. Click **Turnstile** in the sidebar.
3. Select your widget.
4. Check the **Analytics** section. You should see **Challenges issued** and a **Likely human** percentage after a few test submissions.

<Tip>
  Turnstile runs silently for most visitors, so you likely will not see any visible widget on your page unless you chose Non-Interactive mode. This is expected behavior.
</Tip>
