What technical controls help prevent phishing, and which of them actually stop an attacker who has convinced a user to click?
Answer
Technical anti-phishing controls work in layers: stop spoofed and malicious email before it is delivered (SPF, DKIM, DMARC, mail filtering), warn or block at the moment of click (link scanning, browser Safe Browsing, DNS filtering), and make stolen credentials useless (phishing-resistant MFA such as passkeys and FIDO2 security keys). The last layer matters most, because some phishing will always get through and some users will always click.
Layer 1: email authentication
SPF: a DNS TXT record listing which servers may send mail for your domain.
DKIM: the sending server signs messages; receivers verify with a public key in DNS.
DMARC: tells receivers what to do when SPF or DKIM fail and do not align with the visible From domain (p=none, quarantine, reject), and sends you reports.
With DMARC at p=reject, attackers cannot send email that appears to come from @yourbank.com. Since 2024, Gmail and Yahoo require SPF, DKIM and DMARC for bulk senders. Note that DMARC does not stop lookalike domains like yourbank-support.in.
Layer 2: filtering and click-time protection
Secure email gateways and built-in filters (Microsoft Defender for Office 365, Google Workspace) score reputation, scan attachments in sandboxes and rewrite links to check them at click time.
Browser protections such as Google Safe Browsing and Microsoft SmartScreen show warnings for known phishing pages.
DNS filtering blocks known bad domains for the whole organisation.
External sender banners and lookalike domain monitoring help users notice impersonation.
These are reactive: brand new phishing domains are often live for hours before they appear on blocklists.
Layer 3: make stolen credentials worthless
Factor
Phishable?
Why
Password only
Yes
User types it into any page
SMS or email OTP
Yes
User types it into the fake page; attacker relays it in real time
Authenticator app TOTP
Yes
Same real-time relay
Push approval
Partly
MFA fatigue; number matching helps
Passkeys / FIDO2 security keys
No
The browser binds the credential to the real origin
Adversary-in-the-middle phishing kits proxy the real login page and capture both the password and the OTP, then steal the session cookie. WebAuthn (passkeys, YubiKeys) defeats this because the browser only uses a credential for the exact domain it was registered on; on g00gle-login.com there is simply nothing to sign. Password managers help similarly, since they refuse to autofill on the wrong domain.
Other useful controls
Conditional access: block logins from unmanaged devices or unusual locations.
Short session lifetimes and binding sessions to devices to limit stolen cookie reuse.
A one-click "report phishing" button feeding the security team, and fast takedown of lookalike domains.
For customer-facing brands: in India, TRAI DLT registration for SMS sender headers and verified sender IDs make spoofed SMS harder, and banks remind users they never ask for UPI PINs or OTPs.
Security awareness training still matters, but the strongest programmes design systems so that one mistaken click does not lead to account takeover.
Defence in depth against phishing. Each layer catches what the one above misses.
Email authentication: SPF, DKIM and DMARC stop exact-domain spoofing.
Mail filtering and sandboxing: Reputation, attachment detonation, link rewriting.
Click-time protection: Safe Browsing, SmartScreen and DNS filtering.
Phishing-resistant MFA: Passkeys and FIDO2 keys are bound to the real origin.
Detection and response: User reporting, anomaly alerts, session revocation.
Code examples
SPF, DKIM and DMARC DNS records
# SPF: only Google Workspace and our ESP may send for example.in
example.in. TXT "v=spf1 include:_spf.google.com include:sendgrid.net -all"
# DKIM public key published under a selector
s1._domainkey.example.in. TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqh...IDAQAB"
# DMARC: reject failures, send aggregate reports
_dmarc.example.in. TXT "v=DMARC1; p=reject; rua=mailto:dmarc@example.in; adkim=s; aspf=s"
# Check what is published
dig +short TXT _dmarc.example.in
Move DMARC from p=none to quarantine to reject once reports show all legitimate senders pass. Strict alignment (adkim=s, aspf=s) is optional but tighter.
Key points
SPF, DKIM and DMARC (p=reject) stop exact-domain spoofing, not lookalike domains.
Filtering, sandboxing and Safe Browsing are reactive and miss fresh phishing sites.
OTP and TOTP codes are phishable through real-time relay (AiTM) kits.
Passkeys and FIDO2 keys are phishing-resistant because credentials are bound to the origin.
Design so a single click does not lead to account takeover.
Common follow-up questions
Why is SMS OTP not considered phishing-resistant?
How does WebAuthn bind a credential to a domain?
What is an adversary-in-the-middle phishing attack?
How would you roll out DMARC enforcement without breaking legitimate email?
Interview tips
Structure your answer in layers: before delivery, at click time, after credentials are stolen.
Explaining why passkeys resist phishing while OTPs do not is the strongest point you can make.
Do not lead with 'train users'; show that technical controls should assume someone will click.