Are VPNs legal? Where are VPNs banned or illegal?

VPNs almost always legal. In most countries, citizens have a legal right to privacy, and simply using a VPN service is illegal in very few places.

Repressive countries such as China, Iran, and Egypt, do attempt to block users from accessing overseas VPN services. But they do not criminalize citizens simply for attempting to do so.

Russia has criminalized the running of domestic VPNs services that have not been issued a state license, but again, this does not criminalize those who simply attempt to use them.

In this article we look into every country where using VPNs is illegal, banned, or in some way restricted. Before we do so, however, there are some points worth considering.

What you do when using a VPN may illegal

VPNs can help to hide what you get up to on the internet, and are therefore sometimes used by criminals to hide their illegal activities. Needless to say, simply using a VPN does not make any of those illegal activities any less illegal.

If the "crimes” committed using a VPN are culture-specific and therefore only illegal in a few countries, then it is unlikely that international VPN services will assist local governments or police forces in catching "perpetrators.” So no VPN provider is likely to assist authorities trying to catch people who use a VPN to watch porn in the UAE.

Similarly, international VPN providers are very unlikely help most repressive governments catch political dissidents. So critics of President Erdogan in Turkey can almost certainly use European or US VPN services without fear of betrayal by those services.

But… VPN companies will not attempt to protect you if you commit actions that are internationally recognised as being criminal, or which upset politically powerful governments with international reach.

If presented with strong enough evidence that a serious crime has been committed, many VPN companies will voluntarily assist even overseas police investigations. And they certainly won’t fight a valid court order. Quite simply, no VPN staff will willing to face jail for your crimes.

No logs VPN providers should be able to provide only minimal assistance to investigations, but even these can be forced to start keeping logs. And not every VPN provider who promises to keep no logs can be trusted.

VPNs are ubiquitous

Commercial VPN networks of the kind we discuss here are something of an unforeseen outgrowth from the technology’s original purpose. VPNs were developed to allow remote workers to securely access corporate intranets as if they were in the office.

And they continue to be used as such by ordinary businesses throughout the world, which rely on VPNs to secure their internal LAN systems from hackers, and to protect sensitive information when it is accessed by employees from the internet.

This means that:

a) Even in more restrictive countries, simply using a VPN does not look in any way "suspicious.” It is a routine part of day-to-day business.

b) It is very hard to block VPN traffic, as doing so damages business’ ability to operate, and therefore also damages the local economy. Places such as China and Egypt, of course, appear willing to take this risk.

Legality is not the only issue to be concerned about

Many offices, schools, college dorms, and suchlike, block access to websites and other internet content – often for very good reasons! Using a VPN to overcome such blocks it not usually illegal, but getting caught might have other unpleasant consequences.

After all, your teacher is unlikely to be impressed if she catches you using a VPN to message friends on Facebook during a lecture. And getting caught by your boss using a VPN to watch inappropriate content at work might quite rightly get you the sack!

Below are the only countries where VPNs might in any way be considered illegal. Everywhere else in the world, VPN use is 100% legal and uncontroversial.

Countries where use of VPNs is against the law


The Iranian government blocks access to a wide range of websites, including Facebook and Twitter. The Telegram messenger app is also banned. Citizens are allowed to use state-approved domestic VPN providers, but are banned from using international VPN services to bypass its censorship blocks.

In theory, anyone using a VPN to visit a forbidden website can be sentenced to from 91 days to one year in prison. In theory.

In reality, VPN use is widespread. This is evidenced by the fact that some 12 to 17 million Facebook users and 23 million Telegram users are Iranian! It is even alleged that most members of the Iranian parliament use VPNs to bypass their own censorship laws!

With VPN use being so ubiquitous in Iran it seems unlikely that there is much risk in using one, and we are not aware of any cases where a VPN user has been arrested. Please check out 5 Best VPNs for Iran for a discussion about VPN use in Iran.


