Set attempt limits and lockout times
This page covers the settings that control how strict lockout is. They’re all in one place, under Settings → Login Shield → Lockout, in the Failed attempt lockout section. For the rules behind them, see “How lockout works”.

The settings
Enable lockout. The master switch for tracking failed sign-ins and locking out IPs. Leave it on. If you turn it off, failed sign-ins are still logged, but nobody is locked out.
Max attempts. How many failed attempts an IP can make before it is locked out. You can set 2 to 50. The default is 5.
Observation window. The period over which failed attempts are counted, in minutes. You can set 1 to 60. The default is 10. An IP has to reach the maximum number of attempts inside this window. Older failures stop counting.
Short lockout. How long a first lockout lasts, in minutes. You can set 1 to 720. The default is 15. This time also applies to a username lockout.
Escalate after. The lockout with this number is the long one. With the default of 4, the first three lockouts are short and the fourth is long. You can set 1 to 20. The default is 4. Lockouts are remembered for about a week.
Long lockout. The length of the long lockout, in hours. You can set 1 to 168 (one week). The default is 24. This is the second field on the “Escalate after” row.
Lockout message. The text a locked-out visitor sees. Use {time_remaining} for the minutes left, and {ip} for the visitor’s IP address.
Click Save lockout settings when you’re done.
Choosing values
The defaults are a good fit for most sites: 5 attempts in 10 minutes, then 15 minutes locked out. Here are some ideas if you want to change them.
- A stricter setup. Use 3 attempts, a 30-minute lockout and escalate after 2. This is good for sites with few users, such as a small business or a blog. Real users who mistype their password often should use “Lost your password?” instead.
- A more relaxed setup. Use 8 to 10 attempts. This suits sites with many users or users who share an IP address, such as an office or a school.
- Don’t set it too low. A limit of 2 or 3 can lock out real people who mistype. Don’t set the long lockout so high that a customer is locked out for a week.
Shared IP addresses
Lockout counts attempts per IP address. If many people share one IP (an office, a school, a mobile carrier), one person’s mistakes can count against everyone. If that’s a problem for your users, raise the limit, shorten the lockout, or add the shared IP to the whitelist.
Trust proxy headers (important if you use a CDN)
On the same tab, Trust proxy headers tells Shield to read the visitor’s real IP from your CDN or proxy, such as Cloudflare or Bunny.net. If your site is behind one and this setting is off, Shield sees the proxy’s IP instead of each visitor’s. Then one lockout could block everybody. Turn it on if your site is behind a CDN or proxy. Leave it off if visitors connect straight to your server.
Only turn it on if you trust the proxy, because the headers can be faked by anyone who reaches your server directly. When it is on, Shield reads the headers in this order: CF-Connecting-IP, True-Client-IP, Fastly-Client-IP, X-Real-IP, X-Client-IP, X-Forwarded-For.
Test your settings
- Open a private browser window and go to your login page.
- Enter a wrong password until you reach your attempt limit. (Use a username that isn’t on the honeypot list, and make sure your own IP isn’t on the whitelist.)
- Check that the lockout message appears.
- In another tab, open Lockout → Active IP lockouts to see the entry, and click Unlock to clear it.
Was this helpful?
Thanks for your feedback!
✓ Feedback received. Thank you!