You’ve packed a VPN to keep your accounts private on hotel Wi-Fi before a trip abroad, and at some point, a simpler question surfaces: Is using it actually legal where you’re going? For most travellers, the answer is yes, but a handful of countries treat VPNs very differently, and the rules hinge on a distinction that’s easy to miss.
In most of the world, using a VPN is legal. A VPN (a virtual private network, which routes your internet traffic through an encrypted tunnel to a remote server) is a standard privacy and security tool, and countries including the United States, the United Kingdom, Canada, Australia, and the member states of the European Union all permit it. Businesses rely on VPNs to securely connect remote staff, which is one reason outright bans are rare.
The important point is that the legality of the VPN is a separate question from whether what you do while connected is legal. A VPN doesn’t change the law that applies to your activity. Accessing content you’re not entitled to or using a VPN to commit a crime remains illegal, whether or not a VPN is involved. Holding those two ideas apart is the key to the rest of this page.
A small number of countries ban VPNs outright or allow only government-approved ones. The details and penalties vary, and enforcement varies more, but the established cases are well documented:
| Country | Status | Detail |
|---|---|---|
| North Korea | Banned | VPN and encryption tools are illegal for ordinary citizens, with severe penalties. |
| Turkmenistan | Banned | Prohibited since 2019; the law targets uncertified encryption tools, with reported prison sentences of up to seven years. |
| Iraq | Banned | A blanket VPN ban has been in place since 2014. |
| Belarus | Banned | Illegal since 2015, alongside Tor and some encrypted messaging apps. |
| China | Restricted | Only government-approved VPNs are permitted; unauthorised use can draw fines reported up to 15,000 yuan (around US$2,200). The “Great Firewall” actively blocks unapproved services. |
| Iran | Restricted | Unauthorised VPNs restricted since 2013; providers and users need a permit, and using an unlicensed VPN can carry up to a year in prison. |
| Russia | Restricted | VPNs aren’t banned outright, but the state blocks providers that don’t comply with censorship laws, and a March 2024 law prohibits promoting VPN use. Many VPN apps have been pulled from Russian app stores. |
Other countries, including Egypt, the United Arab Emirates, India, Uganda, and Venezuela, impose narrower restrictions rather than outright bans.
The UAE, for example, permits VPN use but penalises using one to commit an offence, and India introduced rules requiring VPN providers to retain user data, which led several to remove their local servers. Because these rules change and enforcement differs, check the current law in any country before you rely on a VPN there.
Governments that restrict VPNs almost always do so to control what their citizens can see and do online. A VPN hides which sites you visit from your internet service provider and lets your traffic appear to come from another country, which is precisely what a state running an internet censorship system wants to prevent.
Where access to news, social media, or messaging is filtered, an unrestricted VPN undercuts that filtering, so the response is to ban VPNs or permit only approved ones that log activity and block the same content.
Approved-only regimes are worth understanding on their own terms. A government-vetted VPN typically has to keep detailed logs and enforce the same blocks as the open internet there, which strips out the privacy that makes a VPN useful in the first place. The tool keeps its name but loses its purpose.
A VPN protects and reroutes your connection; it does not grant permission. This is the distinction that trips people up, so it’s worth stating plainly with examples:
If VPNs are restricted where you are, the responsible course is to follow the local law. This page explains the legal landscape; it isn’t legal advice, and it isn’t a guide to getting around any country’s rules.
You can use them in countries that ban or restrict them. Penalties range from fines to imprisonment, depending on the country, and they apply where you are, not where you’re from. Before travelling, check whether your destination restricts VPNs, because the rules there govern your use.
Using a VPN isn’t illegal in most countries, but using one to stream content from a region it isn’t licensed for typically breaches that service’s terms of use. That’s a contractual matter with the provider rather than a criminal one in most places, but it can still result in an account being suspended.
No. A VPN obscures your traffic from the network and masks your IP address, but it doesn’t place you beyond the law, and providers can be compelled to cooperate with valid legal requests. For what a VPN actually conceals and from whom, see how a VPN works.
For most readers, the practical takeaway is simple: a VPN is legal to use where you live and travel in all likelihood, but check before you assume it in a country known to restrict them, and remember the tool never changes the law that applies to your activity. If you’re choosing a provider with privacy in mind, our guide to how to choose a VPN covers the features that matter, and what a VPN is sets out the fundamentals if you’re still getting oriented.