We have read unconfirmed reports that VPNs are "banned” in Iraq to prevent them being exploited by Islamic State. We don’t know what the situation is like on the ground, but Iraq does not have the technical infrastructure to implement VPN blocks or to detect VPN users.

It is very possible that VPN use is common in areas with internet access, but it is equally possible that it is heavily policed at a local real-world level.

If you plan on using a VPN in Iraq you must use a VPN with strong encryption and obfuscated servers. Check out our Iraq VPN page for a list of secure service for the country.

United Arab Emirates

In 2016 it was widely reported that UAE had made using VPNs illegal,saying that "tampering with the internet is a crime."

There is some lack of clarity, however, over whether using a VPN is itself illegal or whether it is only using VPN to access content scheduled by the UAE’sTelecom Regulatory Authority (TRA) that is a crime.

In practice, the difference can be seen as a little academic, since most content you might actually want to use a VPN for is officially banned by the TRA.

Anyone caught risks a fine of up to AED 2 million (around USD 500,000) and / or prison time. We have not heard of anyone actually being convicted for using a VPN, however, and reports indicate that VPN use is common.

Expats, in particular, regularly use VPNs to aces Netflix and other international streaming content. The risk of doing this seems low, and it very unlikely that the UEA authorities will alarm its lucrative international community by making a fuss over such harmless infractions. But who knows?

The threat to UAE citizens using a VPN to evade censorship or engage in political dissent is likely to be much higher.

The extent of UAE telecoms companies’ ability to detect VPN use is not clear. It is known that deep packet inspection (DPI) techniques are used to analyze internet traffic, but access to VPN websites and VPN connections themselves do not appear to be blocked.

If you do decide that the benefits of using a VPN in the UAE outweigh the potential risks, we strongly recommend using VPN services that offer stealth or obfuscation tech (and actually using that tech!).

North Korea

It is generally assumed that using a VPN in North Korea is illegal. If this is indeed the case, though, it seems a rather pointless law.

The North Korean government appears to have little interest in censoring international visitors’ access to the internet, so trying to hide what you get up to online while visiting the country might peak the interest of it security services. But if you are simply a tourist, there is a good chance they just won’t care.

Either way, it might be a very good idea to play it safe and avoid any behavior that might be considered suspicious while in the country. Getting on the wrong side of the North Korean government is not recommended under any circumstances.

North Korean citizens, on the other hand, have almost no internet access at all. Such access as exists is limited to a very select group of elite students, scientists, senior government officials, journalists (presumably), and the like.

These individuals are no doubt closely monitored, and would probably get into very serious trouble for doing anything on the internet that upsets their government. This probably includes using a VPN to hide what they get up to.

But it seems unlikely that North Korea would bother passing an actual law that makes VPN "illegal” for such a limited set of circumstances.


The telecommunications law in Oman prohibits the use of any method of encryption without acquiring explicit permission from the government beforehand. But since encryption is required for even the most basic e-commerce operations, such a law is wildly impractical.

"In 2010, the [Telecommunications Regulatory Authority (TRA)] sought public consultation over draft regulations that would have made VPN totally illegal for private use and would have required establishments to acquire a license from TRA to use VPN for commercial use. These draft regulations never materialised and the feedback the TRA received about them was never published.

We have read some unconfirmed reports that internet users in Oman are required to only use state-sanctioned domestic Oman VPN services, but if this is the case then the rules are widely ignored.

Use of VPNs to evade Oman’s strict internet censorship blocks is "extremely common” and no technical measures are taken to prevent it.


If we know little about the VPN situation in Iraq, we know less about it in Syria. We do know that the brutal ongoing war makes for a very unstable internet, and that government censorship and police intimidation (up to an including arrest and torture) of reporters and dissidents are a daily fact of life in the country.

Such internet infrastructure as still exists is firmly in the hands of the Assad-led government, and internet cafes are heavily monitored. As a result, illegal satellite connections and mobile phones using Turkish or Lebanese network SIM cards are the primary way of accessing the open internet.

