本文へスキップ
Skillpedia
セキュリティ75k · #2855

form-captcha

できること

このスキルは、サインアップ、ログイン、お問い合わせのページなどの公開フォームが、自動化された悪用から守られているかを確認します。フォームのある公開のサイトを運営する開発者向けです。

使う場面

  • ✓サインアップやお問い合わせのフォームに、スパムが大量に届くとき。
  • ✓自動のパスワード推測の危険があるログインページを追加するとき。
  • ✓訪問者に難しいパズルを解かせずに、ボットをブロックしたいとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/form-captcha/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/form-captcha/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“お問い合わせとサインアップのフォームに、ボット対策を追加してもらえますか。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、各公開フォームについて CAPTCHA、ハニーポットの欄、レート制限があるかを確認します。負担の少ない CAPTCHA サービスを提案し、回答がサーバーで確認されていることを確かめます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Protect public forms with CAPTCHA

An unprotected registration form can create thousands of spam accounts per minute; an unprotected login form enables credential stuffing attacks that test millions of username/password combinations from data breaches.

Quick Reference

  • Public forms (contact, registration, login, password reset, comment) without CAPTCHA are targets for automated abuse
  • Prefer invisible/automated solutions (Cloudflare Turnstile, Google reCAPTCHA v3, hCaptcha) over interactive challenges that harm UX
  • Always validate CAPTCHA tokens server-side — client-side validation is bypassable
  • Rate limiting is complementary to CAPTCHA but not a substitute — bots can solve rate limits with distributed attacks
  • Honeypot fields (hidden inputs that users never fill but bots do) are a lightweight CAPTCHA alternative for low-risk forms

Check

Identify all public-facing forms (contact, registration, login, password reset, newsletter, comment). Check whether each has CAPTCHA, honeypot fields, or server-side rate limiting. Verify any CAPTCHA tokens are validated server-side.

Fix

Integrate a CAPTCHA service (Cloudflare Turnstile, hCaptcha, or Google reCAPTCHA v3) on all public forms. Validate the CAPTCHA response token on your server before processing the form submission. Add rate limiting as a defense-in-depth measure.

Explain

Explain what credential stuffing and spam bot attacks are, how CAPTCHA protects public forms, the trade-offs between different CAPTCHA approaches (v2 checkbox, v3 invisible, Turnstile), and why server-side validation is required.

Code Review

Review server config, headers, forms, and integration points related to Protect public forms with CAPTCHA. Flag exact responses, cookies, or browser behaviors that violate the rule, and verify them against the effective production-like response.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/security/form-captcha

よくある質問

ハニーポットの欄とは何ですか?

利用者は記入しないが、ボットがよく記入する、隠されたフォームの欄です。自動的な送信を見つける助けになります。

ブラウザ側での確認だけで十分ですか?

いいえ。ブラウザ側の確認は回避されることがあるため、CAPTCHA のトークンはサーバーで検証しなければならないとこのスキルは説明しています。

どのサービスが挙げられていますか?

Cloudflare Turnstile、hCaptcha、Google reCAPTCHA v3 が挙げられています。

詳細

作者による元の説明

Use when reviewing public HTML forms (no authentication required to reach them) for bot and abuse protection mechanisms.

repo: thedaviddias/Front-End-Checklist

人気

GitHubのスター
75k
ランキング
#2855
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル