Korzen
Bot Protection
In these docs

Quickstart

Bot Protection in three steps: the tag on your pages, one call from your server before a sign-up or a login, and monitor mode until you trust it.

Bot Protection is bot detection and bot management through one API. Bot Protection tells your server, in one call, whether the visitor behind a sign-up, a sign-in or a checkout is a person or a bot. There is no proxy in front of your site: if Bot Protection is slow or down, your server lets the visitor through and nothing breaks.

Payment, login and sign-up routes: turn on protectedAction ("protected_action": true in the call), so a script that never loads your page cannot take the action. Protecting a checkout

The fastest way: let your coding agent do it Copy one prompt into Claude Code, Codex, Cursor or any coding agent, in your project's folder. It reads our set-up guide, adds the tag and the call, and shows you the diff. Set up with AI

What you need

  • An account: sign up and verify your email. The welcome page that opens then shows your first API key, once: copy it there. Your site key is in the tag on the dashboard's Set-up page, and if the API key is lost, Create a key under API keys there makes another, also shown once.
  • The site key (kz_sk_…) is public and goes in the tag. The API key (kz_ak_…) is secret and stays on your server, in an environment variable such as KORZEN_API_KEY.
  • Put the tag on your home page too: that is how Korzen learns your domain. Your domains Your 14-day free trial starts at your first decision. Plans and limits

Three steps

  1. The tag. One script in the <head> of the pages where a protected action starts. It reads how the browser behaves and leaves a _kz cookie. Before the action, the page calls await window.korzen?.ready(). The tag
  2. The call from your server. Before the action, your server sends the visitor's IP, User-Agent and _kz cookie to /v1/decide and applies the action it gets back. The call from your server
  3. The mode. Every account starts in monitor mode: every answer is allow, and the dashboard shows what block mode would have stopped. Turn on block mode when the numbers look right. Monitor and block mode

Visitors whose network blocks Korzen's host: serve the tag and its beacon from your own domain. First-party mode

Check that it works

Open a page of your site that has the tag, go through a protected action, then press Check your integration on the Set-up page. It reads your server's latest decision, made with your own key, and says whether the tag ran, whether the call came and carried the tag's token, and what the decision was. A first visit usually reads unknown: not enough evidence either way, and the visitor is allowed. Ten checks a minute per account.