WordPress brute force protection with WP Masquerade

WP Masquerade Pro temporarily blocks IP addresses that rack up failed logins, with neutral error messages that give bots nothing to work with.

Pro feature

Included in WP Masquerade ProFrom €59 excl. tax / year

See Pro pricing

A brute force protection plugin for WordPress has to slow down bots that try thousands of passwords, without locking out your users. With WP Masquerade Pro, login attempt limiting comes on top of the moved login page, XML-RPC blocking and two-factor authentication: bots find fewer doors, and the ones left close after a few attempts.

What attempt limiting does

After a number of failed logins that you choose, the network address involved is blocked for a set period. Error messages become neutral (“Unable to log in. Check your details or try again later.”), so a bot can no longer tell whether a username exists.

Why it helps

Brute-force attacks try thousands of username and password combinations. Limiting slows them down dramatically, while still leaving room for a human who makes a typo.

Settings Pro feature

SettingValues
Allowed failures3 to 30
Lockout duration1 to 60 minutes
Starting point suggested by the guide: 8 failures over 15 minutes.

Limiting kicks in at level 4 of the Hardening module or the Login page module: both use the same mechanism and don’t double-count. Incorrect two-factor authentication codes count too.

Locked out by mistake? The Unblock me button, in the Troubleshooting tab, releases your current IP address.

Privacy

The counters use a hash (HMAC) of the address, never the plain IP address. They expire after the duration you set and are cleaned up by an hourly WordPress task.

Limitations and precautions

  • Several users on the same network (office, school) share one address: adjust the threshold accordingly.
  • X-Forwarded-For headers sent by the client are ignored. Behind a proxy or CDN, ask your host to restore the real address; otherwise, every visitor shares the proxy’s counter.
  • If WP-Cron is disabled, make sure your hosting scheduler runs it.
  • Limiting applies to logins that go through WordPress’s standard mechanisms. It’s not network traffic rate limiting, nor a sufficient defense against a distributed attack.

Behind Cloudflare, every request appears to come from Cloudflare’s servers. Pro then uses visitors’ real IP address, sent in the CF-Connecting-IP header and accepted only from Cloudflare’s official addresses, for login attempt limiting and banning. See Cloudflare support.

Brute force protection: frequently asked questions

Does the free version protect against brute force attacks?

Partly. It moves the login page (wp-login.php returns a 404) and blocks XML-RPC, the two targets bots go after most. Login attempt limiting and two-factor authentication are Pro only.

Do I also need a plugin like Limit Login Attempts Reloaded?

No. Two limiters counting the same failures add nothing and make unblocking harder. If another plugin already limits your logins, leave that feature to only one of the two.

Does limiting stop a distributed attack?

Not entirely: an attack spread over thousands of IP addresses stays below the threshold for each one. Two-factor authentication and unique passwords are the real defense; a firewall at your host or at Cloudflare filters upstream. Our WordPress security plugin comparison presents the options.

Start free, upgrade to Pro when you’re ready

The free version already hides WordPress, moves the login page, blocks XML-RPC and counts bots. Pro locks down logins, renames file URLs and monitors your sites for you: known vulnerabilities, core integrity, activity log, email alerts and the update status of all your sites in your member area. From €59 per year excl. tax, far less than the cleanup offers whose prices we checked. Compare the costs.

See Pro pricing

Product tour

From installation to protection, in a few minutes

Real screenshots of the WP Masquerade Pro admin, step by step.

  1. Install the plugin

    Plugins > Add New > Upload Plugin: choose the wp-masquerade-pro.zip file from your account, then click Install Now.

    Screenshot: Install the plugin
  2. Activate it

    Activate WP Masquerade and WP Masquerade Pro, then open the settings with the Settings link.

    Screenshot: Activate it
  3. Follow the checklist

    The Getting started tab shows what is done and what is left to do, one step at a time.

    Screenshot: Follow the checklist
  4. Pick a protection mode

    Essential, Recommended or Maximum: one click ticks the right choices in every tab. You can fine-tune each setting afterwards.

    Screenshot: Pick a protection mode
  5. Choose the software to imitate

    Joomla!, for example: bots then hunt for vulnerabilities your site does not have. The look of your site does not change.

    Screenshot: Choose the software to imitate
  6. Move the login page, safely

    Choose a new login address, then test it: it is enabled only once it has been proven to work, so you cannot lock yourself out.

    Screenshot: Move the login page, safely
  7. Turn on two-step verification

    Scan the QR code with an authenticator app, then enter the 6-digit code it shows. A stolen password is no longer enough.

    Screenshot: Turn on two-step verification
  8. Watch the bots fall into the traps

    Requests for /.env, /administrator/ or /phpmyadmin come from attack bots: they are counted, with the most targeted addresses.

    Screenshot: Watch the bots fall into the traps
  9. Get alerted about vulnerabilities

    Every day, your plugins, themes and WordPress are checked against a public database of known vulnerabilities, with what to do. Alerts can go by e-mail.

    Screenshot: Get alerted about vulnerabilities
  10. Activate your licence

    Your licence key unlocks the Pro features, automatic updates and the signature feed. You can check it or move it to another site at any time.

    Screenshot: Activate your licence

WordPress security, without the noise

One e-mail when something matters: new attacks seen in the wild, plugin updates and practical guides. No spam, unsubscribe in one click.