What Is a VPN Kill Switch? How It Works and How to Test Yours

⚠️ Affiliate Disclosure: This article contains affiliate links. If you purchase through them we may earn a commission at no extra cost to you. Read our full disclosure.

Key Takeaway:
A VPN kill switch blocks all internet traffic whenever your VPN connection drops, so nothing travels outside the tunnel with your real IP address. Without one, a brief disconnection, when you change Wi-Fi, wake the laptop or the VPN server hiccups, quietly sends your traffic out the normal way. Most VPN apps have a kill switch but don’t always turn it on by default. Switch it on, then test it in five minutes with our VPN leak test.

A VPN protects you only while it’s connected. The kill switch covers the moments when it isn’t, and those happen more often than most people realise.


Why VPN Connections Drop

  • Changing networks: moving from Wi-Fi to mobile data, or between two Wi-Fi networks.
  • Sleep and wake. Laptops and phones suspend their network connections to save power, and the VPN has to reconnect afterwards.
  • Weak or unstable connections: trains, cafés, hotel Wi-Fi.
  • Server problems: the VPN server restarts, gets overloaded or goes offline.
  • Software issues: an app update, a crash, or the operating system closing the app in the background.

Each drop usually lasts seconds. But in those seconds, apps keep working: messages sync, pages load, downloads continue, and without a kill switch all of it goes out over your normal connection, showing your real IP address to whatever it connects to and the content of unencrypted traffic to your provider.


The Two Kinds of Kill Switch

TypeHow it worksStrengths and gaps
App-levelCloses chosen apps (say, a browser or torrent client) when the VPN dropsLets everything else keep working, but anything not on the list can leak
System-level (firewall-based)Firewall rules block every connection that doesn’t go through the VPNCovers everything, including background apps; no internet at all until the VPN reconnects

For privacy, the system-level kind is the one that matters, because the leaks you don’t notice come from background apps. Some apps call it “Network Lock”, “Always-on” or “Block connections without VPN”. Under the hood it’s a firewall rule; see what a firewall is.


Where to Turn It On

  • In your VPN app (Windows, Mac, iPhone): look in Settings for “Kill switch”, “Network lock” or “Block internet when VPN disconnects”. On some apps it’s on by default; on others it isn’t, so check. Major providers such as PureVPN and IPVanish advertise a kill switch in their apps; check where it sits on each of your devices, because the options can differ by platform.
  • Android, built in: Settings, then Network & internet, then VPN. Tap the gear next to your VPN and turn on Always-on VPN and Block connections without VPN. This works with any VPN app, at the system level.
  • WireGuard on Windows: the official app has a “Block untunneled traffic (kill-switch)” option in each tunnel’s settings.
  • A VPN on your router covers every device in the home, but the router needs its own fail-safe rules, or devices fall back to the normal connection. See setting up a VPN on your router.

If the app offers “Allow LAN access” or “Local network sharing”, turning it on lets you keep using printers and casting while the kill switch is active, without opening the internet.


🔍 Test It in Five Minutes

A setting that says “on” isn’t proof. Test it:

  1. Get your baseline. With the VPN off, note your IP on our What Is My IP page.
  2. Connect the VPN and run the VPN leak test. Your visible IP, WebRTC and IPv6 results should all show the VPN, not your real address.
  3. Cause a drop. With a page reloading every few seconds or a video playing, switch VPN servers, turn Wi-Fi off and on, or move to mobile data and back.
  4. Watch what happens. With a working kill switch, nothing loads during the gap: pages fail until the VPN is back. If a page loads and the IP checker briefly shows your real address, the kill switch isn’t covering that moment.
  5. Test from sleep too. Close the laptop lid for a minute, open it, and reload straight away.

Our leak test checks your visible IP, WebRTC and IPv6. It doesn’t test DNS. The free lesson Check Your VPN for Leaks shows how to check DNS by hand and walks through this kill-switch test step by step. If DNS is your concern, see what a DNS leak is.


Who Needs It Most

  • On public Wi-Fi. Hotel, airport and café networks drop and reconnect often, and those are exactly the networks you don’t want your unprotected traffic on. See is hotel Wi-Fi safe?
  • Anyone who relies on the VPN hiding their IP: journalists, activists, people in countries that monitor traffic, or anyone avoiding being located by IP.
  • File sharing and long downloads, which keep running in the background through every drop.
  • Remote workers, where a drop could send company traffic over the open network.

If you use a VPN mainly to watch another country’s streaming catalogue, a kill switch matters less: a drop shows you the wrong catalogue, not your identity.


Frequently Asked Questions

Does a kill switch slow down my internet?

No. It only acts when the VPN disconnects. While the VPN is up, the kill switch does nothing you’d notice; the VPN connection itself is what affects speed.

Should I leave it on all the time?

Yes, if you use the VPN for privacy. The cost is that when the VPN can’t connect, for example on a network that blocks VPNs, you have no internet until you turn the VPN or the kill switch off.

I turned the VPN off and now nothing works. Why?

A system-level or “always-on” kill switch blocks traffic whenever the VPN isn’t connected, including when you disconnect on purpose. Turn off the kill switch, or Android’s “Block connections without VPN”, when you want to browse without the VPN. A kill switch stuck on after a VPN is uninstalled can also cause “No Internet”: see how to fix “No Internet, Secured”.

Is a kill switch the same as a firewall?

It’s a specific use of one. A system-level kill switch is a set of firewall rules that allows traffic only through the VPN. Your normal firewall decides which connections are allowed in general.

Does a kill switch stop DNS leaks?

A system-level one blocks DNS lookups that try to go outside the VPN while it’s down. A DNS leak can also happen while the VPN is connected, if lookups are sent outside the tunnel, and that needs a separate check.


Related Reading

Scroll to Top