You should be careful if you choose to use a VPN in Syria. Check out our Syria VPN page for further discussion about using a VPN in the country.


Turkmenistan is one of the most closed and repressive counties in the world. Much like North Korea, very few of its citizens have any access to the internet at all. It is prohibitively expensive, its speed is deliberately slow, and it is subject to almost total censorship.

There is just a single government-controlled ISP. According to this report:

"Attempts to use proxy servers and VPN are detected and blocked; their users are subjected to administrative penalties and summoned for ‘preventive conversations’ to the Ministry of National Security, where they face intimidation.


Countries where VPNs are blocked

When you read that VPNs are "banned” in this or that country, what is almost always meant is that technical efforts are made to prevent internet users in that country from using VPNs to bypass state censorship measures.

Simply using a VPN (or trying to use a VPN) in these counties is not illegal and no-one has yet got into trouble for doing so.


The Great Firewall of China (GFW) is the world’s most far-reaching and sophisticated internet censorship system. It, therefore, comes as no surprise that China is not keen on its 1.5 billion citizens using VPNs to bypass it!

China employs a wide range of technologies designed to block access to international VPN services. These range from simple blocklists of IP addresses known to belong VPN servers, to sophisticated deep packet inspection (DPI) techniques that can detect when VPN protocols are used. Needless to say, access to most VPN websites is blocked.

