Skip to content

How to Lock Out Repeated Failed Sign Ins

Passkeys cannot be guessed, but recovery codes are typed, and anyone can throw unknown passkeys at the form. The lockout stops one address after a few failures.

Open Configuration → Security → Brute Force Protection. Failed Attempts Limit is 5 and Lockout Duration (Minutes) is 15 by default.

The Brute Force Protection section

Leave Behind a Proxy off unless every row in Activity shows your proxy’s address. See the caution on Security.

Open Emails & Alerts. IP Lockout is ticked by default. Alert Recipient is your site’s admin email unless you set another.

On the demo, one address tried five passkeys the store had never seen. Each was refused. The sixth attempt got:

Too many failed attempts. Please try again later.

The alert arrived when the fifth failure triggered the lockout:

The IP address locked out email

Wrong recovery codes count too. A successful sign in from that address clears its count.

Activity filtered to Login failed shows each attempt, its device and its IP address. Login blocked rows are the attempts made during the lockout.

Activity filtered to failed sign ins

The dashboard’s Failed Attempts card counts both.

The password form is WooCommerce’s and WordPress’s own, so the lockout does not count wrong passwords. A locked out address can still sign in with a password.