Docs

How lockout works

3 min readUpdated November 19, 2026

Lockout is Shield’s core protection against password guessing. It counts failed sign-ins, and when an IP address (or a username) fails too many times, it locks it out for a while. This page explains the rules. To change them, see “Set attempt limits and lockout times”.

The basic rule

Every failed sign-in is counted against the visitor’s IP address, within a rolling time window. Once an IP reaches the attempt limit inside that window, it is locked out for a set time. During the lockout, every sign-in attempt from that IP is refused, even with the correct password.

On a fresh install, an IP that fails 5 times in 10 minutes is locked out for 15 minutes. You can change all three numbers on the Lockout tab.

The Active IP lockouts page displays two white status boxes with dashed borders. Each box features a green checkmark icon above the text “No active IP lockouts. All clear” and “No usernames currently locked. All clear,” respectively.

What a locked-out visitor sees

The login form is replaced by an “Access temporarily restricted” page that says how long to wait. You can edit the message on the Lockout tab. The text {time_remaining} is replaced with the minutes left.

Escalating lockouts

A short lockout slows an attacker down, but a persistent one just waits and tries again. So Shield keeps a count of each IP’s lockouts. When an IP is locked out too many times, the next lockout is a long one. On a fresh install, the fourth lockout lasts 24 hours. Lockouts are remembered for about a week.

Per-username lockout

Some attacks come from many IP addresses at once, all guessing one username, so no single IP reaches the limit. To catch that, Shield also counts failures per username across all IPs. When one username collects three times the usual attempt limit, that username is locked out for everyone for the short lockout time. The real owner of the account can try again when it ends.

Honeypot usernames

Some usernames, like “admin” and “root”, are the first thing bots try. Shield treats a sign-in attempt with one of these names as an attack on the spot. The IP is locked out right away, without waiting for repeated failures. See “Honeypot usernames” for the list and how to change it.

What does not count as a failure

  • Successful sign-ins. A successful sign-in clears that IP’s failed-attempt count.
  • Whitelisted IPs. An IP on your whitelist is never counted or locked out.
  • Accounts waiting for email confirmation. If the password is right but the account hasn’t been confirmed yet, the attempt is not counted.

Blocked IPs

You can also block an IP by hand, with the blocklist. A blocked IP is refused permanently. It doesn’t depend on counts or timing. See “IP blocklist and whitelist”.

What happens when a lockout starts

Each lockout is written to the event log with the IP, the username tried and the reason. Optional extras can follow:

  • An email alert to you
  • A block pushed to Bunny.net or Cloudflare, if Edge Blocking is set up, so the visitor is stopped before they reach your server
  • A faster refusal with early blocking, if you’ve installed the early-block file

Seeing and clearing lockouts

On the Lockout tab, the Active IP lockouts and Locked usernames lists show what is locked right now. Each entry has an unlock button.

What lockout does not do

Lockout counts failed sign-ins. With the early-block file installed, an IP that keeps flooding the login page is also locked out. It isn’t a full firewall. It works best alongside the other protections: the JavaScript check, a CAPTCHA, two-factor authentication and geo-blocking.

Related topics

  • Set attempt limits and lockout times
  • Escalating lockouts
  • Per-username lockout
  • Honeypot usernames
  • IP blocklist and whitelist
  • Unlock an IP

Was this helpful?

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only