{"success":true,"name":"protect-public-forms-from-bots-and-abuse","description":"A form is exposed publicly and anything can post to it.","category":"ai-brimind","path":"ai-brimind/protect-public-forms-from-bots-and-abuse/SKILL.md","file":"SKILL.md","content":"---\nname: protect-public-forms-from-bots-and-abuse\ndescription: \"A form is exposed publicly and anything can post to it.\"\n---\n\n# Protect Public Forms from Bots and Abuse\n\n## When to use\nYou are shipping a form reachable without login, and there is no protection against automated or repeated submissions.\n\n## Example request\nA contact form goes live → the inbox fills with spam in a week — an open endpoint with no bot check. Someone scripts a loop of posts → the database bloats and emails flood — no rate limiting. A CAPTCHA is bolted on first → real users get annoyed while a hidden honeypot field would have caught most bots — heaviest tool picked first. The endpoint accepts any origin → other sites can post into yours — missing origin/CSRF protection.\n\n## Instructions\nAct as a defender who assumes the form's URL will be found by bots on day one. Layer protections from lightest to heaviest and justify each: (1) a honeypot field hidden from humans that rejects any submission filling it; (2) rate limiting per IP or session on the endpoint; (3) server-side checks that reject impossible submissions (instant submits, oversized payloads); (4) CAPTCHA or challenge only if the lighter layers prove insufficient. Check whether the platform or framework already offers CSRF protection, rate limiting middleware, or spam filtering before writing your own. Confirm the protections live on the server — client-side tricks alone stop nothing. If you do not know the expected traffic or abuse history, ask before choosing the heavy options. Only finish when you can state which layer stops which kind of abuse and why real users are not punished by it.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #681\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}