Also on CyberFence: check your public IP and geolocation · compare CyberFence to other VPNs side-by-side .

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. It's not a theoretical risk invented by VPN companies to sell subscriptions — it's a documented, routinely practiced attack category that security researchers demonstrate at conferences, that law enforcement agencies warn about, and that real attackers use against real people every day at 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 the attacks work so consistently.

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 most common and most dangerous form of public Wi-Fi attack. In a man-in-the-middle attack, an attacker positions themselves between your device and the network, intercepting all traffic passing between the two. 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 — and the attacker can read, modify, or capture any of it.
  • 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 connect to the fake network automatically or after the user selects it. All traffic 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 all traffic.

Packet Sniffing

On networks that use weak or no encryption, an attacker can use freely available network monitoring software to capture all data packets broadcast on 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.

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 every domain your device contacts, which reveals what services you're using, what websites you're visiting, and when you access them.

Stop Being Readable on Public Wi-Fi

CyberFence encrypts all traffic with AES-256-GCM encryption before it leaves your device — session tokens, DNS queries, API calls, everything. Auto-connects on public Wi-Fi so you're protected before you open any app.

See Plans →

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 attacks bypass HTTPS via the connection itself — If you connect to a fake network that performs SSL stripping, the HTTPS protection can be removed before your browser ever establishes a secure connection, especially for sites that aren't on the HSTS preload list.
  • App traffic isn't guaranteed to use HTTPS correctly — Browser-based HTTPS is relatively well-implemented across major sites. Mobile app API communications are a different story — security researchers routinely find apps that either don't use TLS or implement it incorrectly.

HTTPS is better than nothing, but it's not a complete defense against public Wi-Fi attacks. A VPN that encrypts all traffic before it leaves the device — including DNS queries and all app communications — closes the gaps that HTTPS leaves open.

What a VPN Actually Does on Public Wi-Fi

When CyberFence is active, all traffic from your device is encrypted with AES-256-GCM encryption before it reaches the public Wi-Fi router. The attack surface for MITM attacks on the local network is eliminated: an attacker who intercepts traffic from your device sees only encrypted packets addressed to the VPN server's IP address. They cannot read the content, determine which websites or services you're communicating with, or capture usable session tokens.

Specifically, a VPN on public Wi-Fi:

  • Prevents ARP spoofing attacks from being effective — Even if an attacker successfully positions themselves between your device and the router, the traffic they intercept is encrypted. Session tokens, credentials, and content are not accessible.
  • Neutralizes evil twin network attacks — If you connect to a fake network, the attacker still only sees encrypted traffic to the VPN server. SSL stripping attacks fail because all connections are wrapped in the VPN tunnel before any HTTPS negotiation occurs.
  • Encrypts DNS queries — CyberFence routes DNS queries through its own encrypted resolver, preventing the network operator and any MITM attacker from seeing what domains your device is contacting.
  • Protects all app traffic — VPN encryption wraps all network traffic from the device, including API calls from apps that might not implement HTTPS correctly, background app connections, and OS-level communications.

How to Stay Safe on Public Wi-Fi

A VPN is the most comprehensive protection, but the complete security practice for public Wi-Fi includes several layers:

  • Use a VPN with auto-connect — CyberFence auto-connects when an untrusted network is detected, protecting you before any app opens. Manual VPN activation requires remembering to enable it before every sensitive action — auto-connect removes that dependency.
  • 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, consistently, by attackers who don't need sophisticated tools. 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 the security guidance from CISA, the FBI, Microsoft, and every enterprise security team includes VPN use for remote access — because the alternative is readable traffic on networks you don't control.

Every Network Is Safer With Encryption — Start Free

Download CyberFence from the App Store or Google Play. AES-256-GCM encryption, encrypted DNS, auto-connect on every untrusted network. Try it free — available on iPhone, iPad, Android, Windows, and macOS.

View Plans →

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