Open your coding agent in your project's folder, paste this prompt and read the diff it proposes. Signed in, this page and the dashboard's Set-up page fill in your own site key.
Add Korzen Bot Protection to this project. First read the set-up guide at https://korzen.dev/bot-protection/docs/setup.md and follow it. Site key: YOUR_SITE_KEY API: https://eu.korzen.dev The API key is in the KORZEN_API_KEY environment variable; never write the key itself. 1. Add the tag to the <head> of the home page and of every page where a sign-up, a sign-in or a checkout starts (Korzen looks for it on the home page to prove the domain is mine): <script src="https://eu.korzen.dev/v1/tag.js" data-site-key="YOUR_SITE_KEY" async></script> Before such a page sends the protected form or request, await window.korzen?.ready(), as the guide shows. 2. On the server, before the sign-up handler creates the account (and before sign-in and checkout, if this project has them), ask Bot Protection for a decision as the guide shows: with Korzen's SDK for this project's language, or where it has none, POST https://eu.korzen.dev/v1/decide with the headers the guide lists. Use the timeout the guide gives for the server's region (200 ms in Europe and the US east). 3. With each call, pass "context" with only what that route already has in hand, every field optional: the email on sign-up and sign-in, the phone with its country and type where the form asks for one, and the card's first six digits (its BIN) on checkout when the payment form gives them. Korzen's SDK takes the raw values and hashes them; a raw call sends the hashes https://korzen.dev/bot-protection/docs/context describes. Never add a field to a form or collect anything new just to fill "context". 4. Ask me which routes are payment, login or sign-up actions, and suggest the ones you found. On those, send "protected_action": true with the call (the protectedAction option of Korzen's client): without the tag's token, block mode answers "block". Leave it off webhooks and API routes no page of the site leads to. The account starts in monitor mode, so this stops nobody until I turn on block mode. If the project has none of these, name the forms and requests its pages send and ask me which to protect. 5. Read the "action" field of the answer and act on it: - "allow": go on as usual. - "block": stop, and show the same error a failed sign-up shows, without saying why. If the call fails, takes longer than the timeout, or answers anything but 200, treat it as "allow": Bot Protection must never stop a real customer (fail open). 6. Add KORZEN_API_KEY to the example environment file, with no value. 7. Change nothing else. Show me the diff, and how to test it.
Then
- Review the diff. The call must sit before the account is created, and every error path must let the visitor through.
- Check the routes it asked about. The agent asks which routes are payment, login or sign-up actions, and sends
"protected_action": trueon those: a script that never loads your page is then refused there. Protecting a checkout - Set the key. Put your API key in
KORZEN_API_KEYwhere your server runs; create one on the Set-up page if you need it. - Deploy in monitor mode. Your account starts there: nobody is stopped while you watch the overview fill up.
- Check the first decisions on the dashboard's Decisions page, then read Monitor and block mode.
Works with
Claude Code, OpenAI Codex, Cursor, GitHub Copilot, Windsurf, Gemini CLI, and any agent that can read a web page and edit files. The guide it reads is plain Markdown, at /bot-protection/docs/setup.md, and the site lists it in /llms.txt.
As a skill
The same guide is a skill, for an agent that installs them. Save SKILL.md in your project as .claude/skills/korzen-bot-protection/SKILL.md for Claude Code, or .agents/skills/korzen-bot-protection/SKILL.md for OpenAI Codex, then ask your agent to add Korzen Bot Protection. The ZIP holds it as a plugin.
Rather do it by hand? The tag and the call from your server have every step.