Simple Turnstile – WordPress 人機驗證插件

[turnstile]

Simple Turnstile

A simple yet powerful WordPress CAPTCHA plugin, built on Cloudflare Turnstile technology

插件介紹

Simple Turnstile 是一個輕量級的 WordPress 插件,它使用 Cloudflare 的 Turnstile 技術來保護您的網站免受機器人攻擊。Turnstile 是 Cloudflare 推出的新一代人機驗證服務,它比傳統的 CAPTCHA 更加智能和用戶友好,能夠在不影響用戶體驗的情況下有效阻止機器人。

What is Cloudflare Turnstile?

Cloudflare Turnstile 是一種先進的人機驗證服務,它使用機器學習和行為分析來區分真實用戶和機器人,而不需要用戶解決複雜的圖像拼圖或文字識別。它提供了更好的用戶體驗,同時保持高水平的安全性。

主要功能

Comprehensive form protection

Simple Turnstile 可以保護您網站上的各種表單,防止機器人濫用:

  • WordPress 登入表單
  • WordPress 註冊表單
  • WordPress 忘記密碼表單
  • WordPress 留言表單
  • WooCommerce 登入表單
  • WooCommerce 註冊表單
  • WooCommerce 忘記密碼表單
  • WooCommerce 商品評論表單
  • Customize the form on the URL page

Flexible configuration options

全局開關

Use the global switch to enable or disable all Turnstile authentication functions with one click, making it easy to temporarily disable authentication during testing or maintenance.

User logged in exemption

It is possible to set up a feature that allows logged-in users to skip authentication, enhancing the user experience.

自定義錯誤訊息

Customize the error message displayed when a user fails to complete verification to match your website's style.

禁用提交按鈕

可以設置在用戶完成驗證前禁用表單的提交按鈕,確保用戶必須先通過驗證才能提交表單。

自定義 URL 保護

Yes. You can specify a specific URL path, and all forms on those pages will be added to Turnstile authentication.

多語言支持

Simple Turnstile supports multiple languages, including:

  • Traditional Chinese (default)
  • English
  • 簡體中文 (中国)

The plugin automatically selects the appropriate language based on your WordPress language settings.

短代碼支持

Use [turnstile] Short code can be added to Turnstile authentication anywhere that supports short code.

Installation and Setup

Installation steps

  1. 從 WordPress 插件目錄下載 Simple Turnstile 插件,或上傳插件 ZIP 文件到您的 WordPress 網站
  2. Activate the plugin in the WordPress admin area
  3. 前往「設置 > Simple Turnstile」進行配置

獲取 Cloudflare Turnstile 密鑰

使用 Simple Turnstile 插件前,您需要從 Cloudflare 獲取 Site Key 和 Secret Key:

  1. Sign In to Your Cloudflare dashboard
  2. 前往「Turnstile」部分
  3. Click "Add a site" to create a new Turnstile site
  4. 填寫站點名稱和域名
  5. 選擇合適的 Turnstile 類型(建議選擇「Managed」或「Non-Interactive」)
  6. After creation, you will receive a Site Key and a Secret Key

Plugin configuration

Go to the Settings > Simple Turnstile page in the WordPress admin panel and make the following settings:

一般設置

Options 說明
Activate Turnstile Global switch, control whether all Turnstile authentication features are enabled
Site Key 從 Cloudflare 獲取的 Turnstile Site Key
Secret Key 從 Cloudflare 獲取的 Turnstile Secret Key
停用 [提交] 按鈕 Disable the submit button of the form until the user has completed verification.
自定義錯誤訊息 當用戶未完成驗證時顯示的錯誤訊息
Logged-in users do not need verification 允許已登入的用戶跳過驗證

Form Settings

Choose which WordPress forms to enable Turnstile on:

  • WordPress 登入表單
  • WordPress admin page
  • WordPress 註冊表單
  • WordPress 忘記密碼表單
  • WordPress 留言表單

WooCommerce 設置

選擇要在哪些 WooCommerce 表單上啟用 Turnstile:

  • WooCommerce 登入表單
  • WooCommerce 註冊表單
  • WooCommerce 忘記密碼表單
  • WooCommerce 商品評論表單

自定義設置

在「自定義 URL」文本框中輸入要啟用 Turnstile 的 URL 路徑,每行一個。例如:

/contact/
/form/
/checkout/

Use short codes

You can use [turnstile] Shortcode Add Turnstile authentication to any shortcode-enabled page. This is particularly useful for securing custom forms.

Basic usage

[turnstile]

Place this shortcode before the submit button of a form to ensure users complete the verification before submitting the form.

注意: When using a shortcode, make sure the form includes a submit button, and the shortcode is placed before the submit button.

常見問題

Turnstile 與 reCAPTCHA 有什麼區別?

Cloudflare Turnstile 是一種更現代、更用戶友好的人機驗證解決方案。與 reCAPTCHA 相比,Turnstile 通常不需要用戶解決拼圖或識別圖像,它使用更先進的技術來區分人類和機器人,提供更好的用戶體驗。

Turnstile 是否需要 Cloudflare 帳戶?

是的,您需要一個 Cloudflare 帳戶來獲取 Turnstile 的 Site Key 和 Secret Key。不過,您不需要將您的網站託管在 Cloudflare 上或使用 Cloudflare 的其他服務。

如何測試 Turnstile 是否正常工作?

啟用插件並配置好 Turnstile 密鑰後,您可以嘗試在網站上提交一個受保護的表單(如登入表單或留言表單)。如果 Turnstile 正常工作,您應該能看到 Turnstile 小部件,並且只有在通過驗證後才能提交表單。

Why can't I see the Turnstile widget?

Possible reasons include:

  • 全局開關已關閉
  • You are signed in and have enabled the "Signed-in users don't need verification" option
  • Site Key 未正確設置
  • JavaScript 錯誤阻止了小部件加載

How to use Simple Turnstile on a multilingual website?

Simple Turnstile 支持多種語言,並會根據您的 WordPress 語言設置自動選擇合適的語言。如果您使用 WPML 或 Polylang 等多語言插件,Simple Turnstile 應該能夠正確顯示對應語言的文本。

技術支持

如果您需要使用 Simple Turnstile或者在使用插件時遇到任何問題,或有任何建議,請通過以下方式聯繫我們:

我們會盡快回覆您的問題並提供幫助。

© 2025 Simple Turnstile. All rights reserved.

Cloudflare 和 Turnstile 是 Cloudflare, Inc. 的商標。

Leave a Reply

3
AI Assistant
WhatsApp
Email
AI Assistant
WhatsApp
Email
AI Assistant
Important notice: AI responses may be slower than expected. AI provides information for reference only, and we are not responsible for its accuracy or completeness. AI responses do not represent the position of this company.

Hi there! I'm the AI assistant for . What would you like to know?

00:57