Bot protection
Bots try stolen passwords on sign-in forms, create fake accounts and post spam reviews. With LanternWP Companion, your store's forms can ask Cloudflare Turnstile to check that a person, not a bot, sends them. Most visitors are not asked anything: Turnstile decides in the background and only sometimes shows a check to check.
Bot protection is off until you turn it on, and your store works the same without it. Back-in-stock emails' details say whether it checks their requests, with a link to it.
Get your keys from Cloudflare
Turnstile is free and works without moving your site to Cloudflare.
- Sign in to your Cloudflare dashboard, or create a free account, and open Turnstile.
- Add a widget. Enter your store's domain, and choose a mode: Managed shows a check only when Cloudflare is unsure about the visitor.
- Copy the Site key and the Secret key.
Turn it on

-
Go to Appearance → LanternWP → Features and select Set up or Settings in the Bot protection row. Under any other theme, Companion's screen is Appearance → Features.
-
Turn on the switch at the top, paste both keys under Cloudflare keys and select Save. If Cloudflare does not accept the secret key, the screen says so under the field and keeps the key you saved before. While a key is missing, its row and its details say which one, such as "Needs setup: enter the site key", and no form is checked.
-
Under Forms it checks, uncheck any form you do not want checked, then select Save:
- signing in, on the account page and on the WordPress login page;
- creating an account;
- asking for a new password;
- comments and reviews from guests (signed-in customers are not asked);
- the contact form;
- back-in-stock requests, checked only once their form shows on a product page.
A form your store does not show says so under its checkbox, with a link to where you turn it on: creating an account while WooCommerce → Settings → Accounts & Privacy and Settings → General let nobody register, back-in-stock requests while Back-in-stock emails is off.
Under When it shows, Show the check chooses whether the Turnstile box always shows in these forms, back-in-stock requests included, or only when the visitor has to do something.
To take the keys out of the store, such as when you delete the widget in Cloudflare, select Remove keys under the secret key, confirm and select Save.
Check the site key
Each time you open Bot protection's details, the screen loads Cloudflare's check with the saved site key, as your forms do. If Cloudflare refuses it, the error shows under Site key: "Cloudflare does not know this site key" for a mistyped or deleted key, or "Cloudflare does not allow this site key on" your domain when the widget in Cloudflare does not list it. The row then says "Needs setup: Cloudflare refuses the site key", and no form is checked until you paste a key that works and select Save.
If Cloudflare cannot be reached
By default, forms go through when Cloudflare cannot be reached, so your customers can still sign in. Choose Stop the forms under If Cloudflare cannot be reached to refuse them instead.
If you cannot sign in
A form that is checked refuses anyone whose browser cannot show Cloudflare's check, you included. That happens when the keys are wrong in a way the screen has not caught yet, such as a site key you changed without opening its details again, or a widget deleted in Cloudflare. The sign-in form then says "Please confirm that you are not a robot, then try again." even with the right password.
To get back in, turn bot protection off in one of these ways, then fix the keys in its details and turn it on again:
-
in your host's file manager or over FTP: rename the folder
wp-content/plugins/lanternwp-companion, such as by adding -off to its name. WordPress deactivates Companion, and you can sign in. Rename the folder back and activate Companion in Plugins; bot protection is still on, so open its details first and correct the keys. -
with WP-CLI, if your host offers it, which turns only bot protection off:
wp option update lanternwp_protection no
Privacy
Turnstile sends information about the visitor's browser and device to Cloudflare. While bot protection is on, Settings → Privacy suggests a paragraph about it for your privacy policy, naming the forms it checks: those checked under Forms it checks that your store shows. The feature's details link there.
Another plugin already adds Turnstile
If Simple CAPTCHA with Cloudflare Turnstile is active, Companion's bot protection stays off, so no form shows two checks. The Bot protection row in Features says so, with a link to Plugins.