Skip to content
VPN

What is a VPN and how does it work? What it hides and what it doesn’t

A VPN (virtual private network) creates an encrypted tunnel between your device and a server run by the VPN provider. Your internet provider and the Wi-Fi operator can no longer see where you connect, and websites see the VPN server’s IP address instead of yours. A VPN won’t make you anonymous, though. It won’t stop scam sites, and the VPN provider can see what you hide from everyone else: your IP address and the sites you visit.

Cover of What is a VPN: 49.6% of EU businesses with 10+ staff use a VPN, WireGuard for Linux has under 4,000 lines of code, 38% of free Android VPN apps flagged for malware

The US National Institute of Standards and Technology (NIST) defines a VPN as a virtual network built on top of an existing physical network that provides secure communication between networks or devices (NIST, PDF). In plain terms: your data takes a detour through someone else’s server and is encrypted along the way.

If you already know you want one and just need to pick a service, start with our best VPNs of 2026. This guide looks under the hood: how a VPN works, what it really hides, where its limits are and when you don’t need one at all.

01The short answer: what a VPN does and doesn’t do

A VPN doesA VPN doesn’t
Encrypt traffic between your device and the VPN serverMake you anonymous; you can still be tracked through cookies, browser fingerprinting or accounts you’re signed in to
Hide the sites you visit from your internet provider and the Wi-Fi operatorHide your traffic from the VPN provider itself
Replace your IP address with the VPN server’s addressProtect you from viruses, phishing or fake online stores
Let you choose which country you connect fromGuarantee access to streaming services abroad, which often block VPNs
Based on the Electronic Frontier Foundation’s guide (EFF), last reviewed July 2026, and the US Federal Trade Commission (FTC).
What a VPN hides and what it doesn’t: it hides the sites you visit from your internet provider, your traffic on public Wi-Fi and your IP address from websites, but not your traffic from the VPN provider, your account logins, cookies or your GPS location
What a VPN hides and what it doesn’t.

02How a VPN works, step by step

How a VPN works in four steps: the app connects to the VPN server, encrypts the whole data packet, sends it through the tunnel over the internet, and the server unwraps it and passes it to the website, which sees the server’s IP address
The path your data takes through a VPN, in four steps.
  1. The VPN app on your device connects to a VPN server. Both sides authenticate each other and agree on encryption keys.
  2. Every data packet your device sends to the internet is fully encrypted by the app and wrapped in a new packet addressed to the VPN server. WireGuard, for example, encrypts the entire IP packet and sends it over UDP (WireGuard).
  3. Your internet provider or the Wi-Fi operator only sees that you’re talking to one server, plus data it can’t read.
  4. The VPN server unwraps the packet, sends it on to the website and returns the reply the same way. The website sees the server’s IP address, not yours.

According to the Electronic Frontier Foundation, a VPN routes all your traffic through an encrypted tunnel between your device and the VPN server, and from a website’s point of view you appear to be wherever the server is (EFF). Your IP address matters because it reveals your rough location and can be used to identify you.

What happens to DNS

Before your browser opens a site, it asks a DNS server for the site’s numeric address. Your internet provider normally sees these lookups, and even when a site uses HTTPS, the lookups reveal which domains you visit. A good VPN sends DNS lookups through the tunnel to its own servers. When they go outside the tunnel, that’s called a DNS leak.

VPN and HTTPS

Most websites now use HTTPS, which encrypts the content of the page. HTTPS doesn’t hide the metadata: the domains you visit and when you visit them are visible to your internet provider and others along the way (EFF). A VPN hides those domain names from your internet provider and the local network. Your provider still sees when you’re online and how much data you send.

03Who sees what, with and without a VPN

WhoWithout a VPN, seesWith a VPN, sees
Internet providerYour IP address, the domains you visit, timing and data volumeThat you’re connected to a VPN server, timing and data volume
Wi-Fi operator (cafe, hotel)The domains you visit and any unencrypted trafficOnly an encrypted connection to the VPN server
Website you visitYour IP address and approximate locationThe VPN server’s IP address and location
VPN providerNothingYour IP address and the domains you visit
Simplified from EFF and FTC. A website can still recognize you through logins, cookies or browser fingerprinting.

The FTC says a VPN app generally keeps the content of your traffic away from your internet provider or a public Wi-Fi network, but it doesn’t make you anonymous. It just shifts trust from those networks to the VPN app provider (FTC). That’s why choosing a provider matters so much. When you install a VPN app, you’re giving it permission to intercept all of your internet traffic.

