Two-Factor Authentication for Website Accounts
A stolen or guessed password is one of the most common ways accounts get taken over. Two-factor authentication (2FA), also called two-step verification, adds a second proof of identity, so a password alone is not enough to get in. It is one of the most effective security steps a small business can take, and it is usually free.
How it works
Signing in needs two different kinds of evidence:
- Something you know, such as a password
- Something you have, such as a phone, an authenticator app, or a physical security key
- Or something you are, such as a fingerprint or face scan, used on your device
Even if an attacker steals the password, they cannot sign in without the second factor.
The main methods, from stronger to weaker
- Security keys and passkeys. Hardware keys or passkeys built into devices are resistant to phishing, because they only work with the real site. Where available, they are the strongest option.
- Authenticator apps. Apps generate a short code that changes every thirty seconds or so. They work offline and are much better than text messages.
- Push approvals. The service sends a prompt to your phone. Convenient, but watch for "prompt bombing", where attackers send repeated prompts hoping you tap approve. Only approve prompts you started.
- Text message codes. Better than no second factor, but weaker: phone numbers can be hijacked, and messages can be phished. Use them if nothing else is offered.
- Email codes. Only as secure as the email account itself.
Which accounts to protect first
Start with the accounts that could take your site or business offline:
- Email. It resets everything else. See business email: Google Workspace vs Microsoft 365
- Domain registrar. Losing the domain loses everything. See domain renewal and expiry
- Hosting and CDN accounts
- Your CMS or website admin login. See WordPress updates and plugins: how to manage them
- Payment providers and online store admin
- Analytics, Search Console, and advertising accounts. See how to set up Google Search Console
- Password manager and social media accounts
How to set it up safely
- Turn on 2FA in the account's security settings.
- Save the recovery codes the service gives you and store them somewhere safe, such as a password manager or a printed copy in a secure place. Without them, losing your phone can lock you out.
- Add a backup method, such as a second key or another device, if allowed.
- Check which people share logins, and give each person their own account instead. See password managers for small teams.
Think about your team
- Require 2FA for everyone who has access to important systems
- When someone leaves, remove their access and their devices
- Keep a record of who holds what. See who owns your website and accounts
- Make sure contractors and agencies use it too. See how to write a website maintenance agreement
Make it accessible
Not everyone can use every method. Offer more than one option where you control the login, and avoid forcing puzzles or timed codes without alternatives. See cognitive accessibility basics and accessible CAPTCHA alternatives.
What 2FA does not stop
It greatly reduces risk but does not remove it. Phishing pages can still trick people into entering codes, and malware on your device can steal sessions. Stay careful with links, and keep software updated. See how to keep your website secure.
If it goes wrong
If you lose your second factor, use your recovery codes or the provider's account recovery process, which may take time. If you suspect a break-in, see how to handle a hacked website.
Common mistakes
- Using text messages when a stronger option exists
- Not saving recovery codes
- Sharing one login among the team
- Protecting the website but not the email account
Forms on your site are another door for abuse. Read website spam protection for contact forms.