Dev.to Security 🔐 Cybersecurity 👁 0 📖 6 min read

How to Tell If Public Wi-Fi Is Safe Before You Connect — WPA2, WPA3, Evil Twins and the VPN Rule

Free Wi-Fi at the airport, the hotel or a café feels like a gift — until you remember that anyone else in the room can be listening. A public network is a shared road, not a private one: the operator can see where you go

Free Wi-Fi at the airport, the hotel or a café feels like a gift — until you remember that anyone else in the room can be listening. A public network is a shared road, not a private one: the operator can see where you go, and a stranger on the same network can try to read what you send. The worst version is the fake hotspot, the "evil twin" that copies a real network's name so your phone joins the attacker's network instead.

Checking a network takes about two minutes, and most checks need no tools at all. This is the technical version of the checks in our full guide, How to Check If Public Wi-Fi Is Safe Before You Connect — the same seven checks, with the networking underneath explained.

1. Confirm the exact network name with a member of staff

Never join a network just because the name looks right. An attacker can create a hotspot called "Airport_Free_WiFi" or "Hotel_Guest" in seconds, and a fake one often shows a stronger signal than the real one — your phone sorts by signal strength, and the attacker knows it.

Ask at the desk, or check the name printed on a sign, a receipt or the venue's own website, letter for letter. If two similar names appear and nobody can tell you which is real, do not join either — use your mobile data instead. This is the single most effective check on the list, because it defeats the evil twin before any cryptography is involved: the attack only works if you connect to the wrong network in the first place.

2. Check the security type — look for WPA2 or WPA3

On your phone's Wi-Fi settings, tap the network name before connecting and look at its security details. WPA3 is the modern standard and the one to prefer; WPA2 is still widely used and generally fine. An open network with no password is the riskiest kind — anyone can join it, and nothing you send is encrypted at the Wi-Fi level.

What the letters actually mean for you:

  • Open network: no encryption at the Wi-Fi layer at all. Every frame your device sends can be captured by anyone in range. HTTPS still protects the contents of a website visit, but the operator and any listener can see which sites you visit, and anything sent over plain HTTP is readable.
  • WPA2 (PSK): traffic between your device and the access point is encrypted with a key derived from the shared password. On a network where every guest knows the same password, that protection is weaker than it looks — anyone who knows the password can, in principle, decrypt other guests' traffic. It is still far better than open.
  • WPA3 (SAE): the password handshake no longer leaks enough for an offline dictionary attack, and each device gets its own encryption key, so one guest cannot read another's traffic even though they share the same password. Where a venue offers WPA3, use it.

A shared hotel password is better than no password, but every guest knows it, so it is not a private network. Treat any shared-password network as semi-public and keep the rest of the checks in force.

3. Turn off auto-join before you connect

Your phone remembers networks it has joined before and reconnects to them silently — and a fake hotspot with a familiar name can catch it. The mechanism is the probe request: your phone broadcasts the names of networks it remembers, asking "are you there?", and an attacker can answer "yes, I am that network" for any of them.

In your Wi-Fi settings, switch off "connect automatically" or "auto-join" for open networks, and delete saved public networks you no longer use. Do this once and it protects you everywhere. It also stops your phone advertising your travel history — the list of network names it probes for is, in effect, a list of places you have been.

4. Read the login page before you type anything

Many public networks show a captive portal — a login or terms page — after you connect. A genuine one may ask you to accept terms, enter a room number, or type a code from a receipt. Be suspicious at once if it asks for your Google or Apple password, your banking details, a payment card, or an unrelated account login. A Wi-Fi login page should never need credentials for accounts that have nothing to do with the venue.

Misspelled venue names, a strange web address, or a page that looks nothing like the hotel's own site are all reasons to disconnect. And never install anything a login page offers you — no "Wi-Fi app", no certificate, no "update". A captive portal that asks you to install software is not a login page, it is a malware delivery page.

5. Switch on your VPN before you connect, not after

A VPN encrypts everything your phone sends before it crosses the network, including the traffic that HTTPS misses — without it, the network operator can see which sites you visit and, on unencrypted pages, what you type. Turn the VPN on first, then join the network.

That order matters: if you connect first and switch the VPN on second, the first seconds of traffic — DNS lookups, background app syncs, push notifications — cross the network unprotected. With the VPN running before you join, the tunnel is up before any of your traffic leaves the device.

If you do not have a VPN, our free VPN guide explains the honest free options — and never install a VPN from a pop-up on the Wi-Fi login page itself.

6. Stick to HTTPS and skip banking and sensitive work

Most websites today use HTTPS, which encrypts the traffic between your browser and the site — check for the padlock and "https://" before you log in anywhere. But HTTPS has limits worth knowing on a public network:

  • It encrypts the page content, not the destination: the operator can still see which domains you visit (through DNS and the TLS handshake's Server Name Indication).
  • It protects you only if the certificate is genuine. A network that presents a certificate warning for a site you know is a red flag — do not click through it.
  • It does nothing for apps that send data over plain HTTP, which still happens more often than people assume.

Even so, treat public Wi-Fi as a browsing network, not a working one: check maps, read the news, watch a video — but do your banking, your work email and any card shopping on mobile data instead. If you must log in, use two-factor authentication, and prefer your authenticator app over a text-message code.

7. Forget the network when you leave

Once you are done, go into your Wi-Fi settings and tap "Forget this network" — otherwise your phone keeps broadcasting the name, and a fake hotspot with the same name can catch it later (see check 3). Switch Wi-Fi off entirely when you are not using it, and keep your phone's software up to date: out-of-date software leaves known flaws open, and public Wi-Fi is the worst place to meet them.

What to do if you already connected to a dodgy network

Disconnect at once and forget the network. If you logged in to any account while connected, change those passwords from a trusted connection — your mobile data or your home Wi-Fi — and turn on two-factor authentication where you have not already. Check your bank and email for activity you do not recognise, and run your phone's built-in security check. If the login page asked you to install an app, a certificate or an "update", remove it from your device the same day. A bad connection is fixable — but only if you act before the damage spreads.

The pattern behind all seven checks is one idea: a public network is infrastructure you do not control, so verify the name, verify the encryption, encrypt your own traffic on top of it, and leave nothing behind when you go. Two minutes before you connect saves hours after a bad one.

The full guide version of this topic lives on our blog: How to Check If Public Wi-Fi Is Safe Before You Connect.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.