With an internet-using population of some 720 million people, however, even the most far-reaching and sophisticated internet surveillance system in the world is bound to struggle. Most VPN services are indeed blocked in China, but a number of providers offer various forms of obfuscation ("stealth”) technology to hide the fact that VPNs are being used.

The result is that a number of VPN services are widely available in China, although it will make travelers’ life easier if they sign-up for a service and download its software before entering the mainland (Hong Kong is not covered by the GFW and has a free and uncensored internet).

It has been widely reported that China has "cracked down on VPNs”, but this only really applies to companies that run domestic VPN services. It does not criminalize individuals who use VPNs to evade the Great Firewall, and such measures are toothless against international VPN services.

Clouds may be gathering on the horizon, however. In 2016 a small-time (and not very successful) VPN reseller was jailed for 9 months. This was a one-off case in a local court (Dongguan, in Guangdong province) and does not reflect the legal situation elsewhere in China. It was also someone who made a (small) profit from selling VPN packages, not someone just using a VPN.

Whether it is thus an augur of things to come, only time will tell. It is not hard to imagine, though that China might use its scary new Social Credit System, which is scheduled for a full roll-out in 2021, to punish citizens caught using VPNs with negative ratings. This, of course, will be of little concern for expats and visitors to China.

To find out more about using a VPN in China, please see 5 Best VPNs for China.


In the summer of 2017 the Egyptian government started to block access to news websites. At last count, it has blocked more than 400 websites. Realizing that citizens are using VPNs to bypass such censorship, the government also started to block access to VPN websites.

In addition to this, ISPs are using DPI techniques in order to identify and block VPN traffic. These blocks appear to be very efficient, and all major VPN protocols are blocked unless obfuscation technologies are employed.

We have received reports that the WireGuard, AnyConnect, and SoftEther protocols continue to work, although we are unable to confirm this. If your technical skills are up to it, Streisand is probably the easiest way to set up such a personal VPN server.

To the best of our knowledge no-one has got into trouble for bypassing Egypt VPN blocks, but with the current hard-line military government, doing so may not be entirely risk-free. So be careful.


In November 2017 President Vladimir Putin signed a bill prohibiting VPNs and other proxy services. It lacks teeth, however, because Russia does not have the technical capability to enforce a ban on international VPN services. It simply does not have anything like China’s Great Firewall.

What it has done (and is the about only thing it can do) is oblige domestic IPS to block access to international VPN websites, and require domestic VPN services to implement blocklists on (primarily political) content the government does not wants Russian citizens to see.

It has also forced many international VPN providers to shut down servers located in Russia and asked Apple to remove VPN apps from its Russian App Store (something it has done for China, but not yet for Russia).

VPN servers located outside Russia are easily accessible from inside Russia, and we are not aware of any risk (legal or otherwise) in using them. Take a look at our Russia VPN page for a list of the best services to use in the country.


The Vietnamese government blocks access to a wide range of internet content, including Human Rights Watch, the BBC, and Facebook. The OpenNet Initiative published a 2012 list of its finding on which websites were blocked, and in addition to lots of Vietnamese language sites, found that many web proxy sites and other internet circumvention tools were blocked.

"In the Internet tools category, [FPT Telecom and Viettel] blocked Facebook ( Both ISPs also targeted circumvention Web sites for filtering but differed in the specific sites they were blocking. For instance, Viettel filtered,,,,, and, while FPT filtered only

In addition to forming a new 10,000-strong military cyber warfare unit to counter "wrong” views on the Internet this year, Vietnam has since stepped-up its efforts to censor access to content. It is therefore reasonable to assume that many VPN websites are now blocked.

These blocks are not very sophisticated, however, and should be easy to overcome without the need for obfuscation tactics as long as you can sign-up for a service and download its software. Visitors are advised to do this before entering the country, while residents can use one of the tactics discussed in How to Bypass VPN Blocks. Head over to our Vietnam VPN guide for more information.

One to watch


Turkey has a track record of blocking websites that have offended it, or which are politically sensitive. ISPs even used DNS poisoning to prevent citizens from accessing YouTube when it was banned in 2014.

With a newly endorsed presidency that greatly expands his executive powers, it will surprise no-one if Recep Erdogan continues to tight his hold over internet access. And any such move would almost certainly include measures aimed at preventing Turkish citizens using VPN services to access the open internet. Check our Turkey VPN page for information about any updates.


Outside of war zones and North Korea VPNs are legal to use almost everywhere. In the few places they are not, or where their legality might be considered a "grey area,” there is little in the way of enforcement of such laws.

Blocking access to VPN websites is much more common, but only China and Egypt really have the internet infrastructure required to seriously restrict the use of VPNs to evade censorship.

Written by: Douglas Crawford

Has worked for almost six years as senior staff writer and resident tech and VPN industry expert at Widely quoted on issues relating cybersecurity and digital privacy in the UK national press (The Independent & Daily Mail Online) and international technology publications such as Ars Technica.


Milad Mokarram
on August 5, 2019
Dear Friend. I live in Iran and I want to clear something. Using VPN in Iran is NOT! illegal and just selling it is illegal. Everyone even so many companies using VPN for their works. Because of sanctions so many website blocked Iran IP's so because of that government haven't any rule for using it. If it possible for you please correct your article. Thanks in advance and best regards
on March 2, 2019
VPN is not illegal in iran ! some vpn IPs is banned in iran but many vpn is work correctly. also, using VPN have not prison in iran ! your article is not correct and do not have fact.
Douglas Crawford replied to arash
on September 20, 2019
Hi arash. Nowhere do I say that using a VPN is illegal in Iran. I say that using a VPN to access illegal content is illegal. I also note that VPN use there is very common.
Louis Coleman
on July 18, 2018
VPN is a beneficial use personally or socially. The usage of it is illegal if used in various harmful and truly against the law. It only depend on the people itself if they will use it in a not so good way.
Douglas Crawford replied to Louis Coleman
on July 18, 2018
Hi Louis, Almost everywhere it is breaking the law that is breaking the law. Not using a VPN to do it.
Got Something to Say?

Write Your Own Comment

Your comment has been sent to the queue. It will appear shortly.

Your comment has been sent to the queue. It will appear shortly.

Your comment has been sent to the queue. It will appear shortly.

  Your comment has been sent to the queue. It will appear shortly.

We recommend you check out one of these alternatives:

The fastest VPN we test, unblocks everything, with amazing service all round

Large brand with very good value, and a cheap price

One of the largest VPNs, voted best VPN by Reddit

One of the cheapest VPNs out there, but an incredibly good service