Blog / How the internet works /

VPNs explained: how they work

VPN adverts promise everything: total privacy, freedom, safety from hackers, cheaper flights. The truth is more modest and more useful. A VPN does one specific thing very well, and a few other things not at all.

The plain definition

VPN stands for virtual private network. In practice, it’s an encrypted tunnel from your device to a server run by the VPN provider. Your traffic goes through the tunnel, comes out at the VPN server, and then carries on to the website you wanted.

Two things change as a result:

  1. Your internet provider or the Wi-Fi owner can’t see what you’re doing, only that you’re connected to a VPN.
  2. The website sees the VPN server’s address, not yours.

That’s the whole trick.

The analogy

Imagine posting a letter. Normally the envelope shows your home address as the sender and the post office staff can read the postcard inside.

With a VPN, you put your postcard in a sealed, opaque envelope and send it to a trusted friend in another city. They open it, copy your message onto a fresh card with their own return address, and post it on. The post office on your street sees only a sealed envelope going to your friend. The recipient sees your friend’s address.

Notice what’s changed: you’ve moved your trust. The post office no longer sees your message, but your friend does. That’s the VPN provider’s position, and it’s the part adverts skip.

What a VPN is good for

  • Public Wi-Fi. On airport, café or hotel networks, a VPN stops other users on that network from snooping on unencrypted traffic. Nowadays most sites already use HTTPS, so the protection matters less than it used to, but a VPN still hides which sites you visit from the network owner. (See how HTTPS works, simply.)
  • Hiding browsing from your ISP or network. A workplace, school or internet provider can’t log the sites you visit.
  • Changing your apparent location. You appear to be wherever the server is. That’s why people use VPNs to reach content shown only in some countries, or to see how a site looks from another place.
  • Reaching a private network. Businesses use VPNs so staff can access internal systems securely from home. This is the original use.
  • Getting around local blocks. In places where certain sites or services are restricted, a VPN can restore access. Laws on this differ by country, so know your local rules. I’ll say more about this in my post on censorship and the open web.

What it does not do

  • It doesn’t make you anonymous. The VPN provider can see your traffic or at least your connection details. Logins, cookies and browser fingerprints still identify you to websites.
  • It doesn’t stop tracking. If you’re logged into Google or Facebook, they know it’s you, from any address.
  • It doesn’t protect against malware or phishing. A bad link is a bad link through a tunnel.
  • It doesn’t make you invulnerable on bad sites. HTTPS and good habits still matter.
  • It doesn’t hide your activity from the sites you log into.

On that point, what an IP address reveals about you is worth reading: your IP is only one clue among many.

How the tunnel works, briefly

When you switch on a VPN, your device agrees an encryption key with the VPN server. Everything leaving your device is scrambled with it. Common protocols you may see in app settings include WireGuard and OpenVPN, and IKEv2. For most people, the advice is simply to use the app’s recommended choice. WireGuard is newer, lean and generally fast.

Free versus paid

Running servers across the world costs money. If an app is free and has no obvious funding, the product may be you: some free VPNs have been caught logging and selling browsing data, which is the opposite of the point. A paid service from a company with a clear business model is a safer bet. Look for:

  • A clear privacy policy that says what is and isn’t logged.
  • Independent audits, if the provider publishes them.
  • A track record and a real company behind it.
  • Apps for the devices you use.

Don’t pick by affiliate review sites alone. Many of them are paid per sign-up.

Speed and data

A VPN adds a detour, so it can slow you down, depending on how far the server is and how busy it is. Choosing a nearby server usually helps. In places where data is expensive or the line is patchy, the extra overhead matters. The overhead is small but not zero, and flaky connections can drop the tunnel at awkward moments. Turn on the “kill switch” option if the app has one, so traffic stops rather than leaking if the tunnel falls over. For background on why connections vary, see why the internet is slow sometimes.

Why website owners should care

Your visitors use VPNs. Analytics may show odd locations, and geo-based content or pricing can misfire for them. Do not assume a visitor from Germany is in Germany.

Security tools and VPNs interact. Firewalls sometimes flag VPN addresses as suspicious because attackers use them too. Blocking all VPN traffic on a shop will cost you honest customers.

Admin access. If you manage client sites from a café, a VPN is a sensible extra layer. Better still: two-factor authentication on every admin account and a password manager.

Allow-lists. Some hosts and services restrict logins to one IP address. A VPN changes your address, so you might lock yourself out. Know which address you need to be on.

Business VPNs. If your team needs secure access to something internal, a business VPN or a zero-trust tool is a better fit than a consumer app.

A short buying checklist

  1. Do you actually need one? Name the reason.
  2. Does the provider explain its logging policy in plain words?
  3. Is there a kill switch?
  4. Does it work on every device you use?
  5. Is there a refund period so you can test speeds on your own connection?
  6. Is the price honest after the intro offer?

Common myths

  • “A VPN makes public Wi-Fi totally safe.” It helps, but updates and HTTPS do a lot of the work.
  • “VPNs are illegal.” In most places they’re legal. Using them for illegal acts, or in countries that restrict them, is different. Check your own country.
  • “The more servers, the better.” Quality and trust matter more than a big number.

Key takeaways

  • A VPN encrypts your traffic to a server and hides your IP from the sites you visit.
  • You are shifting trust from your network to the VPN company, so choose carefully.
  • It isn’t anonymity and it doesn’t stop malware or tracking.
  • Site owners should expect VPN visitors and avoid blanket blocks.

What do you actually want a VPN for? If the answer is vague, start there before paying for anything.