Shed Turnstile

外掛說明

Shed Turnstile provides centralized management of Cloudflare Turnstile Site Key and Secret Key, offering a shared API for compatible plugins such as Shed Form.

Features:

  • Centralized Site Key / Secret Key management
  • API functions callable from other plugins
  • Turnstile widget rendering helper
  • Server-side token verification

API Functions

  • shedturn_is_configured() — Check if keys are configured
  • shedturn_render_widget( $args ) — Return widget HTML
  • shedturn_verify_token( $token, $ip ) — Verify a Turnstile token
  • shedturn_enqueue_script() — Enqueue Cloudflare JS

日本語の説明

Shed Turnstile は Cloudflare Turnstile の Site Key / Secret Key を一元管理し、Shed Form などの対応プラグインに共通の API を提供します。

主な機能:

  • Site Key / Secret Key の一元管理
  • 他プラグインから呼び出せる API 関数
  • Turnstile ウィジェットの描画ヘルパー
  • トークンのサーバーサイド検証

Third-Party Services

This plugin connects to Cloudflare’s servers for Turnstile verification.

螢幕擷圖

  • Settings page — enter your Cloudflare Turnstile Site Key and Secret Key.

安裝方式

  1. Upload the plugin folder to /wp-content/plugins/, or install directly through the WordPress plugin screen.
  2. Activate the plugin through the ‘Plugins’ menu.
  3. Go to Settings Shed Turnstile and enter your Cloudflare Turnstile Site Key and Secret Key.
  4. Compatible plugins (e.g. Shed Form) will automatically detect and use the configured keys.

常見問題集

Where do I get a Turnstile Site Key and Secret Key?

Log in to your Cloudflare dashboard, navigate to Turnstile, and create a new site. The Site Key and Secret Key will be provided.

Does this plugin work standalone?

This plugin manages Turnstile keys and provides an API. To use Turnstile on your forms, you need a compatible form plugin such as Shed Form.

Is Cloudflare Turnstile free?

Yes. Cloudflare Turnstile is a free CAPTCHA alternative service.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Shed Turnstile〉的開發相關工作。

參與者

將〈Shed Turnstile〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.6

  • Fixed: Apply wp_unslash() to nonce field in admin settings save handler
  • Added: languages/shed-turnstile.pot for translation support

1.0.5

  • Fixed: Sanitize externally-supplied $ip parameter in shedturn_verify_token()
  • Fixed: Remove HTTP_CLIENT_IP trust in shedturn_get_client_ip() (spoofable header)
  • Fixed: Add is_array() guard on json_decode result
  • Added: Screenshots section to readme.txt

1.0.4

  • Added: GPL-2.0 LICENSE file
  • Added: Domain Path header
  • Fixed: i18n — all user-facing strings wrapped with __()
  • Fixed: uninstall.php now removes legacy wsf_turnstile_* options

1.0.3

  • Changed: All function, class, constant, hook, and option prefixes renamed from wst_/WST_ to shedturn_/SHEDTURN_/Shedturn_.

1.0.2

  • Changed: Plugin slug