04Protocols: WireGuard, OpenVPN, IKEv2 and more

The protocol decides how the tunnel is built and how the data is encrypted. Most apps choose it for you, so you rarely need to touch it. It still helps to know which protocols are modern and which are outdated.

VPN protocols: WireGuard is fast and simple, OpenVPN is proven and versatile, IKEv2 is stable on mobile, Lightway and NordLynx come from providers, PPTP and L2TP are outdated and shouldn’t be used
Which VPN protocols to use and which to avoid.
ProtocolWhat it’s likeWhere you’ll see it
WireGuardModern, under 4,000 lines of code on Linux, runs over UDP, changes keys every 2 minutesMany consumer VPN apps
OpenVPNProven, encrypts with TLS, runs over UDP or TCP, default cipher AES-256-GCMA versatile choice; it can also run over TCP
IKEv2/IPsecAn Internet Standard (current spec RFC 7296, 2014); its MOBIKE extension survives switching from Wi-Fi to mobile dataPhones and corporate VPNs
Lightway, NordLynxProviders’ own protocols: ExpressVPN’s Lightway (its own open-source design) and NordVPN’s NordLynx (built on WireGuard)The ExpressVPN and NordVPN apps
PPTP, L2TPOutdated; PPTP is broken and L2TP doesn’t encrypt on its ownOld corporate networks only; don’t use them
Sources: WireGuard, OpenVPN, IETF RFC 7296, RFC 4555, Lightway, NordVPN, NIST.

NIST says PPTP and L2TP “must not be used” (NIST, PDF). Apple removed PPTP from the iPhone back in iOS 10 (Apple), and in 2024 Microsoft announced it would drop PPTP and L2TP from future versions of Windows Server (Microsoft). One more detail: WireGuard’s algorithms aren’t on NIST’s approved list (NIST, PDF). That doesn’t call its security into question. It mainly matters to US federal agencies and contractors that must use NIST-approved cryptography.

Get NordVPN

05What a VPN can’t do: five myths

Five VPN myths: a VPN makes me anonymous, a VPN protects me from viruses and scams, the VPN provider can’t see anything, a kill switch guarantees nothing leaks, a VPN always unlocks Netflix abroad
Five VPN myths and what’s actually true.
  • “A VPN makes me anonymous.” The EFF says a VPN isn’t a tool for anonymity; companies can still track you through GPS, cookies, tracking pixels or browser fingerprinting (EFF). If you’re signed in to Google or Facebook, they know who you are, VPN or no VPN.
  • “A VPN protects me from viruses and scams.” According to the EFF, ads claiming a VPN will stop cybercriminals and malware vastly oversell what VPNs do (EFF). You can type your details into a scam site just as easily over a VPN.
  • “The VPN provider can’t see anything.” It can. With a commercial VPN, your traffic is visible to whoever runs the service (EFF). A no-logs claim is just a claim; an independent audit makes it more credible, but it only covers the moment it was done (EFF).
  • “A kill switch guarantees nothing leaks.” In the 2024 TunnelVision attack, researchers found the VPN kept reporting that it was connected and the kill switch never kicked in (Leviathan Security).
  • “A VPN always unlocks Netflix abroad.” Streaming platforms block VPNs more and more, so getting around geo-blocking isn’t guaranteed (EFF).

The EFF also points out that other steps often matter more for your security than a VPN: strong passwords, two-factor authentication, updates and encrypted DNS (EFF). We walk through them in How to secure your phone and accounts.

06Kill switch, split tunneling and leaks

  • A kill switch cuts your internet when the VPN drops, so data doesn’t go out unprotected. Android has had this built in since version 7.0 as an always-on VPN that blocks connections outside the VPN (Android Developers); elsewhere, the app provides it.
  • Split tunneling sends only selected apps through the VPN while the rest goes direct. It’s handy for apps that don’t work over a VPN, such as some banking or streaming apps. For corporate VPNs, NIST strongly discourages it because of the security risks (NIST, PDF).
  • A DNS leak happens when lookups for site addresses go outside the tunnel. On Windows, OpenVPN has an option that blocks DNS outside the tunnel (OpenVPN).
  • A WebRTC leak: with a split-tunnel VPN, the WebRTC technology in your browser can reveal the real IP address your internet provider assigned you (IETF RFC 8828).

The 2023 TunnelCrack research found that every VPN product tested was vulnerable on at least one device, most often on Apple devices and least often on Android (TunnelCrack). The attacks require a malicious Wi-Fi network or, for one of them, a malicious internet provider. We look at how leaks play out on phones in How to set up a VPN on iPhone and Android.

