AnyProxy

Get Pro
Glossary · VPN & tunneling

VPN kill switch

Also calledvpn kill switchnetwork lockwhat is a kill switch
Definition

A VPN kill switch is a setting that cuts a device's internet access whenever the VPN connection drops, so apps cannot fall back to the unprotected connection.

Explanation

In depth

VPN connections drop more often than people notice: a phone moves from Wi-Fi to mobile data, a laptop wakes from sleep, a server restarts. Without protection, the operating system simply sends traffic over the normal connection until the VPN reconnects, and in those seconds apps reveal your real address and destinations to the network. A kill switch closes that gap by blocking traffic that is not going through the VPN. Some apps do this for the whole system; others only block chosen apps. On Android the system itself offers it: 'Always-on VPN' together with 'Block connections without VPN'. The trade-off is availability: if the VPN cannot reconnect, you are offline until you fix it or turn the switch off. A web proxy has no equivalent setting because it never captures the device's traffic in the first place. Pages you open inside the proxy tab go through the proxy, and if the proxy is down they simply fail to load. Everything else - other tabs, other apps, and WebRTC calls made by the browser - always uses your normal connection, kill switch or not.

In practice

VPN kill switch in the real world

A kill switch blocks all traffic the moment a VPN connection drops, so nothing slips out unprotected. Android builds this into the system: since Android 8, "Always-on VPN" can be paired with "Block connections without VPN". Without it, a phone that moves from Wi-Fi to mobile data can reconnect directly for a few seconds before the tunnel returns — enough for apps to send traffic in the open.

Sources: Android — VPN settings

Questions about VPN kill switch

Do I need a kill switch with a web proxy?
No, there is nothing for it to protect. A web proxy never takes over your device's connection, so there is no moment where traffic 'falls back'. Anything outside the proxied tab was never protected to begin with.
Why am I offline after my VPN disconnected?
The kill switch is doing its job: it blocks traffic until the VPN reconnects. Reconnect the VPN, switch servers, or temporarily disable the kill switch if you accept browsing unprotected.
Is a system-wide or app-level kill switch better?
System-wide is stricter, because nothing leaves the device unprotected. App-level is convenient when only some apps need the VPN, but any app not on the list keeps working on the open connection.
See alsoKill switch deep-dive

Related terms

VPNA VPN (virtual private network) is software that sends all of a device's network traffic through an encrypted connection to a provider's server, which then contacts websites on the device's behalf.VPN tunnelA VPN tunnel is the encrypted link between a device and a VPN server, made by wrapping each original packet inside a new packet addressed to the server.DNS leakA DNS leak is when your device keeps asking its usual DNS server (often the ISP's) to look up site names while you think a VPN or proxy is handling your traffic, so the network still learns which sites you visit.WebRTC leakA WebRTC leak is when a website uses the browser's built-in calling technology (WebRTC) to discover your real public IP address, even though your normal page traffic goes through a proxy or VPN.

Put the concept to work

Try AnyProxy free — no install, no signup, six regions.

Open a blocked page