WordPress two-factor authentication with WP Masquerade

With WP Masquerade Pro, a stolen password is no longer enough: every login also asks for a 6-digit code generated by an authenticator app.

Pro feature

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

See Pro pricing

What two-factor authentication does

After the password, WordPress asks for a 6-digit code shown by an authenticator app on your phone: Google Authenticator, Microsoft Authenticator, 2FAS, Aegis, 1Password… The code changes every 30 seconds (TOTP standard).

The setup QR code is generated on your own site: the secret is never sent to an external service. It is stored encrypted, and backup codes are kept only as hashes.

Why it matters

Passwords leak, get guessed or get reused from one site to the next. Two-factor authentication protects your accounts even then, and it is the single most effective defense against an administrator account takeover.

What’s included Pro feature

  • Each user turns it on from their profile by scanning a QR code.
  • Ten 10-digit backup codes, shown only once, each usable once. They can be regenerated.
  • Required by role: affected users are sent back to their profile until they’ve set it up. Strongly recommended for administrators.
  • Brute-force protection: 5 wrong codes per login, then back to the password step; after 5 failures, an increasing wait (1, 2, 4… minutes, up to one hour).
  • XML-RPC and REST API: a protected account only accepts application passwords there.
  • Lasting protection: accounts already using two-factor authentication keep it even if the license expires or is revoked. Other Pro features, however, stop working.
WP Masquerade Pro "Two-step verification" card: activation link on the profile and the roles for which it is required
Two-factor authentication can be made mandatory per role from the Protection tab.

How to turn it on

  • For yourself: Profile → “Two-step verification” section. Scan the QR code, enter the code shown, then click “Update Profile”. Keep your backup codes somewhere safe.
  • For a team: WP Masquerade (the mask icon in the admin menu) → Protection → “Required for these roles”.
  • Lost phone: log in with a backup code. An administrator can also turn off two-factor authentication from the user’s profile page.

Limits and precautions

  • The code depends on your phone’s clock: if codes are rejected, make sure automatic time is turned on.
  • If the security keys in wp-config.php change, the secret can no longer be read: log in with a backup code, then turn two-factor authentication off and on again.
  • Last resort: define('CMP_DISABLE_2FA', true); in wp-config.php suspends two-factor authentication for the whole site. Remove the line once the problem is fixed.
  • External login systems that bypass the standard WordPress login form may not be covered.

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.