07VPN vs. proxy vs. Tor vs. iCloud Private Relay

ToolWhat it coversWho sees your trafficWhen to use it
VPNThe whole deviceThe VPN providerPublic Wi-Fi, travel, privacy from your internet provider
ProxyUsually a single app, such as your browserThe proxy operatorA quick IP change in the browser, not for security
TorTor Browser; traffic passes through several volunteer-run relaysNo single relay sees everythingWhen you need the strongest anonymity
iCloud Private RelaySafari and unencrypted app traffic on Apple devicesNo single party sees both your IP address and the siteBrowsing in Safari; it can’t change your country
Sources: EFF, Tor Project, Apple, PDF, OpenVPN.

If you want stronger anonymity, the EFF says Tor is a better choice than a VPN, because no single Tor server can see your browsing data (EFF). The Tor Project, however, doesn’t recommend combining a VPN with Tor unless you’re an advanced user: set up wrong, it can actually reduce your anonymity (Tor Project).

08When to use a VPN, and when you don’t need one

Public Wi-Fi

Because most sites now use encryption, the FTC says connecting through a public Wi-Fi network is usually safe (FTC), and the EFF agrees that a VPN on public Wi-Fi isn’t as necessary for everyone as it used to be. A VPN still hides the domains you visit from whoever runs the network (EFF). On an airport, hotel or cafe network you don’t trust, that’s a sensible extra layer.

Working remotely

Corporate VPNs that let employees reach the company network are widespread. In 2024, 49.6% of EU businesses with ten or more employees used a VPN, according to Eurostat (Eurostat). Germany and Austria are well above the average, at nearly two in three businesses.

Businesses using a VPN, % of companies with 10+ employees
  • Germany2019: 55.9%2024: 64.3%
  • Austria2019: 40.6%2024: 63.6%
  • Finland2019: 54.1%2024: 56.4%
  • EU (27 countries)2019: 42.4%2024: 49.6%
  • Poland2019: 30.4%2024: 44.9%

Share of enterprises that use a VPN as an ICT security measure, excluding agriculture, mining and the financial sector. Source: Eurostat, isoc_cisce_ra.

Travel and streaming

A VPN makes sense when you travel and want to keep your browsing private on hotel networks. In countries that censor the internet, VPNs are often restricted too, so check local rules first (see below). For streaming, expect friction: platforms increasingly block connections that look like they come from a VPN (EFF), and many services’ terms limit where you can watch, so check them first.

When a VPN is pointless

  • At home on your own secured Wi-Fi, if you don’t mind your internet provider seeing the domains you visit.
  • When you want to stay anonymous on sites you’re signed in to.
  • As protection against scams, phishing or viruses; other tools handle that.

Get Surfshark

09Is using a VPN legal?

In the US, yes, and in many other countries too: the Federal Trade Commission publishes advice on choosing a VPN app (FTC), and the EFF does the same (EFF). A handful of countries restrict or ban VPNs (see below). Keep in mind that a VPN doesn’t make anything legal that’s illegal without one, and getting around geo-blocking may break a streaming service’s terms, so check them before you try.

Examples of countries that restrict VPNs

CountryWhat applies
ChinaThe Ministry of Industry and Information Technology banned unlicensed VPNs in 2017; providers need government approval
RussiaAuthorities block VPN services and order them removed from app stores
IranUsing a VPN without a license has been banned since February 2024
United Arab EmiratesUsing a false or someone else’s IP address, for example through a VPN, to commit a crime or avoid detection can mean prison and/or a fine of AED 500,000 to 2,000,000 (about $136,000 to $545,000)
TurkeyNo legal ban, but the regulator orders internet providers to block VPN services; in late 2023 it ordered 17 of them blocked
BelarusSeveral VPN apps, including Psiphon and TunnelBear, became inaccessible in May 2024
Based on Freedom House (China, Russia, Iran, Turkey, Belarus) and UAE Federal Decree-Law No. 34 of 2021.

The Freedom House reports cover periods up to May 2024 and May 2025, so check your government’s travel advice before you go.

10Free VPNs: what to watch out for

