Quick answer

Can you get hacked on public Wi-Fi?

Yes, it can happen, but it's harder than it used to be. The FTC says connecting to public Wi-Fi is usually safe today because most websites use encryption. The risks that remain are fake hotspots, sites and apps that don't encrypt properly, and someone on the network seeing which sites you visit. A VPN encrypts the traffic of the apps that go through it while it's connected.

Public Wi-Fi risks and whether a VPN helps
RiskDoes a VPN help?
Someone on the network reading unencrypted trafficYes, for apps that go through the VPN.
A fake hotspot with a real-looking nameYes for your traffic. It can't stop its sign-in page.
The network seeing the sites you visitYes. It sees a connection to the VPN server.
A phishing page you sign in toPartly. Web Shield blocks known ones while connected.
Person with focused expression using a laptop at a busy coffee shop with other patrons visible in the background, warm ambient lighting

Yes. You can get hacked on public Wi-Fi, though it's less likely than it used to be. The FTC's consumer guidance on public Wi-Fi says that because of the widespread use of encryption, connecting through a public Wi-Fi network is usually safe. The attacks that remain are well documented: NSA warns that an attacker can set up a fake access point to mimic the nearby expected public Wi-Fi, and the places that matter are airports, coffee shops, hotels and anywhere else shared Wi-Fi is available.

The more useful question isn't whether it can happen but how it happens, what actually gets stolen, and what makes the difference between a session that goes fine and one that doesn't. The mechanics are less complicated than most people assume, which is part of why they still work.

How Public Wi-Fi Hacking Actually Works

Public Wi-Fi attacks fall into a few well-established categories. Understanding them makes it clear why certain protective measures work and others don't.

Man-in-the-Middle (MITM) Attacks

This is the attack most public Wi-Fi advice is about. In a man-in-the-middle attack, an attacker positions themselves between your device and the network, so your traffic passes through them on its way out. HTTPS keeps most site content encrypted even then, but the attacker can see where you connect and target anything that isn't encrypted. There are several ways to accomplish this:

  • ARP spoofing — On a shared network, the Address Resolution Protocol (ARP) is used to associate IP addresses with device MAC addresses. An attacker sends fake ARP messages to other devices on the network, convincing them that the attacker's device is the router. All traffic from those devices then flows through the attacker's machine before going to the internet — where the attacker can read or change anything that isn't encrypted.
  • Evil twin networks — An attacker sets up a Wi-Fi network with the same name (SSID) as a legitimate network at a location. A coffee shop's "CoffeeShop_WiFi" is easy to impersonate — the attacker creates an identical network name with a stronger signal, and devices may join the fake network on their own if they've joined that name before, or after the user selects it. Traffic then flows through the attacker.
  • SSL stripping — When a device connects to a website that supports both HTTP and HTTPS, a MITM attacker can intercept the initial connection and serve the HTTP version, stripping the HTTPS encryption before the secure connection is established. The user's browser shows a connection that looks roughly normal, but the attacker can read that unencrypted session. Browsers block this for many major sites through HSTS, and HTTPS-only mode blocks it more broadly.

Packet Sniffing

On networks that use weak or no encryption, an attacker can use freely available network monitoring software to capture the data packets sent over the network. On a properly secured network with WPA3 encryption, this is much harder. But many public Wi-Fi networks still use WPA2 with shared keys, or offer completely open networks with no Wi-Fi-level encryption at all. On these networks, a patient attacker sitting in the same coffee shop can capture a significant volume of network traffic from other users without doing anything sophisticated.

Session Hijacking

When you log into a website, the server creates a session token — a unique identifier that your browser presents on subsequent requests to prove you're still authenticated. This token is often transmitted in cookies or URL parameters. An attacker who captures that session token can use it to access your account on that website as if they were you — without knowing your password and without triggering any failed login attempts, because the token itself is legitimate. Logout events on the website typically invalidate the token, but many sessions persist for hours or days.

On hotel, airport and café Wi-Fi, connect first.

See CyberFence encrypt your connection on shared Wi-Fi, in under a minute.

Watch the Hotel. Airport. Café. film

Select play to load YouTube, then start the film in the player. YouTube processes data when loaded; its privacy policy applies.

Watch on YouTube (opens a new tab)

Read the video transcript

Is this network safe to use? You ask it at every stop on a trip.

At the hotel, turn on CyberFence, and your laptop's connection is encrypted through US-based servers. At the airport, the Network view on your phone shows the network you're on, and whether it's secured. At the café, one tap connects your iPad.

Sign in on each device with the same account.

Hotel. Airport. Café. CyberFence comes with you. Get protected today.

What Gets Stolen on Public Wi-Fi

The specific data at risk depends on what you're doing on the network and how well the services you're using protect their connections. On a typical public Wi-Fi session:

  • Login credentials for sites without proper HTTPS — Usernames and passwords transmitted over unencrypted connections are fully readable to any MITM attacker on the network.
  • Session tokens for authenticated services — Even on HTTPS sites, session tokens can sometimes be captured and reused if they're not properly scoped (e.g., not marked HttpOnly or Secure, or transmitted over a brief unencrypted connection during the login process).
  • Personal and financial information submitted through forms — Contact information, payment card details, addresses, and other data submitted through web forms on insecure connections.
  • Email content — If email is accessed through a webmail client over an insecure connection, the email content is readable in transit.
  • API communications from apps — Many mobile apps transmit data to backend servers using API calls. These calls may or may not use properly implemented TLS. Apps that don't implement certificate pinning are susceptible to MITM attacks that intercept API traffic even when TLS is nominally in use.
  • DNS queries — Even when web traffic is encrypted, DNS queries (the requests that resolve domain names to IP addresses) may be unencrypted. A MITM attacker can see the domains your device looks up, which reveals what services you're using, what websites you're visiting, and when you access them.

