Getting started

Bot Protection: Off by Default, and When to Turn It On

The switch that stops bots from spamming your forms. Off by default — turn it on once you're actually getting spammed. Get your keys free from Cloudflare, and both keys must come from the same widget.

On this page

Bot protection is a gate that stops bots from spamming your forms: before someone can sign up, leave a message, register, or subscribe, they first pass a quick Cloudflare check. We use Cloudflare Turnstile, and the keys are free to get — you use your own.

Where to find it

Admin → Settings → Site info → "Bot protection." Next to the title you'll see "On" or "Off."

Only a site's Super Admin can see this page.

It's off by default — on purpose

Turning on bot protection the moment you launch does more harm than good:

  • Every extra verification step is another chance for someone to give up partway through
  • A verification widget appears under your forms
  • Bots spamming your forms is something you only run into once you have traffic

So it's off by default on a new site — turn it on once you actually run into the problem.

When to turn it on

Turn it on if you see any of the following:

  • Messages that are obviously mass-submitted by bots: repetitive content, gibberish emails, a pile of links
  • A sudden wave of fake sign-ups in a single day
  • A flood of invalid emails mixed into your subscriber list, pushing your bounce rate up (a high bounce rate drags down deliverability for every email you send afterward)

Once it's on, where will visitors be asked to verify

WhereDescription
Account sign-upThe storefront sign-up page
Contact formMessages sent through "Contact us"
Forms & SurveysEvery public form you build under Admin → Site → Forms & Surveys
Blog subscribeThe subscribe box on your blog
Homepage subscribeThe subscribe box on your homepage

When it's off, none of these places show a verification widget, and the server doesn't require verification either.

How to turn it on

Step 1: Get your keys from Cloudflare (free)

  • In the "Bot protection" section, click "Get Turnstile free from Cloudflare →."
  • In Cloudflare's Turnstile dashboard, add a widget and enter your domain.
  • Once it's created, you'll get two keys: a Site Key and a Secret Key.

Both keys must come from the same widget. This is the most common mistake — it's explained below.

Step 2: Enter them in your admin

  • Enter the Site Key under "Site Key" and the Secret Key under "Secret Key."
  • Click "Save key."
  • Click "Turn on" on the right side of this section.

You can't turn it on without both keys: if either key is missing, the "Turn on" button is greyed out, and hovering over it shows "Fill in both keys below first." This is intentional — if it were turned on without keys, every form on your site would fail to submit.

Once saved, the Site Key field shows the last few characters of the current key, so you can confirm which one is set.

What happens if the two keys don't match

This mistake is especially hard to spot:

  • The page looks normal, the verification widget runs fine, and visitors can pass it normally;
  • but the moment they submit, your server checks with Cloudflare, Cloudflare doesn't recognize that Secret Key, and the submission is rejected;
  • on the contact form and subscribe boxes, visitors see: "This site's bot protection is misconfigured (key mismatch). This has been logged — please contact the site admin. Trying again won't help." On the sign-up page and Forms & Surveys, they just see "Bot protection failed, please try again";
  • and from your admin, you can't tell anything is wrong — you just notice that nobody's leaving messages anymore.

So the system checks this proactively: while bot protection is on, it tests your Secret Key against Cloudflare with a dummy token (at no cost) once an hour. If it doesn't match, a top-priority alert appears in your site health check: "Bot protection is misconfigured — no forms can be submitted right now."

The fix: go to Cloudflare, find the widget this site uses, and re-enter its Secret Key.

What visitors might see

MessageWhat it means
"Please complete the verification" / "Please complete the verification on the page first"They clicked submit before passing verification
"This verification has expired (the page was open too long, or was submitted twice). Please refresh and verify again."The page was open too long, or they submitted twice — a refresh fixes it
"This site's bot protection is misconfigured (key mismatch)…"Your keys are set up wrong — nothing the visitor does will help; it's on you to fix it
"Verification didn't pass, please refresh the page and try again."Some other reason — refresh and retry
"Bot protection failed, please try again"The generic message shown on the sign-up page and Forms & Surveys when verification fails; the cause could be any of the above

Turning it off

Click "Turn off" in the same place. Your keys stay saved, so you won't need to re-enter them next time you turn it on.

No verification in Test mode

While your site is in "Test mode," sign-ups and form submissions skip bot protection, so you can run through the flow yourself. But Test mode also stops all admin and outbound notifications from being sent — they're only logged — so make sure to turn it off once you're done testing.

What the AI can do for you

  • "Is bot protection on?" → It calls get_turnstile, read-only.
  • "Turn on bot protection — the Site Key is ..., the Secret Key is ..." → It calls set_turnstile, passing siteKey, secretKey, and on. Trying to turn it on without both keys will be rejected.
  • "Turn off bot protection" → set_turnstile with on set to false; the keys are kept.
  • "Check whether my bot protection is misconfigured" → It calls get_site_health and looks for a "Bot protection is misconfigured" entry.

Things to watch for / FAQ

  • Q: Will turning it on block normal customers?A: It adds one extra verification step, which is exactly why we recommend leaving it off until you're actually being spammed. Confirm you're really being spammed before you turn it on.
  • Q: I'm still getting spam messages after turning it on?A: Bot protection blocks automated scripts — it won't stop a real person manually posting ads. You can block those by email or IP; see "Compliance & System: Blocklist, Trash, and GDPR Tickets."
  • Q: Messages suddenly stopped after turning it on?A: Have the AI run get_site_health first to check whether your two keys don't match.

Related articles

  • "Things to Do Right After Launching Your Site" (quick-start)
  • "Compliance & System: Blocklist, Trash, and GDPR Tickets" (compliance)
  • "Someone Can't Log In / Your Own IP Got Blocked" (blocked-visitors)
Last updated: October 6, 2026
Still stuck? Just ask

Write your question — we look in the docs first, and hand it to AI support if the answer is not there.

If you have connected an AI, you can ask it directly — it reads these same docs, and it can make the change for you.Or email us at support@dlxai.ai.
We use essential cookies; "Accept" also records device traits to prevent abuse. Cookie Policy