Running a VPN costs money, and a free service has to make it somewhere else. The EFF warns that a VPN can be entirely free and sell your data (EFF). A 2016 study of 283 free Android VPN apps found that VirusTotal flagged more than 38% of them for malware, 18% didn’t encrypt traffic at all and 75% contained tracking libraries (CSIRO and ICSI, PDF). The data dates from 2015. A 2025 study uncovered three hidden families of VPN apps with more than 700 million combined Google Play downloads whose traffic could be decrypted because of hard-coded passwords (FOCI 2025, PDF).

Some reputable providers offer a free tier, such as Proton VPN Free. We compare them in our best free VPNs of 2026, and paid services in our best VPNs of 2026.

Get Proton VPN

11How much does a VPN slow you down?

There’s no single number. The slowdown depends on the protocol, how far away the server is, how busy it is and your device. NIST notes that SSL VPNs such as OpenVPN usually run as an app and are significantly slower than VPNs that run in the operating system’s kernel, such as IPsec or WireGuard (NIST, PDF). That’s one reason many providers now offer WireGuard or their own newer protocols, such as NordLynx or Lightway.

Picking a nearby server usually helps the most. For measured speeds, see our ExpressVPN review 2026 and the ExpressVPN vs NordVPN 2026 comparison.

12How to choose a VPN

  1. An independent audit of the no-logs policy, not just a promise in an ad.
  2. A modern protocol (WireGuard, OpenVPN or IKEv2), never PPTP.
  3. A kill switch and DNS leak protection.
  4. Servers in the countries you need.
  5. A money-back guarantee, so you can try the service.

The EFF adds that a no-logs claim is not a guarantee and suggests digging into the provider’s privacy policy and business model to see how your data is monetized (EFF). We compare specific services and prices in our best VPNs of 2026.

Get ExpressVPN

13FAQ

What is a VPN, in simple terms?

An encrypted tunnel between your device and a VPN server. Your internet provider and the Wi-Fi operator can’t see where you connect, and websites see the server’s IP address instead of yours (EFF).

Does a VPN make me anonymous?

No. You can still be tracked through cookies, browser fingerprinting or the accounts you’re signed in to, and the VPN provider can see your traffic (EFF).

Is using a VPN legal?

In the US and many other countries, yes; the FTC even publishes advice on choosing one (FTC). Countries including China, Russia and Iran restrict VPNs, and using one to get around geo-blocking may break a streaming service’s terms.

Does a VPN protect against viruses and scams?

No. A VPN encrypts your connection, but it won’t stop you from downloading malware or entering your details on a scam site (EFF).

Which VPN protocol is best?

For most people, WireGuard or OpenVPN, and IKEv2 on phones. PPTP and L2TP are outdated, and NIST says they must not be used (NIST).

Do I need a VPN on public Wi-Fi?

Not always. The FTC says public Wi-Fi is usually safe because most sites use encryption (FTC), but a VPN still hides the sites you visit from whoever runs the network (EFF).

Does a VPN slow down my internet?

Usually somewhat, but there’s no single number. It depends on the protocol, the server’s distance and load, and your device. NIST says kernel-based VPNs such as IPsec and WireGuard are significantly faster than SSL VPNs that run as an app (NIST).

14Bottom line

A VPN is an encrypted tunnel that hides your traffic from your internet provider and the Wi-Fi operator and shows websites a different IP address. It’s useful on untrusted Wi-Fi, when you travel and for remote work.

A VPN has clear limits. It won’t make you anonymous, it won’t protect you from scams, and all it really does is shift your trust from your internet provider to your VPN provider. Pick a service with an independent audit and a modern protocol, and don’t lean on a VPN where a strong password and two-factor authentication would do more.

We build encryption and data protection into the websites and apps we make, too. If you’re planning a new site or system, see how we build custom websites and how we work.

Get NordVPN

15Sources

Accurate as of October 1, 2026.

LISTIFY teamWebsites, apps and marketing from Prague since 2008

More articles

All articles →
VPNOctober 1, 2026 · 15 min read

Private Internet Access (PIA) Review 2026: The Cheapest VPN for Unlimited Devices?

VPNOctober 1, 2026 · 16 min read

VPN on iPhone and Android: how to set it up, check it and pick one

VPNOctober 1, 2026 · 13 min read

CyberGhost vs Surfshark 2026: Which Budget VPN Is the Better Buy?

Share this page

By email

Got an idea?

On a short call, we'll find out what you need and suggest the next step. Then you'll get a proposal with a fixed price and a timeline.

+420 771 166 199Mon to Fri, 8:30 a.m. to 4:00 p.m. (Prague time) · info@listify.cool

When should we call you?

Pick a day and a time window. We'll call you, and it takes about 15 minutes.

Day