Skip to content
Launch offer 50% off your first year of Keel Pro. See prices →

Troubleshooting

Locked out of WordPress? Every way back in

The rescue switches for a hidden login page, two-factor login and trusted devices, what to do when your own address is blocked, and how to turn Keel off without wp-admin.

2 minutes read · Updated November 28, 2026

Security features keep attackers out. Now and then they keep you out too: a forgotten login address, email codes that stopped arriving, a new laptop that is not trusted yet, too many wrong passwords on a bad morning. Every Keel feature that can lock you out has a way back in, and none of them needs you to delete anything.

How to use a rescue switch

  1. Open your hosting control panel’s file manager, or connect with FTP or SFTP.
  2. Open wp-config.php in the main folder of your WordPress installation (the folder that contains wp-content).
  3. Add the line from the table below, on its own line, above /* That's all, stop editing! */.
  4. Save, and log in.
  5. Fix the cause (look up the address, fix email, confirm the device).
  6. Remove the line again.
Problem Line to add
Forgot the secret login address define( 'KEEL_DISABLE_CUSTOM_LOGIN', true );
Two-factor codes do not arrive define( 'KEEL_DISABLE_2FA', true );
A new device cannot be confirmed define( 'KEEL_DISABLE_DEVICES', true );
Remove the line as soon as you are back in. While it is there, that protection is off for everyone.

Your own address is blocked

If you see “Access denied” after too many wrong passwords, your IP address is blocked. You have three options:

  • Wait. A first block is temporary; its length is set in Firewall › Failed logins & bans.
  • Use another network. Switch your phone to mobile data, log in from it, and unblock your address in Firewall › Blocked IPs.
  • Ask a colleague with admin access to unblock you.

Then add your office and home addresses to Always allow in Firewall › Allow & block lists, so it never happens again.

Your account is paused

If many failed logins hit your account from around the world, Keel pauses password logins for it for a while, to stop a distributed attack. With Keel Pro, use “Email me a login link” on the login page: the link works even while password logins are paused. Otherwise wait for the pause to end, and change your password afterwards, since someone has clearly been trying it.

Turn Keel off completely

If something else is wrong and you need Keel out of the way:

  1. In the file manager, open wp-content/plugins.
  2. Rename Keel’s folder (keel-speed-security for the free version, keel-pro for Pro), for example by adding -off.
  3. WordPress switches the plugin off. Log in.
  4. Rename the folder back, then deactivate Keel properly from the Plugins screen if you still want it off, so it removes its server rules from .htaccess.
Your settings are safe in all of these cases. Nothing is deleted, and turning a protection back on restores it exactly as it was.

Preventing lockouts

  • Save the secret login address in your password manager.
  • Make sure WordPress email works before relying on email codes.
  • Add your own addresses to Always allow.
  • Keep a second administrator account for emergencies, protected with an authenticator app.
Still stuck?

Pro customers: use Support in your account. Everyone else: write to us, we read everything.

Contact

Five minutes from now

Give your site a keel.

Steady when traffic spikes, calm when attacks come, found when people search. Start free; go Pro when a site needs more.