How To Stop Unauthorised Login Attempts On My Website Admin Panel
Summary
This guide helps you troubleshoot and resolve: How To Stop Unauthorised Login Attempts On My Website Admin Panel. Follow the steps below to fix the issue.
Common Causes
Unauthorised login attempts, often called brute force attacks, occur when automated bots repeatedly guess the username and password for your website's administrator area. For small businesses and sole traders, a compromised admin panel can lead to stolen customer data, defaced web pages, or malicious code being injected into your site. This guide helps you identify the signs of an attack and implement stronger security measures to protect your website's backend.
Remember — If you host with us, you don't need to do this yourself — just Open a Ticket and our Brisbane team will get it sorted.
Identifying Signs of an Attack
Before applying fixes, it is important to determine if your admin panel is currently being targeted. Common indicators include:
- Multiple failed login notifications sent to your email address.
- Unexpected account lockouts when you attempt to log in.
- Significant spikes in traffic to your
/wp-adminor/administratorlogin pages. - Unfamiliar user accounts created in your website's user management area.
- Your website becoming slow or unresponsive due to high volumes of login requests.
Quick Fix Steps
- Log in to your website admin panel immediately and change your password to a strong, unique passphrase.
- Review the list of registered users and delete any accounts you do not recognise.
- Update your website's core software, themes, and plugins to the latest versions.
- Install and configure a security plugin or firewall that limits login attempts.
- Enable two-factor authentication (2FA) for all administrator accounts.
Detailed Instructions
Strengthening Your Password
Avoid using common words, business names, or simple sequences. Use a passphrase consisting of three or four random words combined with numbers and symbols.
- Navigate to your user profile settings within the admin panel.
- Select the option to change your password.
- Enter a strong passphrase that is unique to this website and not used for any other service.
- Save your changes and log out of all other active sessions.
Limiting Login Attempts
Limiting login attempts prevents bots from trying thousands of password combinations in a short period.
- Access your website's plugin or extension repository.
- Search for a reputable login security or firewall plugin.
- Install and activate the plugin.
- Configure the settings to lock out an IP address after a set number of failed attempts (e.g., 5 failures).
- Set a lockout duration that discourages automated attacks but does not accidentally block your own IP for too long.
Enabling Two-Factor Authentication (2FA)
Two-factor authentication adds a second layer of security, requiring a code from your mobile device in addition to your password.
- Install a two-factor authentication plugin compatible with your website platform.
- Go to your user profile and locate the Two-Factor Authentication settings.
- Follow the prompts to link your account with an authenticator app, such as Google Authenticator or Microsoft Authenticator.
- Scan the QR code provided on the screen using your mobile app.
- Enter the verification code generated by the app to complete the setup.
Restricting Access by IP Address
If you always manage your website from the same location, you can restrict access to your admin panel to only your specific IP address.
Be very careful when restricting access by IP. If your home or office IP address changes, you may lock yourself out of your own website.
- Access your website files via FTP or your hosting control panel's File Manager.
- Locate the
.htaccessfile in your website's root directory. - Add the following rules to the top of the file, replacing
YOUR_IP_ADDRESSwith your actual public IP:
Order Deny,Allow
Deny from all
Allow from YOUR_IP_ADDRESS
- Save the
.htaccessfile and attempt to access your admin panel to ensure the rule is working.
Troubleshooting
I am locked out of my admin panel
If you have been locked out due to too many failed attempts or an IP restriction:
- Wait for the lockout timer to expire if a security plugin is blocking you.
- Access your site via FTP or File Manager and temporarily rename the security plugin's folder to disable it.
- Edit the
.htaccessfile to remove IP restrictions if you have changed locations. - Open a Ticket if you cannot regain access.
My website is still slow after securing the login
If performance issues persist, the attack may have consumed server resources or left behind malicious files.
- Run a full malware scan using your security plugin.
- Check your hosting account for suspended processes or resource limits.
- Review your website's access logs for suspicious activity.
- Open a Ticket for professional malware remediation and security analysis.
Remember — If you host with us, you don't need to do this yourself — just Open a Ticket and our Brisbane team will get it sorted.
Still Having Issues?
💻 Open a Ticket