Skip to main content
Authentication is new. Protection is off until you turn it on. Rate limits and bounded code attempts always apply.
Bot protection runs on every sign-up, sign-in and password reset. It checks the attempt against six policies. Each policy has a mode:

Configure protection

Read and change settings with GET and PATCH on protection/ in your application’s Authentication management API, or from the console.
enabled and breached_password_check are false by default. The modes above are the defaults once you turn protection on.

Policies

The vpn and travel policies use Didit’s IP analysis. If that lookup is unavailable, the attempt continues; a sign-in never fails because of it. The location for travel updates only after a completed sign-in.

Brute force and lockout

The brute mode decides what happens after 5 failures:
  • Block: the person must reset their password before they can sign in again.
  • Challenge: the account is locked for 15 minutes, and the next attempt needs an extra proof.
  • Off or Log: no lock.
Password reset stays available after a brute-force block, and a reset clears the lock. Your team can also unlock an account from the console. If you have never saved protection settings, a simpler rule applies: 5 failed passwords lock the account for 15 minutes.

Bot score and device signals

Send device signals on runtime calls with these headers. The hosted pages send them for you. These signals are context for a decision, not proof of identity. They also travel with each sign-in event, where rules can read event.device.bot_score.
AUTOMATION_FRAMEWORK_DETECTED is a different check. It is an IP and device analysis warning on verification sessions, raised when the verification SDK reports a browser automation framework. It does not run at sign-in. At sign-in, automation is caught by the bots policy above.

Challenges

A challenged attempt returns this instead of a sign-in code:
Complete it with POST protection/complete/:
  • {"challenge", "method": "email_code", "code"} with the 6-digit code sent to the person’s email, or
  • {"challenge", "method": "passkey", "response"} with the WebAuthn response.
You get 5 attempts within 5 minutes. If the person has no available proof, the call returns 403 {"error": "protection_factor_unavailable"}.

Breached passwords

With breached_password_check: true, Didit checks new and reset passwords against known breached passwords. The password itself is never sent anywhere. A breached password is rejected with password_breached. At sign-in, a breached password counts as a stuffing match. If the check is unavailable, the password is accepted.

Attack mode

Turn on attack mode during an active attack:
  • POST protection/attack-mode/ with {"duration_hours": 1} (or 6 or 24) returns 201.
  • DELETE protection/attack-mode/ ends it early. It also ends on its own after the duration.
While attack mode is on:
  • every sign-up and sign-in must pass a passkey challenge. An email code is not accepted. New sign-ups and people without a passkey cannot finish until attack mode ends.
  • a sign-up from a VPN, Tor or data-center network is blocked.

Rate limits

Every runtime route is limited per IP, per application: Over the limit, the call returns 429. Respect a Retry-After header when one is sent. Sign-in attempts are also limited per minute: 60 per IP, 15 per account, 30 per device, 3,000 per application, and 20 SMS or WhatsApp code requests per phone-number prefix. Token refreshes have an application bucket of their own, 6,000 a minute, so refreshes never use up your sign-ins.

Events

Each decision is recorded as an authentication event: risk_logged, attempt_challenged, attempt_blocked, challenge_passed, challenge_failed, attack_mode_started and attack_mode_ended. The event shows which policy matched.

Test it

In a sandbox application, test each mode you enable: a blocked attempt, a passed and a failed challenge, a lockout and its reset, and attack mode on and off. Keep errors generic in your UI so they do not reveal whether an account exists.
Last modified on November 3, 2026