Privacy

How to Protect Your WordPress Login from Brute Force Attacks

26 Nov 2026 · 5 min read

What a Brute Force Attack on WordPress Looks Like

WordPress login protection starts with understanding the attack it defends against. A brute force attack is one of the oldest hacking methods there is: an automated script tries password after password against your login page, working through dictionary words and common combinations until one of them works. Depending on how strong your password is, that can take an hour or it can take days, but the script never gets tired and never gives up on its own.

How to Protect Your WordPress Login from Brute Force Attacks

The problem is made worse by a WordPress default: out of the box, WordPress allows unlimited login attempts. There is no lockout, no delay and no warning when someone tries hundreds of wrong passwords in a row. That open door is exactly what brute force scripts are built to walk through, and it is why login protection is not optional for any WordPress site.

Attackers rarely work from a single computer. They often use botnets, large groups of infected computers spread around the world, each trying a few passwords so that no single address stands out. Blocking one address does not stop the attack, because hundreds of others are ready to take its place. Your defence therefore has to work at the login page itself, not just at the level of blocking addresses.

WordPress Login Protection with a Limit Login Attempts Plugin

The simplest form of WordPress login protection is a plugin that limits how many times someone can try to log in. After a set number of failed attempts from one address, the plugin locks that address out for a period of time and tells the visitor how many tries remain or how long the lockout lasts. That single change breaks the economics of a brute force attack, because the script can no longer try thousands of passwords without interruption.

Many of these plugins also send you an email when a lockout happens, keep a log of failed attempts, and work correctly even when your site sits behind a proxy or a content delivery network. Install one, activate it, and check its settings: a small number of allowed retries and a lockout that grows longer with repeated failures is a sensible starting point.

Some all-in-one security plugins include the same feature, and the Jetpack plugin offers brute force protection as part of its security tools, showing you how many malicious login attempts it has blocked. If you already run one of those, enable its protection instead of adding a second plugin that does the same job, because running two tools for one task only adds confusion.

Hide Your WordPress Login Page Address

Another strong layer of WordPress login protection is to move the login page itself. By default, everyone knows that a WordPress login lives at the same familiar address on every site, so attackers do not even need to search for it. A plugin that renames the login address lets you choose a custom address that only you know, and the old address simply stops working.

Once you have changed the address, update your bookmarks and tell any other people who manage the site, because they will need the new address too. Pick something that cannot be guessed, not your site name and not the word login with a number added. The goal is to make the login page invisible to automated scans that knock on the standard address of every WordPress site they find.

Be careful with one detail: some plugins that hide the login page also change how the dashboard address behaves, and a wrong setting can lock you out of your own site. Test the new address in a private browser window before you log out of your current session, and keep a note of it somewhere safe so you can always find your way back in.

Strong Usernames, Passwords and Two-Step Verification

No plugin can save a site whose username is admin and whose password is a pet's name. WordPress login protection depends on the basics too: a username that is not the default, a long password built from upper-case and lower-case letters, numbers and symbols, and a different password for every site you run. Change any password you have reused elsewhere, because a breach on one small site can hand attackers the keys to your blog as well.

Strong Usernames, Passwords and Two-Step Verification

Add two-step verification wherever you can. With it switched on, logging in needs your password and a second code, usually from an app on your phone, so a stolen password alone is no longer enough to get in. Self-hosted WordPress sites can add this with a plugin, and WordPress.com accounts have it built in. It is the single most effective step after a strong password.

Finally, put a content delivery network with bot detection in front of your site if you can. Many of these services spot the patterns of a brute force attack and block them before the requests ever reach your server, and the basic protection is often free. Combined with login limits, a hidden login address and two-step verification, your WordPress login becomes a very poor target indeed.

Back Up Before Trouble Strikes

Even the best WordPress login protection cannot promise that you will never be attacked, so a backup is your last line of defence. Keep a regular backup of both your database and your files, stored somewhere other than your own server, so that you can restore your site quickly if an attack ever succeeds.

Test your backup from time to time. A backup you have never restored is only a hope, not a plan, and discovering that it is broken on the day you need it is the worst possible moment. Restore it to a test location once in a while and confirm that the site actually comes back to life.

Check your login logs regularly too. A sudden rise in failed logins is a warning that someone is testing your defences, and it is the right moment to tighten your settings, review your users and confirm that your backups are fresh. Staying watchful is part of protection, not an extra chore on top of it.

Zohaib FaisalZohaib Faisal is the founder and editor of EarnDesk. Based in Lahore, Pakistan, he runs the online store Haseeb Collections and works as a freelancer on Fiverr (virtual assistance, AI content writing, AI prompt engineering and digital marketing). He builds websites — Haseeb Collections, EarnDesk and a temporary-email service — writes SEO-focused content, and has hands-on AdSense experience across his sites. He has earned 15+ professional certificates from Google, IBM, Microsoft, HubSpot, Cisco, the Linux Foundation, Unity, Semrush and Harvard (CS50P), and creates the YouTube channel Clips by Zohaib. On EarnDesk he writes practical, honest guides to help beginners earn online — without hype or "get rich quick" promises. More about Zohaib.

Earning online takes time and consistent work. Results vary from person to person, and no method on this page guarantees any income. Treat every opportunity as a skill to build, not a shortcut.