100% Free · Open Source GPLv2 · Zero setup requiredGet the Plugin

Opens in a new tab
ITX UserOps
Premium

Login security

Lockouts, IP rules, login hours, country blocking, bot defence and adaptive step-up. The module most able to lock you out.

This page is the reference. For what login security is for and what it looks like, see the feature overview.

The largest module, and the one to be most careful with. Every setting here can block a sign-in, including yours.

Read Getting back in before enabling any of it.

Brute-force lockout

KeyDefault
login_security.bruteforce.enabledtrue
login_security.bruteforce.max_attempts5
login_security.bruteforce.window_minutes15
login_security.bruteforce.lockout_minutes15

Counted per IP and per username, with exponential backoff on repeats.

Per-username matters: an attacker distributing attempts across a botnet defeats per-IP counting entirely, because no single address ever reaches five. Counting the target as well as the source catches the distributed case.

wp itxuo unlock --user=alice
wp itxuo unlock --ip=203.0.113.9

clears one lockout without standing the module down.

IP allow and block lists

KeyDefault
login_security.ip_allowlistempty
login_security.ip_blocklistempty

CIDR supported. An allowlist, once non-empty, means only those ranges may sign in.

An allowlist is the fastest way to lock yourself out of your own site. Your address is not as static as you think — mobile networks, home broadband and VPN exits all move. If you set one, set it from the address you are currently using, verify from a second device, and know where ITXUO_DISABLE_LOGIN_SECURITY lives before you close the tab.

Login hours

KeyDefault
login_security.login_hoursempty

Per-role windows, timezone-aware. "Editors may sign in 07:00–20:00 in Europe/London."

Useful when it matches a real working pattern, and a nuisance when it does not. It does not end an existing session at the boundary; it prevents a new sign-in.

Country rules

KeyDefault
login_security.country_modeblock
login_security.country_listempty
login_security.geo.mmdb_pathempty

Backed by a local GeoLite2 database that you supply the path to. No lookup service, no outbound request, no per-request latency to somebody else's API.

If no database is configured, country rules cannot evaluate and do not block. That is the safe direction — a missing geo database must never mean "block everyone".

Bot defence

KeyDefault
login_security.bot_defensetrue

Catches the automated form submissions that make up most login noise. No CAPTCHA, no third-party script, nothing for a real person to solve.

Generic error messages

KeyDefault
login_security.hardening.generic_errorstrue

WordPress by default says "unknown username" or "the password you entered for the username *alice* is incorrect" — which confirms whether an account exists. This replaces both with one message that reveals nothing.

Adaptive step-up

KeyDefault
risk.enabledfalse
risk.remember_days180
risk.exempt_rolesempty

Scores a sign-in against what is normal for that account — new device, new country, unusual hour — and asks for a second factor when it looks unfamiliar, rather than on every login.

Recognised devices are remembered for risk.remember_days. A passkey login suppresses step-up, because it is already stronger.

New-device alerts

KeyDefault
login_security.alerts.new_devicetrue
login_security.alerts.scopeall

Notifies on a sign-in from a device the account has not used before. Scope can be narrowed to particular roles or groups.

Enumeration hardening

Stops WordPress volunteering the list of your usernames:

KeyDefaultBlocks
enum.rest_usersoff/wp-json/wp/v2/users
enum.author_queryfalse/?author=1 redirects
enum.oembed_authorfalseAuthor name in oEmbed responses
enum.user_sitemapfalseThe author sitemap
enum.illegal_loginsfalseRegistration of reserved usernames

Each is off by default because each can break something legitimate — a headless front end reads /wp-json/wp/v2/users, and an author sitemap is sometimes wanted.

XML-RPC

KeyDefault
xmlrpc.modeoff
xmlrpc.allowed_methodsempty
xmlrpc.disable_multicallfalse

system.multicall is the one worth knowing about: it lets an attacker attempt hundreds of passwords in a single HTTP request, which is how XML-RPC brute-force gets past naive rate limiting.

Application passwords

The IP, country, lockout and hours rules can be extended to the application-password channel — see Application passwords, where those switches live.

Every block raises an event

Each of these dispatches a severity: warning event, so an alert rule can notify on it with no extra wiring, and the log records what blocked what.

The kill switch

define( 'ITXUO_DISABLE_LOGIN_SECURITY', true );

Turns off IP rules, geo blocking, lockouts, login hours, bot defence and adaptive step-up — all of it, to fix any one of them, and it stays off until somebody edits wp-config.php again.

That bluntness is why the WP-CLI commands exist. Prefer them.

Log in

Vote on ideas, submit your own and join the discussion.