How to protect your connection on public WiFi
Open WiFi networks in cafés, airports and hotels are convenient, but you don't control them. This guide sums up the real risks, without scaremongering, and the measures that actually make a difference.
What can happen on a network you don't control
- Fake networks ("evil twin"): an attacker creates a network with the same name as the venue's. If you join it, all your traffic goes through their device.
- Snooping on unencrypted traffic: on an open network, other devices can capture data that isn't encrypted.
- Fake captive portals: pages that ask for your email and password "to give you access" and actually steal them.
- Compromised devices on the same network: an infected device may try to attack the others.
Most traffic is already encrypted today
The good news is that almost every major site uses HTTPS, which encrypts the content between your browser and the website. Even so, some data stays visible, such as the names of the sites you visit, and there are attacks that try to trick you with fake certificates. That's why it pays to add layers of protection.
Practical measures
- Confirm the exact network name with the venue's staff, and avoid networks with generic names.
- Turn off automatic connection to open networks and file sharing.
- Watch for the padlock and browser warnings. If a certificate warning appears, don't continue.
- Keep your system and apps updated: updates fix flaws that get exploited on shared networks.
- Turn on two-step verification for your email and social networks: even if a password is stolen, nobody can get in.
- Use an encrypted tunnel (SSH over WebSocket or a VPN) to add a layer that hides your traffic from the rest of the network. We explain it in the guide on SSH tunnels over WebSocket.
- Avoid very sensitive operations (banking, password changes) unless you must; use your mobile data instead.
What an encrypted tunnel doesn't do
A tunnel protects the route between your device and the server, but it doesn't protect you if you install malicious software, fall for a phishing email or visit a fake website. Also, the server operator can see the destinations you connect to, so choose one you trust.
Summary. HTTPS, updated devices, two-step verification and, when the network isn't trustworthy, an encrypted tunnel. That covers the vast majority of everyday risks.