Two-factor authentication means signing in with your password plus something only you hold, usually a code from an app on your phone. It stops most attacks that rely on a stolen or guessed password, which is how many account takeovers start. To set up two-factor authentication, start with your email, then your banking, hosting and business accounts. Use a free, open-source authenticator app rather than SMS codes where you can, and save your backup codes somewhere safe so a lost phone never locks you out.
In short
It adds something you have to something you know, so a criminal with your password still cannot sign in. A password can be stolen, guessed or leaked from another website. The second factor is your phone or a security key.
The evidence is strong. A 2023 Microsoft study of business accounts found that using multi-factor authentication reduced the risk of compromise by 99.22%, and that dedicated authenticator apps did better than SMS codes. Google's 2019 research found that even a simple SMS code to a recovery phone blocked all automated bot attacks on the accounts it studied, and that people who relied on security keys suffered no successful targeted phishing at all.
The UK National Cyber Security Centre (NCSC) and the US cybersecurity agency CISA agree on the starting point: any form of two-factor authentication is better than none.
Your email comes first, then any account that holds money or speaks for your business. Not every account needs it today. These do:
Choose the strongest method the service offers. Not all second steps are equal. CISA ranks them, from strongest to weakest:
| Method | How it works | Weak points |
|---|---|---|
| Passkey or security key | Your device proves who you are, and only to the genuine website | Resists phishing. CISA calls this the gold standard |
| Authenticator app | An app shows a six-digit code that changes every 30 seconds | A fake website can still trick you into typing the code |
| Push approval with number matching | Your phone asks you to confirm a sign-in by typing the number shown on screen | Without number matching, criminals send prompts until someone taps "approve" |
| SMS or voice code | A code arrives by text or call | Can be intercepted, or redirected by a SIM swap. CISA says last resort only |
Where a service offers passkeys, use them; the NCSC now says they should generally be used where available. For everything else, an authenticator app is the practical choice.
SMS codes depend on your phone number, and a phone number can be taken from you. In a SIM swap, a criminal persuades your mobile network to move your number to a SIM card they control. From then on, your text messages, including login and banking codes, go to them. It happens worldwide. In South Africa, the banking industry's risk centre SABRIC warns that criminals swap or port numbers to receive bank one-time PINs.
SABRIC's warning signs are worth knowing:
| Warning sign | What to do |
|---|---|
| Your phone suddenly loses signal where it normally has it | Contact your network immediately, then your bank |
| You receive a one-time PIN you did not ask for | Someone may be using your details |
| Someone asks you to read a PIN back to them | Never do it, whoever they say they are |
An authenticator app removes your phone number from the picture. SMS codes are still far better than no second step, so use them where nothing else is offered.
Aegis Authenticator, Ente Auth, 2FAS Auth and KeePassXC are all free and open source. Most authenticator apps use the same open standard, TOTP, so any of them works with any service that shows a QR code. We recommend apps that keep your codes under your control:
| App | Runs on | Licence | Backups |
|---|---|---|---|
| Aegis Authenticator | Android | GPL 3.0 | Encrypted vault, with automatic encrypted backups to a folder you choose; its own FAQ names Nextcloud as a working backup destination |
| Ente Auth | Android, iPhone, Linux, macOS, Windows | AGPL 3.0 | Works offline without an account, or with optional end-to-end encrypted sync between devices |
| 2FAS Auth | iPhone, Android | GPL 3.0 | No account needed; optional backup to your phone's cloud, encrypted with your own password |
| KeePassXC | Linux, macOS, Windows | GPL | Codes stored in your encrypted password database |
A word on password managers. KeePassXC and Bitwarden can both store your two-factor codes. KeePassXC's own guide warns that keeping the codes in the same database as the passwords removes the benefit of two-factor authentication, because one stolen database then holds both factors. If you use a password manager for codes, keep them in a separate database or app.
Follow the same five steps on almost every service:
Treat the QR code like a password. It contains the secret your app uses to make codes, and anyone who has it can make the same codes. Do not email it, paste it into a ticket or leave a screenshot of it on your phone.
Backup codes let you in. When you turn on two-factor authentication, most services give you a set of them. Each works once, and they work if your phone is lost, broken or stolen.
This matters more than people expect. GitHub, for example, says plainly that its support team cannot restore access to an account if you lose both your two-factor device and your recovery codes. Many services work the same way.
It protects the moment you sign in, and nothing after it. It does not protect a session that has already been stolen from your browser by malware, and codes from apps and SMS can still be phished by a convincing fake login page. Our article on infostealer malware explains both, and why passkeys are the next step.
| Service | Where to turn it on |
|---|---|
| The Plesk control panel | Our help article shows how to enable two-factor authentication in Plesk |
| WordPress | See two-factor authentication in WordPress |
| Private Email, our managed Mailcow service, includes two-factor authentication for your users |
Read next:
Turn it on for your email today, and for your hosting control panel straight after. If you get stuck, get in touch.
Checked 19 October 2026.
Research and statistics
Government guidance and standards
Apps and services
Noiz
Note: while some of this content was produced with the help of AI, the final editing has been done by a real human being.