Does HTTPS Protect You on Public Wi-Fi?

HTTPS encrypts the content of the connection between your browser and the server. It protects the data inside the connection — the page content, form submissions, and data exchanged with the website. But HTTPS has important limitations in the context of public Wi-Fi attacks:

  • HTTPS doesn't protect DNS queries — The domain name you're visiting is revealed in the DNS query before the HTTPS connection is established. An attacker can see that you're visiting your bank's website even if they can't read what you're doing once you're there. Encrypted DNS (DoH or DoT) addresses this, but it's not universally implemented by devices or networks.
  • HTTPS doesn't prevent session token theft in all configurations — A properly implemented HTTPS site with Secure and HttpOnly cookie flags provides good protection against session theft. But a site that momentarily redirects through an HTTP URL, or that sets session cookies without Secure flags, can expose tokens to interception.
  • Evil twin networks can try to strip HTTPS — If you connect to a fake network that performs SSL stripping, it can try to serve the unencrypted version of a site before a secure connection starts. HSTS and browser HTTPS-only modes block this for many sites, so it mostly affects sites that still allow plain HTTP.
  • Not every app uses HTTPS correctly — Browser-based HTTPS is relatively well implemented across major sites. The FTC notes that the majority of mobile apps use encryption, but security researchers still find apps that either don't use TLS or implement it incorrectly.

HTTPS already protects most site content, so it's far better than nothing, but it leaves gaps on a network you don't control. A VPN encrypts the traffic of the apps that go through it, including their DNS lookups, between your device and the VPN server, which covers most of the gaps HTTPS leaves on the local network. It doesn't make a phishing page safe.

What a VPN Actually Does on Public Wi-Fi

When CyberFence is connected, the apps that go through the VPN send their traffic through an encrypted tunnel to a US-based CyberFence server before it reaches the public Wi-Fi router. An attacker on the local network who intercepts that traffic sees encrypted packets addressed to the VPN server's IP address. They can't read the content, see which websites you visit inside the tunnel or pick usable session tokens out of it.

Specifically, a VPN on public Wi-Fi:

  • Makes ARP spoofing far less useful — Even if an attacker positions themselves between your device and the router, the VPN traffic they intercept is encrypted, so session tokens, credentials and content inside the tunnel stay unreadable.
  • Limits what an evil twin can see — If you connect to a fake network, the attacker sees encrypted traffic to the VPN server, and SSL stripping on the local network doesn't work against traffic inside the tunnel. A VPN can't stop the fake network's own sign-in page, so never type a password into it.
  • Keeps DNS lookups inside the tunnel — Lookups from the apps that go through the VPN travel inside the encrypted tunnel, so the network operator and anyone else on the network can't read or rewrite them. Run a free DNS leak test while connected to check.
  • Covers app traffic, not just the browser — The apps that go through the VPN while it's connected are encrypted too, including apps that might not implement HTTPS correctly and their background connections. Per-app split tunneling lets you leave chosen apps out.

How to Stay Safe on Public Wi-Fi

A VPN covers the most ground on the network itself, but staying safe on public Wi-Fi takes a few layers:

  • Connect your VPN before you open apps — CyberFence connects with one tap. Make it a habit to turn it on as soon as you join public Wi-Fi, before you open email, banking or work apps.
  • Verify the network name before connecting — Ask a staff member to confirm the exact network name before connecting at a coffee shop or hotel. An evil twin network named "Hilton_WiFi_Secure" looks legitimate at a glance.
  • Enable HTTPS-only mode in your browser — Major browsers offer an HTTPS-only or always-HTTPS mode that prevents the browser from loading HTTP versions of websites. This reduces SSL stripping risk.
  • Don't access financial accounts or sensitive portals on untrusted networks without a VPN — Bank accounts, investment platforms, healthcare portals, and work systems all carry higher risk if accessed without encryption on public networks.
  • Log out of sensitive accounts when done — Logging out invalidates session tokens, limiting the window during which a captured token could be used against you.

The honest answer to "can you get hacked on public Wi-Fi" is: yes, it can happen, and the tools involved are cheap and easy to find, though HTTPS makes it much harder than it used to be. The honest answer to "what stops it" is: encrypting your traffic before it reaches the network. That's what a VPN does, and it's why NSA's guidance on public Wi-Fi strongly advises using a personal or corporate-provided VPN, alongside HTTPS.

Frequently Asked Questions

Is public Wi-Fi safe to use?

Usually, for everyday browsing. The FTC says the widespread use of encryption makes public Wi-Fi usually safe. The risks are fake hotspots, sites and apps that don't encrypt properly, and scam sites that do.

Can someone see what I do on public Wi-Fi?

On HTTPS sites they can't read the page content, but they can see which sites you connect to. With a VPN connected, they see a connection to the VPN server instead.

Does a VPN protect me on public Wi-Fi?

It encrypts the traffic of the apps that go through it, between your device and the VPN server. It doesn't stop you typing a password into a phishing page or a fake Wi-Fi sign-in page.

Should I bank on public Wi-Fi?

Your bank already uses HTTPS. If you need to, connect a VPN, check the network name and use your bank's app or a site you typed in yourself. Your phone's mobile data is a good alternative.

What's the easiest way to stay safe on public Wi-Fi?

Confirm the network name with staff, connect a VPN before you open apps, turn on your browser's always-HTTPS setting and never type a password into a Wi-Fi sign-in page.

Read Next

Want to go deeper? Read our free IP address checker , the CyberFence competitor comparison hub , or CyberFence plans and pricing .