Home › Knowledgebase › KB-1524

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.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

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:

Quick Fix Steps

  1. Log in to your website admin panel immediately and change your password to a strong, unique passphrase.
  2. Review the list of registered users and delete any accounts you do not recognise.
  3. Update your website's core software, themes, and plugins to the latest versions.
  4. Install and configure a security plugin or firewall that limits login attempts.
  5. 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.

  1. Navigate to your user profile settings within the admin panel.
  2. Select the option to change your password.
  3. Enter a strong passphrase that is unique to this website and not used for any other service.
  4. 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.

  1. Access your website's plugin or extension repository.
  2. Search for a reputable login security or firewall plugin.
  3. Install and activate the plugin.
  4. Configure the settings to lock out an IP address after a set number of failed attempts (e.g., 5 failures).
  5. 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.

  1. Install a two-factor authentication plugin compatible with your website platform.
  2. Go to your user profile and locate the Two-Factor Authentication settings.
  3. Follow the prompts to link your account with an authenticator app, such as Google Authenticator or Microsoft Authenticator.
  4. Scan the QR code provided on the screen using your mobile app.
  5. 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.

  1. Access your website files via FTP or your hosting control panel's File Manager.
  2. Locate the .htaccess file in your website's root directory.
  3. Add the following rules to the top of the file, replacing YOUR_IP_ADDRESS with your actual public IP:
Order Deny,Allow
Deny from all
Allow from YOUR_IP_ADDRESS
  1. Save the .htaccess file 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:

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.

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?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket