Bot Protection never acts on its own: your server applies the action it answers. The mode decides what that action is.
Monitor mode
Every new account starts here. Every answer's action is allow, so nobody is stopped. The dashboard's overview counts how many decisions block mode would have blocked. Put the call in, deploy, and watch for a few days.
Measure before you block
Keep monitor mode for a few days of real traffic. On the Decisions page, filter In block mode by block: these are the decisions block mode would have refused, protected_action and verified crawlers included. The overview's Would block counts the same. Open the ones that look like people: report each one that was a person with Report a wrong decision. When what is left is bots, turn on block mode.
Block mode
Turn it on in the Mode card of the Protection page, from the next request. The action then follows the visitor's class:
| Class | Action | Means |
|---|---|---|
| human | allow | a person, with two kinds of proof and no evidence of a bot |
| unknown | allow, or block if you choose | not enough evidence either way; most first visits |
| bot | block | automation, from what the client does |
A human is always let through and a bot always blocked; what an unknown visitor gets is your choice, in the same card. A switch back to monitor mode is as quick.
Block mode needs no domain set up first, and works on a page on localhost too. Your server's first decision on a visitor of your pages who is not a bot adds your domain to the Set-up page, where you can also add one by hand or drop one.
What each action means for your code
allow: go on as if Bot Protection were not there.block: refuse the action. Answer with the same message a failed sign-up shows, so a bot learns nothing.
Block mode never stops a page from loading. Bot Protection judges only the actions your server asks about (a sign-up, a login, a checkout), so a blocked bot still sees your site; the action is what it cannot complete.
An action that needs the tag
A visitor that never runs your page, a script or a person whose ad blocker stops the tag, is unknown, not bot. On an action where that is not enough, such as a sign-up, a checkout or joining a queue, send "protected_action": true: without a token from the tag, token_required is true, and in block mode action is then block. People whose ad blocker stops the tag earn no token, so send it only on the actions that need it. Protecting a checkout
Answering a refusal quietly
A refusal teaches a bot it lost: its operator changes the script and tries again. Where that matters, your server can answer a refused action with something that looks like success and gives nothing, such as a place in a queue that never comes up or a sign-up whose email never comes, in onBlock: onBlock: (req, res) => res.status(202).json({}) (in Go, OnBlock). Never on a sign-in form, or anywhere a person judged a bot by mistake needs to know what happened.
Pausing
The protection switch on the Set-up page pauses everything without a deploy: every answer is allow, nothing is recorded or billed.
When two settings meet
Some settings only work with others. The Set-up page greys out a choice that has no effect, says why beside it, and keeps what you chose, so it takes effect again as soon as it can:
- What
unknowngets, in monitor mode: nothing is refused, soactionisallow, and only In block mode on the Decisions page follows your choice. - The mode while the protection is paused: every visitor gets through until you turn it back on, in monitor mode.
- The block mode preview, a weekly email apart from the attack summary: it tells what block mode would have stopped, so it is sent in monitor mode only.
When two settings meet, one wins, and the API says which:
- A verified known bot gets your choice for it, or its kind's, and nothing else decides: neither your custom rules nor a class (the order).
protected_actionwins over a class you let through: without an earned tokentoken_requiredis true. In block modeactionis thenblock; in monitor modeactionstaysallow. It wins over your own server and over a verified crawler you let through too: neither carries a token, so leaveprotected_actionoff the routes they call.- In the SDKs,
onBlockis called in block mode only. The SDK learns your settings from each decision, so it cannot warn at start-up that it will never be called.