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

Opens in a new tab
ITX UserOps

Locked out

What to try, in what order, depending on what you can still reach.

Work down this list. Each step is less surgical than the one before it.

1. Can you reach WP-CLI?

wp itxuo doctor --ip=<the address you are locked out from>

Read-only. It prints which kill switches are defined, whether premium is unlocked, which controls are on, the active lockouts, and whether your address would survive the IP and country rules.

Pass --ip. WP-CLI has no client address of its own, so without it the IP and country checks cannot be judged against the address that is actually failing — and those are two of the most common causes.

Then fix the one thing it names. The command reference has each one.

2. Cannot reach WP-CLI, but can edit wp-config.php

Add the narrowest switch that covers your symptom:

SymptomConstant
Blocked before the password — lockout, IP, country, hours, bot defence, step-upITXUO_DISABLE_LOGIN_SECURITY
Password accepted, stuck at the code promptITXUO_DISABLE_2FA
Re-authentication prompt loopsITXUO_DISABLE_SUDO
Signed out immediately after signing inITXUO_DISABLE_SESSION_POLICY
Browser refuses to load the site over HTTP/HTTPSITXUO_DISABLE_HEADERS — but read the HSTS caveat
define( 'ITXUO_DISABLE_LOGIN_SECURITY', true );

Get in, fix the setting properly, then remove the line. These are blunt — see kill switches.

3. Cannot edit wp-config.php, but can reach the filesystem

Rename the plugin directory. WordPress deactivates a plugin whose files have gone, and ordinary authentication returns immediately.

Nothing is deleted. Your log, sessions and settings are in the database and are still there when you rename it back.

4. Only database access

UPDATE wp_options
   SET option_value = 'a:0:{}'
 WHERE option_name = 'itxuo_settings';

Resets every setting to its default — which, since almost everything ships off, means enforcement stops.

Or deactivate the plugin by editing active_plugins. Both are last resorts; both work.

The two rails, whatever else is true

  • You cannot have disabled your own account. It is refused on the server.
  • You cannot have disabled the last administrator. Same.

So "every administrator is disabled" is not a state this plugin can produce.

Common causes, in the order they actually happen

An IP allowlist and a changed address. By far the most common. Mobile networks, home broadband and VPN exits all move. wp itxuo doctor --ip= names it immediately.

Required two-factor with no grace period, on a role whose members had not enrolled. Everybody at once, on the morning you switched it on.

Required two-factor on a store with no front-end enrolment, so customers had no way to comply.

Country blocking with your own country not in the list. Or a geo database that stopped resolving, though a missing database fails open rather than blocking.

An idle or absolute session limit shorter than intended — minutes instead of hours.

HSTS, which is not a plugin lockout at all: the browser is refusing to connect and never reaches WordPress. That one needs the certificate fixed; the plugin cannot un-send a header a browser already cached.

Afterwards

Re-enable what you turned off, one thing at a time, and check wp itxuo doctor between each.

A kill switch left in wp-config.php is a security feature you are paying for and not receiving. It is silent, and nothing will remind you.

Log in

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