Is public Wi-Fi safe? What a VPN fixes, and what it does not
Public Wi-Fi is safer than it was, but not because of a VPN. What HTTPS already covers, where the real risks are now, and when a VPN earns its place.
Is public Wi-Fi safe? Mostly yes, and the reason is HTTPS, not the VPN you were told to buy. The content of nearly everything you do in a browser is encrypted before it touches the cafe's router. What is left exposed is smaller than the scare articles suggest, but it is not nothing, and a VPN only fixes part of it.
What HTTPS already protects, and what it leaks
Over HTTPS, the TLS session runs between your browser and the server. Everyone on the cafe's network sees ciphertext. They cannot read the page, your password or your session cookie, and they cannot modify the page without the browser refusing it.
That is the big win.
What the network still sees:
- Which hosts you connect to. The server name travels in the clear in the TLS handshake (the SNI field) unless Encrypted Client Hello is in use, which depends on both browser and site.
- DNS lookups. Before TLS starts, your device asks a resolver for the site's IP. By default that goes out in plaintext to whichever resolver the network handed you, and the network can answer with any IP it likes.
- The captive portal. The login page the cafe pushes at you is the network intercepting your traffic on purpose.
- Anything not using TLS. Older apps, IoT gadgets and some update checkers still send plaintext. The browser padlock says nothing about what the other apps on your device are doing.
You can check the DNS leak yourself:
# Linux: watch DNS queries leaving the machine
sudo tcpdump -i any -n port 53
# macOS: name the Wi-Fi interface instead, usually en0
sudo tcpdump -i en0 -n port 53
If names scroll past, that is what the cafe sees. If nothing appears on port 53 because lookups now go encrypted over 443 (DNS over HTTPS) or 853 (DNS over TLS), good.
Is public Wi-Fi safe? The four risks that are real today
1. Evil-twin networks. An attacker runs an access point called Cafe_Guest with a stronger signal than the real one. HTTPS still protects content, but now the attacker is the network: they control DNS, the captive portal, and see every SNI. Detect it by asking staff for the exact name and noticing duplicates. Stop it with setting 2 below.
2. Captive portals that phish. The portal is served by the network. A malicious one asks you to "sign in with Google" or "verify your card for the free hour". A real portal needs, at most, an email address or an accept button. It never needs a password you use elsewhere. If the page is not the one your OS opened on its own, treat it as a link you did not click and run the checks in where does this link actually go.
3. Apps that still talk plaintext. A desktop app fetching an update manifest over HTTP, an old mail client with STARTTLS off. On a hostile network each is readable and modifiable. Plaintext lives in old software, so the defence is updates, not inspection.
4. Your device auto-joining known names. Your phone remembers Airport_Free_WiFi and will join anything broadcasting that name, anywhere, without asking. That is what makes evil twins cheap. Pure configuration, and it costs a tap per network to fix.
Notice what is not on the list: someone reading your traffic in general. HTTPS killed that.
What a VPN actually does
A VPN wraps all your traffic in one encrypted tunnel to the provider's server and exits to the internet from there. On public Wi-Fi this changes exactly one thing: the cafe no longer sees your DNS, your SNI or your plaintext apps. It sees one encrypted connection to one IP. Against risks 1, 3 and 4 that helps a lot.
But read it precisely. The VPN did not remove the party that can see your DNS and SNI. It moved that party from the cafe to the VPN provider. You have swapped a stranger you can see for a company you cannot, and whether that is a good trade depends on whether you trust the provider more than a random network operator, and whether they log. I have no vendor to recommend. For most people the trade is fine; for anyone whose provider can be compelled, it is the whole question.
What a VPN does nothing about:
- Phishing. The portal asking for your Google password works identically through a tunnel. The tunnel usually cannot come up until you have cleared the portal, so you are exposed at exactly the moment it matters.
- Malware or a compromised device. Stolen data flows through the VPN as happily as through the cafe. See signs your phone is hacked for what that looks like.
- The site itself. A missing header or a leaky session does not change based on how you reached it. Read your security headers in one command covers what the site owes you.
The marketing conflates "encrypts your connection" with "makes you safe". Only the first is true.
When a VPN is worth it, and when your hotspot is better
My rule has three branches.
Use your phone's hotspot when you have mobile data and the task is sensitive, short, or both. Cellular traffic is encrypted to the tower, the operator is one you already have a contract with, and there is no captive portal, no evil twin, no auto-join. For an hour of banking in an airport this beats any VPN. The cost is battery and data, which is why nobody does it for a full working day.
Use a VPN when you will be on an untrusted network for a long stretch, cannot tether, and have a provider you have actually thought about. If your employer runs one, use it: the exit point is a network your organisation already monitors. The cost is a speed hit, the occasional broken portal, and a fee for the personal kind.
Use neither for low-stakes browsing on HTTPS sites. Reading the news on hotel Wi-Fi is fine.
The branch most people skip is the first. Tethering is the better tool more often than a VPN is.
Five settings to change before you buy anything
Menu paths move between OS versions, so treat these locations as approximate.
1. Forget networks you do not use. Go through the saved list (Settings, then Wi-Fi, then known networks on most phones) and delete every open network you joined once.
# macOS: list saved networks, then remove one
networksetup -listpreferredwirelessnetworks en0
sudo networksetup -removepreferredwirelessnetwork en0 "Airport_Free_WiFi"
2. Turn off auto-join for the rest. Leave it on for home and work, off for everything else, and turn on ask-before-joining new networks.
3. Use encrypted DNS. Current iOS, Android, macOS and Windows support DNS over HTTPS or DNS over TLS at the OS level. Any large public resolver will do; the point is the encryption, not the brand. Re-run the tcpdump line above and port 53 traffic should disappear.
4. Keep the OS and apps updated. Auto-update is the control; a reboot at a bad time is the cost.
5. Never type a reused password into a captive portal. Not a setting, a rule. Better, use passkeys or a manager so there is nothing reusable to phish. Passkeys vs passwords vs 2FA explains which one stops which attack.
Frequently asked questions
Can someone on public Wi-Fi see my passwords? Not if the site uses HTTPS, which nearly every login page now does. They can see that you connected to the site, and your DNS lookups if encrypted DNS is off. The realistic way passwords get stolen on public Wi-Fi is a fake captive portal asking for them.
Is a VPN necessary on public Wi-Fi? Necessary, no. Useful, sometimes. It hides DNS, SNI and plaintext apps from the local network and shifts that visibility to the provider. It does nothing against phishing or malware. If you have mobile data, tethering is usually the better answer for anything sensitive.
Does HTTPS mean I am completely safe on any network? It means the content of that one connection is private and unmodified. It says nothing about the other apps on your device, the DNS lookup that came first, or the portal the network served. HTTPS is a floor, not a ceiling.
The thing to do now takes five minutes: open your saved Wi-Fi list, delete every open network you do not recognise, then turn on encrypted DNS. Do that before you next sit in an airport.