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 asKORZEN_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
- The tag. One script in the
<head>of the pages where a protected action starts. It reads how the browser behaves and leaves a_kzcookie. Before the action, the page callsawait window.korzen?.ready(). The tag - The call from your server. Before the action, your server sends the visitor's IP, User-Agent and
_kzcookie to/v1/decideand applies theactionit gets back. The call from your server - 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
Pick your stack
Frameworks
- Next.js
- Express
- Fastify and NestJS
- Web-standard Request
- Django and Flask
- FastAPI
- Rails
- Laravel
- PHP and Symfony
- Go net/http
- Spring Boot
- ASP.NET Core
- Rust (Axum, Actix Web)
Platforms and edge
Sign-in providers
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.