跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

Cybernob Turnstile for Cloudflare

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

Cybernob Turnstile for Cloudflare

作者:Aneesh MK
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

Cybernob Turnstile for Cloudflare integrates Cloudflare Turnstile into your WordPress site — the privacy-friendly CAPTCHA that stops bots silently, without making real users solve puzzles.

This plugin is an independent, third-party integration and is not affiliated with or endorsed by Cloudflare, Inc.

Protected locations

  • Login form — blocks brute-force and credential-stuffing attacks
  • Registration form — prevents automated account creation
  • Comment form — stops spam comments without Akismet
  • Contact Form 7 — automatically protects every CF7 form on your site

Features

  • Live status checker — the settings page shows instantly whether your API keys are valid and reachable
  • Invisible mode — widget stays hidden; the form auto-submits once the challenge passes silently
  • Three themes — Auto (follows system preference), Light, Dark
  • Two appearance modes — Always visible, or show on interaction only
  • Clean uninstall — all plugin options are removed on deletion, including multisite support
  • Translation ready — all strings wrapped in i18n functions with the correct text domain
  • No bundled libraries — only Cloudflare’s own CDN script is used; nothing extra added to your site

Why Turnstile?

Unlike reCAPTCHA, Cloudflare Turnstile does not track users across sites or require Google accounts. It is designed to be GDPR-friendly and invisible to legitimate users by default.

Getting started

  1. Create a free Cloudflare Turnstile site widget
  2. Copy your Site Key and Secret Key
  3. Paste them into Settings → Cybernob Turnstile and save
  4. The live status indicator confirms everything is working

External Services

This plugin connects to Cloudflare’s Turnstile service to display CAPTCHA challenges and verify user responses.

  • Service: Cloudflare Turnstile
  • When used: When a protected form is loaded (widget script) or submitted (token verification). Only active after the administrator has entered API keys in the plugin settings.
  • Data sent: On verification — the Turnstile response token and the visitor’s IP address are sent to Cloudflare’s API endpoint.
  • Endpoint: https://challenges.cloudflare.com/turnstile/v0/siteverify

Cloudflare Terms of Service | Cloudflare Privacy Policy

安装

  1. Upload the cybernob-turnstile-for-cloudflare folder to the /wp-content/plugins/ directory, or install directly via Plugins → Add New in your WordPress admin.
  2. Activate the plugin through the Plugins screen.
  3. Go to Settings → Cybernob Turnstile.
  4. Create a free Turnstile widget at dash.cloudflare.com and copy your Site Key and Secret Key.
  5. Paste both keys into the settings page and click Save Settings.
  6. The live status indicator will confirm your CAPTCHA is configured and working correctly.

常见问题

Do I need a Cloudflare account?

Yes. A free Cloudflare account is required to generate Turnstile API keys. Sign up at cloudflare.com.

Does this work with Contact Form 7?

Yes. If Contact Form 7 is installed and active, this plugin automatically injects the Turnstile widget into every CF7 form and validates the token before mail is sent. No changes to your CF7 forms are needed.

Does this work with WooCommerce?

WooCommerce integration is not included in the current version. It is planned for a future release.

Will this slow down my site?

No. The Cloudflare Turnstile API script is loaded asynchronously and deferred from Cloudflare’s global CDN. It has a negligible effect on page load time.

Is this GDPR compliant?

Cloudflare Turnstile is designed to be privacy-preserving. This plugin does not set any cookies itself and only stores your API keys in the WordPress database. Please review Cloudflare’s privacy policy for their full data handling practices.

The status checker shows “Connection Failed”. How do I fix it?

Your server cannot reach challenges.cloudflare.com. This is typically a firewall or outbound network restriction on your hosting server. Contact your hosting provider and ask them to allow outbound HTTPS connections to Cloudflare’s IP ranges.

The status checker shows “Invalid Secret Key”. What does that mean?

The Secret Key you entered was rejected by Cloudflare. Double-check that you have copied the full key correctly from your Turnstile dashboard and that it belongs to the correct site widget.

Can I use invisible mode?

Yes. Enable Invisible Mode in the Widget Options section. The widget will be hidden from users and the form will auto-submit once the challenge has passed silently in the background.

评价

Very Simple and works perfectly

classihub 2026 年 3 月 2 日
I was looking for a way to stop spam on my login and contact form without using reCAPTCHA. This plugin was super easy to set up — just paste two keys from Cloudflare and done. The settings page even shows a live status so you know it’s working. No coding needed at all. Highly recommend it!
阅读所有1条评价

贡献者及开发者

「Cybernob Turnstile for Cloudflare」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • Aneesh MK

帮助将「Cybernob Turnstile for Cloudflare」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

1.2.0

  • Added: Live CAPTCHA status checker on the settings page
  • Added: Inline error notice for failed comment CAPTCHA (replaces wp_die)
  • Added: Full multisite support in uninstall routine
  • Added: Contact Form 7 integration with class_exists guard
  • Improved: All user-facing strings are now translation-ready with correct text domain
  • Improved: Script and style handles namespaced to avoid conflicts (cnbtsl prefix)
  • Improved: wp_localize_script used for all JS data — no PHP inside JS strings
  • Improved: REMOTE_ADDR sanitized with FILTER_VALIDATE_IP
  • Improved: Output escaping hardened (wp_kses_post, wp_strip_all_tags)
  • Removed: Test Mode option
  • Fixed: Select dropdowns not preserving saved values on reload
  • Fixed: Checkboxes not saving when unchecked
  • Fixed: Plugin renamed to Cybernob Turnstile for Cloudflare for trademark compliance
  • Fixed: All function/class/define/option names updated to 6-character cnbtsl prefix

1.1.1

  • Fixed invisible auto-submit mode
  • Fixed appearance option not saving correctly
  • Improved settings page layout

1.0.0

  • Initial release

额外信息

  • 版本 1.2.0
  • 最后更新:2 月前
  • 活跃安装数量 不到10
  • WordPress 版本 5.8 或更高版本
  • 已测试的最高版本为 6.9.4
  • PHP 版本 7.4 或更高版本
  • 语言
    English (US)
  • 标签
    captchacloudflareloginspamturnstile
  • 高级视图

评级

5 星(最高 5 星)。
  • 1 条 5 星评价 5 星 1
  • 0 条 4 星评价 4 星 0
  • 0 条 3 星评价 3 星 0
  • 0 条 2 星评价 2 星 0
  • 0 条 1 星评价 1 星 0

Your review

查看全部评论

贡献者

  • Aneesh MK

支持

有话要说吗?是否需要帮助?

查看支持论坛

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 未来五分计划
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗
The WordPress® trademark is the intellectual property of the WordPress Foundation.