Skip to content
Fix Library

Locked out of wp-admin: how to get back in

Can't log in to WordPress admin? Fix lost passwords, login loops and security plugin lockouts with safe steps. Call (804) 375-4450 for help.

At a glance

Being locked out of wp-admin usually means a forgotten password, a security plugin blocking your IP, or a login loop caused by cookies or mismatched site addresses. This guide shows which symptom points to which cause, the safe recovery routes (reset link, plugin folder rename, database or WP-CLI reset), and when an unknown admin account means you should treat it as a hack.

Updated November 29, 2026 · For site owners who cannot log in to WordPress

  • For owners and editors who cannot sign in to WordPress admin
  • Common causes forgotten password, mail not arriving, security plugin block, login loop
  • Fixes reset link, rename plugin folder, database or WP-CLI password reset
  • Warning sign an admin user you did not create means a possible hack
  • Help live support, or emergency support with a 15-minute response
  • Pricing rescue is pay-only-if-fixed; the quote comes before work starts

Being locked out of wp-admin usually means a forgotten password, a security plugin blocking you, or a login loop. Try the Lost your password link first, then check whether a security plugin or address mismatch is the cause. If an unknown admin account exists, treat it as a hack.

What does each symptom point to?

The login page may reject your password, redirect back to itself, show a 403, or say your IP is blocked. Each points to a different cause, so note exactly what you see.

What you seeLikely causeFirst test
"Password you entered is incorrect"Password differs, or someone changed itLost password link
"Unknown username"Account renamed or removedList users in the database or WP-CLI
Page reloads after loginCookie, address mismatch or cached login pagePrivate window, check both address settings
"IP blocked" or "too many attempts"Security pluginWait, or rename its folder
403 or blank wp-loginFirewall rule or crashed pluginRename the plugins folder
Reset email never arrivesSite cannot send mailDatabase or WP-CLI reset

What are the safe steps?

Back up files and database before changes that touch them.

  1. Use "Lost your password?"

    on /wp-login.php with your username or email, and check spam and the right inbox.

  2. Try another browser or a private window

    and clear cookies for the site. This fixes many loops.

  3. Disable security plugins

    Over SFTP, rename the plugin's folder in wp-content/plugins. If you can log in, rename it back and add your IP to its allow list.

  4. Disable all plugins

    by renaming wp-content/plugins to plugins-off, log in, restore the name, then re-enable one by one.

  5. Reset the password directly

    using the database or WP-CLI route below.

  6. Check Users

    once in, and change passwords for every admin.

How do I reset the password directly?

Open the wp_users table (your prefix may differ), edit your row, set user_pass to your new password, choose MD5 in the function dropdown, and save. WordPress upgrades the hash on login. Note the original value first.

Which route should I choose?

Your situationSuggested route
You remember the email and can receive mailLost password link
Mail does not arriveDatabase or WP-CLI reset
IP blocked by a security pluginRename the plugin folder, then add your IP to the allow list
Login page reloadsClear cookies, try a private window, check the addresses in settings
White screen after loginDisable plugins, then see the critical error guide
Unknown administrator existsTreat as a hack and call for help

Why does the login page loop?

A loop happens when WordPress sets a cookie for one address, then sends you to another, so the cookie is ignored. Common reasons are a mismatch between http and https, www and non-www, or a caching rule that stores the login page. Setting one canonical address, forcing HTTPS in a single place and excluding the login URL from page caching normally resolves it. See SSL setup and fix if the mismatch came from a recent HTTPS change.

When should I stop and call someone?

Stop if you find admin users you did not create, if your email address on the account changed, if the password keeps changing, or if the login page redirects somewhere unrelated. That is a compromise. Do not delete wp-config.php or set wide permissions on your files.

Unknown admin accounts are treated as a security incident

What should I do after I am back in?

  1. Change the passwords of every administrator and any account sharing the password elsewhere.

  2. Turn on two-factor sign-in for admins.

  3. Remove users who no longer need access and give the rest the lowest role that does the job.

  4. Check the account email is yours and that the site can send mail; see WordPress not sending email.

  5. Take a fresh backup now that access is restored.

How do we fix it?

Use live support and we will walk back in with you, or emergency support, which responds within 15 minutes with service credits and rescue that is pay-only-if-fixed. If an attacker is involved, we follow hacked site recovery.

Locked out right now?

A person reads it, at any hour.

FAQ

Questions people ask

11 answers. Can't find yours? Ask an engineer.

The password reset email never arrives. What now?

WordPress emails often fail to deliver. Use a different recovery route, such as resetting through the database or WP-CLI, then fix the site's mail setup so future resets work.

Link to this answer
What if my login page keeps reloading?

That is a login loop, often caused by cookies, mismatched site addresses or a caching rule on the login page. Clear cookies, try a private window and check that WordPress Address and Site Address match.

Link to this answer
Could I have been hacked?

Possibly, if your password changed, your account email changed or unknown admin users appear. Treat that as a security incident and do not simply reset the password and move on.

Link to this answer
Can a security plugin lock me out?

Yes. Limit-login and firewall plugins can block your own IP after failed attempts. Renaming the plugin folder over SFTP disables it so you can log in and add your IP to its allow list.

Link to this answer
Will resetting the password in the database break anything?

No. Setting user_pass with the MD5 function is a recognised recovery route, and WordPress upgrades the hash on your next login. Note the original value first and take a backup.

Link to this answer
What does 'unknown username' mean?

The account was renamed or removed, or you are using the wrong site. Check the Users table in the database or use WP-CLI to list users, and treat a missing admin as a possible compromise.

Link to this answer
Should I keep retrying my password?

No. Repeated failed attempts can trigger a security plugin lockout and make the problem worse. Stop after a couple of tries and use the reset link or another recovery route.

Link to this answer
I get a 403 or a blank page on wp-login. What is it?

A 403 usually comes from a firewall rule or security plugin. A blank page can be a crashed plugin. Rename the plugins folder to test, and see the critical error guide if a fatal error is behind it.

Link to this answer
Is it safe to install a plugin to get back in?

Avoid it. Installing a plugin from an unknown source just to regain access can create a bigger problem. Use the reset link, the database or WP-CLI routes instead.

Link to this answer
What should I do once I am back in?

Change every administrator password, turn on two-factor sign-in, remove users who no longer need access, confirm the account email is yours, check mail sending works, and take a fresh backup.

Link to this answer
Can you get me back in?

Yes. Live support can walk through it with you, and emergency support responds within 15 minutes. If an attacker is involved, we follow the hacked site recovery process.

Link to this answer

Want an engineer on it?

Tell us what is wrong in plain words. A person reads it, today.