Being locked out of your own website is one of the worst feelings in business. You cannot edit, you cannot publish, and every hour offline costs you enquiries.
The good news is that the cause is almost always one of four things, and three of them you can fix yourself in under fifteen minutes.
Is the password wrong, or are you actually locked out?
These are two different problems and they need two different fixes. Test it like this.
Go to yoursite.com.au/wp-login.php and try to log in once.
What you see next tells you what is happening:
- “Invalid username or password.” The login page is working. This is a credentials problem. Go to the password section below.
- A blank white page, a 403, or a “too many login attempts” message. The page is being blocked. This is a security plugin or a server rule. Go to the lockout section.
- A 404, or you are redirected somewhere odd. The login URL has moved. Go to the login URL section.
- The site itself is down. This is not a login problem at all.
Do not keep retrying. Most security plugins lock an IP for 30 to 60 minutes after four or five failed attempts. Every retry resets that clock.
What is the correct WordPress login URL?
By default, WordPress logs in at /wp-login.php. Some sites also accept /wp-admin/, which redirects there automatically.
If neither works, the site is probably running a plugin that hides the login page, commonly WPS Hide Login or a similar tool. Developers do this to reduce brute force attacks, and then forget to tell the client.
Try these in order:
/wp-login.php/login//admin//wp-admin/
Also check your own email history and any handover notes for a link. If a developer set it up, the URL is usually in the original setup email.
If you cannot find it, it can be recovered from the database. The option name is stored in the wp_options table. That is a job for cPanel’s phpMyAdmin, and we cover the path into phpMyAdmin further down.
How do I clear a security plugin lockout?
If you can still get into cPanel, you can disable the plugin without touching the database.
- Log into cPanel.
- Open File Manager.
- Go to
public_html/wp-content/plugins. - Find the folder for your security plugin. Common names are
wordfence,better-wp-security(Solid Security),sucuri-scannerandall-in-one-wp-security-and-firewall. - Rename the folder by adding
-offto the end, for examplewordfence-off.
This instantly disables the plugin while keeping all its settings intact. Log in, then rename the folder back and whitelist your own IP inside the plugin settings before you do anything else.
Wordfence is the most common culprit here. It locks out the administrator IP when someone fails a login repeatedly, and the block is invisible unless you know where to look.
How do I reset my WordPress password from cPanel?
Before you use phpMyAdmin, check whether your plan includes a one-click reset. Many accounts on our WordPress hosting include WordPress Toolkit, which has a password reset built into the dashboard. That is the fastest route and it does not touch the database.
If you do not have that tooling, use phpMyAdmin:
- In cPanel, open phpMyAdmin.
- Select your WordPress database on the left.
- Open the
wp_userstable. - Find your username and click Edit.
- In the
user_passrow, type a new password. - In the Function column, select MD5.
- Click Go.
WordPress detects the MD5 hash on your next login and quietly upgrades it to a secure hash. Log in with the new password and you are back in.
What if none of this works?
At this point the problem is not your password. Check two things.
First, look at whether the site loads at all. If the front end is also broken, the issue is the database or the server, not the login.
Second, check your cPanel error log. If you see “Access denied for user” or “too many connections”, the database is the problem, not your account.
Our web hosting plans all include cPanel access with File Manager and phpMyAdmin, which means you always have a second door into your own site. If you do not have that, it is worth fixing before you need it.
How do I stop getting locked out again?
Six habits that prevent almost every repeat case:
- Use a password manager. Most lockouts start with a mistyped password.
- Bookmark the real login URL so you are not guessing.
- Create a second administrator account with a different email address. It is your spare key.
- Make sure the admin email is a mailbox you actually monitor.
- Never run two security plugins at once. They fight each other.
- Write down where your cPanel login lives and keep it somewhere you can find at 9pm.
Frequently asked questions
Why does my WordPress login page keep bouncing me back to the same screen?
That is a cookie problem. Clear cookies for your domain, or try an incognito window. If it still loops, deactivate your caching plugin from File Manager.
Can I reset my WordPress password without email access?
Yes. Use phpMyAdmin as described above, or the password reset in WordPress Toolkit if your hosting plan includes it.
Is it safe to rename a plugin folder in File Manager?
It is safe and reversible. Renaming disables the plugin without deleting it. Rename it back to restore it.
What if my developer changed the login URL and won’t tell me?
You can recover it from the database, or from your cPanel file system. If you own the hosting account, you own the site.
Does WordPress lock you out permanently after failed logins?
No. Blocks are temporary, usually 30 to 60 minutes, and only the host or the security plugin can shorten them.
Still locked out?
If you have tried all of this and you are still outside your site, call Australian Hosting Solutions on (02) 9199 8787. We will get you back in and tell you what caused it, so it does not happen again.