Security

Security Guard 1.8: Two-Factor Login by Email Code, Backup Codes and Email Recovery

EDZNET Security Guard 1.8 lets WordPress administrators get their two-factor codes by email instead of an app, adds 10 backup codes and opt-in email recovery. What it does, and how safe email codes really are.

6 min read EDZNET Team

Two-factor login is the single best thing you can do for a WordPress administrator account. A stolen or reused password stops being enough, and that is how most WordPress sites are taken over.

The trouble is getting people to use it. Authenticator apps confuse a lot of website owners: the phone gets replaced, the app isn’t backed up, and suddenly nobody can log in to their own website. We saw the same thing in our own client area, which is why it now offers sign-in codes by email. Security Guard 1.8, out now on WordPress.org, brings the same choice to WordPress, along with backup codes so nobody gets locked out.

What’s New in Security Guard 1.8

  • Email codes. Each administrator chooses how they get their 6-digit code: an authenticator app, as before, or an email at each login. No app needed.
  • Backup codes. Every administrator with two-factor login gets 10 single-use backup codes, so a lost phone or a missing email doesn’t lock them out.
  • Email recovery, if you want it. App users can switch on “Can’t use your app? Email me a code” from their profile, so their mailbox is the fallback.
  • Five tries. Five wrong codes end the login attempt, for app codes too.
  • Login alerts say which code was used: authenticator, email, or a backup code (with how many are left).
  • Where the login came from. With EDZNET Geolocation and a Geo API Pro key, the code email shows the city, country and internet provider of the sign-in, just like the login alerts.
Security Guard 1.8 asking an administrator to choose between an authenticator app (recommended) and email codes, with a note that email codes are less secure
When two-factor login is required, an administrator who hasn’t set it up yet chooses a method at their next login.

Are Email Codes Safe?

They are less secure than an authenticator app, and Security Guard says so wherever it offers them. With email codes, anyone who can get into your mailbox and knows your WordPress password can sign in.

That sounds worse than it is. WordPress already lets anyone with access to your mailbox reset your password, so email codes don’t open a new way in. What they do stop is the most common attack by far: logging in with a password that was stolen, guessed or reused from another site. That attacker has your password but not your email.

No two-factorEmail codesAuthenticator app
Stolen or reused passwordSite taken overBlockedBlocked
Password guessingSite taken over, eventuallyBlockedBlocked
Password and mailbox both stolenSite taken overSite taken overBlocked
Needs an app on your phone–NoYes

So our advice is simple: use an app if you’re comfortable with one, and email codes if the alternative is no two-factor login at all. Email codes are far better than nothing. If you’d rather nobody on your site used them, the first administrator can untick Email codes on the settings page.

How Email Codes Work

After the password, Security Guard emails a 6-digit code to the administrator’s account address. It expires after 10 minutes and works once. A new one can be sent after a minute, and five wrong codes end the login attempt. The code is never stored in plain text on your site.

The Security Guard 1.8 login step asking for the 6-digit code emailed to the administrator, with Send a new code and Use a backup code links
The login step for an administrator who uses email codes.

Before email codes are switched on for an account, Security Guard sends a test code, so nobody turns them on for a mailbox that never receives the site’s emails. If your site’s emails tend to land in spam, fix that first: an SMTP plugin, or hosting with properly set-up email, makes all the difference.

Backup Codes: The End of “I Can’t Get In”

When an administrator sets up two-factor login, Security Guard shows 10 backup codes, like k7mq-2xpa, once. Each one signs you in once if you can’t get a code. Keep them in a password manager or print them. If you use some or lose the list, Create new backup codes in your profile replaces the whole set.

Administrators who already used an app before 1.8 will find a Backup codes section in their profile; create a set there.

How to Switch It On

  1. Update Security Guard to 1.8 from Dashboard > Updates, or install it from WordPress.org.
  2. Open EDZNET Guard. Under Two-factor authentication, tick Require two-factor authentication. Email codes is allowed by default; untick it if you want apps only.
  3. Set up your own two-factor login first, from Users > Profile: choose the app or email, then save your backup codes.
  4. Every other administrator is asked to choose a method at their next login. Nobody is locked out on the way.

Nothing changes for administrators who already use an app. They keep signing in exactly as before.

Also New: Recognising the EDZNET Hands-Off Agent

Security Guard’s Plugin audit flags code that creates administrator accounts, because that is what backdoors do. Our own Hands-Off Agent, which looks after managed websites, does that deliberately for the EDZNET support account. Security Guard 1.8.1 checks the agent’s file against the official EDZNET builds and shows a genuine copy as Official EDZNET (verified). A file that only borrows the name is flagged as critical, because a real backdoor could call itself anything.

Frequently Asked Questions

Do my administrators have to switch to email codes?

No. Each administrator chooses. App users carry on as before, and we still recommend the app.

What if the email doesn’t arrive?

Click Send a new code after a minute, check your spam folder, or use a backup code. If the site can’t send email at all, the login step says so and points you to your backup codes.

I lost my phone. How do I get back in?

Use a backup code, or, if you switched on email recovery, Can’t use your app? Email me a code. Then set the app up again from your profile. The site’s first administrator can also reset another administrator’s two-factor login.

Does it work on WordPress Multisite?

Yes. On a network the settings are in Network Admin and cover every super admin and site administrator, whichever site they sign in on.

Is it still free?

Yes. Two-factor login, email codes, backup codes, the admin lockdown and the Plugin audit are all free. Only Vulnerability Watch needs a Geo API Pro key.

Can someone set this up for me?

Yes. On EDZNET Hands-Off managed websites we set up Security Guard, two-factor login and the rest of the lockdown around how you and your team work, and act on the alerts for you.

Get EDZNET Security Guard Have us look after it

Relevant solutions

Questions about your setup?

Talk to the people who run the servers. We'll tell you honestly what you need — and what you don't.