Cloudlfare Turnstile module
The Cloudflare Turnstile Protection module for Adobe Commerce (Magento) adds Cloudflare’s Turnstile bot protection to key customer-facing forms: Customer Registration, Customer Login, Forgot Password, and the main Contact form.
Rather than a blanket integration, the module gives you granular control over exactly which pages Turnstile appears on and is built to only load Cloudflare’s Turnstile JS on those specific pages, keeping the rest of your store free of unnecessary third-party script weight.
Module views
Here is a selection of images showing the module admin & frontend views.
Interested in this module: get in touch.
Tested with: Mage-0s 3.4.0, Magento 2 2.4.9
Key Features:
- Selective Page Protection:
Choose independently which of the four supported pages, Registration, Login, Forgot Password, or Contact, should display the turnstile. - Simple Admin Configuration:
Enable the module and add your Cloudflare Turnstile site key and secret key through a single general settings section. - Targeted Script Loading:
Turnstile’s JS only loads on the pages you’ve enabled, avoiding unnecessary script weight across the rest of the site. - Native Admin Integration:
Configured entirely through the Magento admin, no template edits or manual code changes required.
Benefits:
-
Reduced Bot & Spam Activity:
Cloudflare Turnstile filters out automated submissions without the visible friction of traditional CAPTCHAs. -
Better Performance:
Loading Turnstile’s JS only on protected pages avoids adding third-party script weight to pages that don’t need it. -
Full Admin Control:
Site-wide protection isn’t all-or-nothing; enable exactly the pages that need it. -
Quick Setup:
Two API keys and a page selection are all that’s needed to get protection live.
Configuration:
-
Navigate to the module’s general settings in the Magento admin.
-
Enable the module and enter your Cloudflare Turnstile site key and secret key.
-
Select which of the four supported pages, Registration, Login, Forgot Password, or Contact, should have Turnstile enabled.
-
Save; Turnstile JS will only load on the pages you’ve selected, ready to validate form submissions.
Use Cases:
-
Registration & Login Protection:
Stop automated bot sign-ups and credential-stuffing attempts on customer registration and login. -
Forgot Password Security:
Prevent automated abuse of the password reset form. -
Contact Form Spam Prevention:
Cut down on spam submissions through the main contact form without adding friction for real visitors. -
Selective Rollout:
Enable Turnstile only where bot activity is actually a problem, rather than applying it site-wide by default.
Conclusion:
The Cloudflare Turnstile Protection module for Adobe Commerce brings targeted, low-friction bot protection to the forms that matter most, registration, login, password reset, and contact, without loading unnecessary scripts elsewhere on the site. With selective page control and a straightforward two-key setup, it’s a fast way to cut down on spam and automated abuse.
Need help with Adobe Commerce projects:
a module extended, a Page Builder build, a re-platform? get in touch were here to help.
Get in touch.