本文へスキップ
記事初級

Turnstile でフォームを保護する

Cloudflare Turnstile でログイン・登録・問い合わせフォームを保護します。フォームにウィジェットを追加し、サーバー側で Siteverify によりトークンを検証します。

最終更新
2026年5月5日
元の記事を読む

この紹介文は現在英語版のみです。

Turnstile is Cloudflare’s privacy-friendly CAPTCHA alternative. Add the widget on the client, then verify the token it produces on your server with the Siteverify API before accepting the form.

What you’ll learn

  • Get a Turnstile site key and secret key
  • Add the widget to an HTML form
  • Verify the token on the server side
  • Important considerations for production

Cloudflare products used

Turnstile.

Follow the full, step-by-step tutorial in Cloudflare’s documentation.

さらに学ぶ