I'm always excited to take on new projects and collaborate with innovative minds.
Dhaka, bangladesh
Two-factor authentication adds a second lock to your accounts. Learn what 2FA is, how it works, and how to set it up on Google, Facebook and more.

A password on its own is no longer enough. Passwords get leaked in data breaches, guessed from personal details, or stolen by phishing emails that look exactly like the real thing. Two-factor authentication — usually shortened to 2FA — adds a second lock to your accounts, so a stolen password alone is not enough to get in.
In my work managing websites, email accounts and business tools, I turn 2FA on for every account that offers it. This guide explains what it is and how to set it up in a few minutes.
Two-factor authentication means proving who you are in two different ways before you can sign in. The first factor is something you know: your password. The second factor is something you have — usually your phone — or something you are, such as a fingerprint.
Think of it like a door with two locks that use different keys. A thief who copies one key still cannot open the door. In the same way, someone who steals your password still cannot sign in to your account without the second factor.
This matters because password theft is common. People reuse passwords across sites, and when one site is breached, the same password can be tried everywhere else. With 2FA on, that stolen password is useless on its own.
When you sign in with 2FA enabled, you enter your password as usual, and then the service asks for a second check. There are a few common ways it does this.
An app on your phone, such as Google Authenticator or Microsoft Authenticator, generates a six-digit code that changes every 30 seconds. You type the current code to complete the sign-in. This is the method I recommend for most people: it works without a mobile signal, and the codes are never sent over a network where they could be intercepted.
The service sends a code to your phone by SMS. This is the easiest method to start with, and far better than no 2FA at all. Its weakness is that text messages can be intercepted — so if you have the choice, prefer an authenticator app.
A small USB or NFC device, such as a YubiKey, that you tap or plug in to confirm it is really you. Security keys are the strongest option and are a good choice for the accounts that matter most, such as your main email or your website admin panel.
Some services send a prompt to your phone asking you to approve the sign-in with a tap. If you get an approval request you did not start, deny it — someone else may be trying to sign in as you.
Any second factor is a large improvement over a password alone. If you want a simple rule:
The steps are similar on almost every service. Here is the general process, using Google and Facebook as examples.
Most modern platforms, including WordPress and Botble, support 2FA through a plugin or a built-in setting. Enable it for every admin account, not only your own. A website admin account without 2FA is one of the easiest ways for an attacker to take over a site.
When you set up 2FA, the service gives you backup codes. Print them or store them in a password manager — not as a screenshot on the same phone. If your phone is lost or replaced, these codes are how you get back into your account.
Use a backup code, or use the account recovery process of that service. This is why saving backup codes matters: without them, recovery can take days and may require proving your identity in other ways.
Authenticator codes depend on your phone's clock. If the codes keep failing, check that your phone's date and time are set to automatic. A clock that is off by even a minute can make every code invalid.
Move your authenticator accounts to the new phone before you wipe the old one. Most authenticator apps offer an export or cloud backup option — use it, and test one sign-in on the new phone before erasing the old one.
It adds a few seconds to each sign-in, and most services remember trusted devices, so you are not asked every time. Those few seconds are a small price for keeping your email, your business pages and your website out of someone else's hands.
No security measure is absolute, but 2FA blocks the most common attacks — stolen passwords, leaked credentials and automated login attempts. With a strong, unique password, it makes your account very hard to break into.
Use a strong, unique password and a password manager, and check whether the service plans to add 2FA. For important accounts, consider whether a service that offers 2FA is a better choice.
Yes. One authenticator app can hold codes for dozens of accounts — Google, Facebook, your email, your website admin and more. Each account gets its own entry in the app.
Yes, especially on admin accounts. Website takeovers often start with a stolen admin password, and 2FA stops that attack completely. Read my website security basics guide for the other steps that go with it.
Start with your email account — it is the key to resetting almost everything else — then add your social media, your banking apps and your website admin. The whole process takes a few minutes per account. It is the single simplest security improvement you can make, and once it is on, you will barely notice it is there.
Your email address will not be published. Required fields are marked *