An Anti-Phishing Code is an email verification feature offered by cryptocurrency exchanges. Once set up, every official email from the exchange will contain your custom code. If a supposed exchange email does not include your code, it is fake. This is one of the most effective ways to defend against email phishing attacks. If you do not have an exchange account yet, register on the Binance official website first, then set up your anti-phishing code immediately.
What Is a Phishing Email?
A phishing email is a fraudulent message sent by hackers impersonating an exchange. These emails look nearly identical to genuine exchange communications — same logo, same layout, and a similar sender address.
Common phishing email content:
- "Your account is at security risk, please verify immediately"
- "You have a pending withdrawal awaiting confirmation"
- "Congratulations, you've received an airdrop reward — claim it now"
- "Your account will be frozen within 24 hours"
The email contains a link that leads to a carefully crafted fake website. If you enter your credentials and 2FA code on this site, the information is relayed to the attacker in real time, who immediately logs into your real account.
How Does an Anti-Phishing Code Protect You?
After setting an anti-phishing code, every official email from the exchange will display your unique text in the body.
Verification process when receiving an email:
- Check whether the email contains your anti-phishing code
- If yes — it is a genuine email (but still verify links)
- If no — it is a fake email; delete it immediately
Since scammers do not know your code, they cannot include it in their fake emails, making it very easy to distinguish real from fake.

Setting Up an Anti-Phishing Code on Binance
- Log in to your Binance account
- Click on your profile icon to enter the dashboard
- Go to "Security" then "Advanced Security"
- Find the "Anti-Phishing Code" option
- Click "Enable" or "Set Up"
- Enter your desired anti-phishing code (4-20 characters)
- Enter your Google Authenticator code to confirm
- Setup complete
Setting Up an Anti-Phishing Code on OKX
- Log in to your OKX account
- Go to "Security Settings"
- Find "Anti-Phishing Code"
- Set your custom code
- Confirm with verification
How to Choose a Good Anti-Phishing Code
Characteristics of a good code:
- Easy to remember but hard to guess
- Does not contain personal information (no names, birthdays)
- Reasonably long (8+ characters)
- Use different codes for different platforms
Examples:
- Good:
Moon2026Safe,CryptoGuard - Bad:
123456,abc, your name
Limitations of Anti-Phishing Codes
Anti-phishing codes are highly effective, but they cannot protect against all attacks:
- Cannot prevent SMS phishing: The code only appears in emails
- Cannot prevent website phishing: If you reach a fake site through means other than email links
- Cannot prevent social engineering: If scammers attack through other channels (phone calls, social media)
- Requires active checking: You must develop the habit of verifying the code every time you receive an email
Therefore, anti-phishing codes should be part of an overall security strategy, not the sole line of defense.

A More Comprehensive Anti-Phishing Strategy
In addition to setting up an anti-phishing code, consider these measures:
- Use bookmarks: Save the exchange's official URL in your browser bookmarks and always access it that way
- Check the URL: Verify the domain in your browser's address bar before every login
- Avoid clicking email links: Even if an email has your anti-phishing code, open the official site directly via bookmarks
- Use a password manager: Password managers auto-fill only on the correct domain and will not trigger on fake sites
- Enable 2FA: Even if your password is compromised, 2FA still protects your account
Security Tips
Important reminders about anti-phishing protection:
- Set up your code now: If you haven't done so, do it right away. It takes just one minute but dramatically improves security
- Build a checking habit: Verify the anti-phishing code every time you receive an exchange email
- Keep it secret: Your anti-phishing code is confidential — never share it with anyone
- Change it periodically: Consider updating it every 3-6 months
- Set it on all platforms: Enable anti-phishing codes on every exchange you use
- Educate those around you: Help friends and family who invest in crypto set up their codes too. You can download the official Binance app (iPhone users, see the iOS installation guide) to complete security settings within the official app
What If I Forget My Anti-Phishing Code?
Log in to the exchange and check or reset it in the security settings. It does not affect normal account usage.
Do All Exchanges Support Anti-Phishing Codes?
Not all exchanges do. Major exchanges like Binance, OKX, and Bybit support this feature. If your exchange does not, you need to be even more careful when verifying email authenticity.
Will I Still Receive Fake Emails After Setting Up a Code?
Yes. The anti-phishing code does not prevent scammers from sending fake emails, but it makes it easy to identify them — any "exchange email" without your code is fake.
What Is the Difference Between an Anti-Phishing Code and 2FA?
They protect different stages. 2FA protects the login process, preventing others from accessing your account. An anti-phishing code protects email identification, helping you distinguish real from fake emails. They complement each other, and both should be enabled.
Where Does the Anti-Phishing Code Appear in Emails?
It typically appears at the top or bottom of the email body, in a format like "Your anti-phishing code: Moon2026Safe". The exact location varies by exchange.