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
On this page
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 see | Likely cause | First test |
|---|---|---|
| "Password you entered is incorrect" | Password differs, or someone changed it | Lost password link |
| "Unknown username" | Account renamed or removed | List users in the database or WP-CLI |
| Page reloads after login | Cookie, address mismatch or cached login page | Private window, check both address settings |
| "IP blocked" or "too many attempts" | Security plugin | Wait, or rename its folder |
| 403 or blank wp-login | Firewall rule or crashed plugin | Rename the plugins folder |
| Reset email never arrives | Site cannot send mail | Database or WP-CLI reset |
What are the safe steps?
Back up files and database before changes that touch them.
- Use "Lost your password?"
on
/wp-login.phpwith your username or email, and check spam and the right inbox. - Try another browser or a private window
and clear cookies for the site. This fixes many loops.
- 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. - Disable all plugins
by renaming
wp-content/pluginstoplugins-off, log in, restore the name, then re-enable one by one. - Reset the password directly
using the database or WP-CLI route below.
- 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.
If your host provides SSH, find your ID with wp user list, then run:
wp user update <ID> --user_pass=NewStrongPasswordWhich route should I choose?
| Your situation | Suggested route |
|---|---|
| You remember the email and can receive mail | Lost password link |
| Mail does not arrive | Database or WP-CLI reset |
| IP blocked by a security plugin | Rename the plugin folder, then add your IP to the allow list |
| Login page reloads | Clear cookies, try a private window, check the addresses in settings |
| White screen after login | Disable plugins, then see the critical error guide |
| Unknown administrator exists | Treat 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.
What should I do after I am back in?
Change the passwords of every administrator and any account sharing the password elsewhere.
Turn on two-factor sign-in for admins.
Remove users who no longer need access and give the rest the lowest role that does the job.
Check the account email is yours and that the site can send mail; see WordPress not sending email.
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.
A person reads it, at any hour.
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 answerWhat 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 answerCould 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 answerCan 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 answerWill 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 answerWhat 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 answerShould 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 answerI 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 answerIs 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 answerWhat 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 answerCan 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 answerWant an engineer on it?
Tell us what is wrong in plain words. A person reads it, today.