Is using a VPN legal?
In most countries, yes. Belarus and Myanmar ban them, China and Iran allow only licensed ones, and Russia, the UAE, Pakistan, Jordan, Turkmenistan and Tanzania restrict them.1, 2, 3, 4, 5
Banned
Using one is prohibited
Licensed only
Only state-approved VPNs
Restricted
Rules limit their use or providers
Allowed
No ban on using one found
Unclear
No law on using a VPN found
Select a country to see the rule behind its status. Checked 28 October 2026 against the sources; Indonesia, the Philippines, Cambodia, Turkmenistan and Myanmar's 2025 law added 11 November 2026, Tanzania and Kenya 15 November 2026, Bangladesh 19 November 2026.
The rule in each country
Twenty countries where the rule could be read in a law, a regulator's notice or named research.
| Country | Using a VPN | The rule | Since |
|---|---|---|---|
| Belarus | Banned | Using VPNs and Tor barred by law, though they remained reachable in practice through 20241 | 2015 |
| Myanmar | Banned | The military-controlled communications ministry ordered a nationwide ban on VPNs2The 2025 Cybersecurity Law also sets up to six months in prison for providing a VPN without a licence (section 70)6 | May 2024 |
| China | Licensed only | The industry ministry (MIIT) banned unlicensed VPNs; providers need government approval3 | 2017 |
| Iran | Licensed only | A Supreme Council of Cyberspace resolution prohibits unlicensed VPNs; it sets no penalty7, 8 | Feb 2024 |
| Russia | Restricted | VPN services that reach banned sites must be blocked (2017 law); advertising VPNs banned from March 20249The Kremlin said in April 2026 that using one is not punishable by law10 | 2017 |
| United Arab Emirates | Restricted | Not strictly prohibited, but using a third party's IP address to commit an offence or avoid detection brings jail and a fine of AED 500,000 to 2 million (Article 10, Federal Decree-Law No. 34 of 2021)11, 12 | 2021 |
| Pakistan | Restricted | The telecom regulator (PTA) licenses VPN providers, first five licences on 13 November 2025; major VPNs were reported restricted from December 202513, 14 | Nov 2025 |
| Jordan | Restricted | The 2023 Cybercrime Law sets up to six months in prison or a fine for using proxy servers and tools such as Tor4 | 2023 |
| Turkmenistan | Restricted | No published law found, but VPN apps have been blocked since 2019 and users in Mary region were fined 1,500 manats in 2023; the Tor Project reports the same fine in 202515, 16 | Jan 2019 |
| Tanzania | Restricted | Regulation 16(2) of the Online Content Regulations, 2020 bars possessing or distributing tools that reach prohibited content; the regulator told people who need a VPN to declare it with their IP address, and the offence carries a fine of at least 5 million shillings, at least 12 months in prison, or both5 | Oct 2023 |
| India | Allowed | Legal to use; VPN providers must keep subscriber names, IP addresses and other records for five years (CERT-In directions under section 70B(6))17, 18 | 28 Apr 2022 |
| Turkey | Allowed | No legal ban on VPN services, but the regulator (BTK) ordered 17 of them blocked in late 202319 | n/a |
| Iraq | Allowed | No significant limits on anonymity or encryption tools, as of June 2024; a draft content regulation could ban VPNs20 | n/a |
| Indonesia | Allowed | Anonymous communication is not formally prohibited by law; 22 sites offering circumvention tools were found blocked in 202321 | n/a |
| Philippines | Allowed | No limit on VPNs found; the rule on anonymity is SIM card registration with photo ID, since 202222 | n/a |
| Cambodia | Allowed | Encryption technology is freely available; the limits are on anonymity, through SIM card registration23 | n/a |
| Kenya | Allowed | Kenyans can freely use encryption tools; the limits are on anonymity, through SIM card registration24 | n/a |
| Bangladesh | Allowed | People are able to use VPNs to bypass blocking; mobile connections need biometric registration25 | n/a |
| Saudi Arabia | Unclear | No law on using one found; the websites of Tor and major VPN providers are blocked26 | n/a |
| Egypt | Unclear | No law on VPNs found, but visiting a banned website can bring up to a year in prison (Law No. 175 of 2018)27 | Aug 2018 |
| Uganda | Unclear | About 100 VPN services were restricted in January 2021; none showed signs of blocking from June 2023 to May 202428 | n/a |
Not legal advice: this page reports what laws, regulators and researchers say. VPN rules are often vague and enforced unevenly, so if you are travelling, check the destination government's own guidance.
Where the rule bites
A VPN connection runs from you, through a provider, to a site. Each country above regulates a different point on that path.
You
Belarus, Myanmar
The provider
China, Iran, Pakistan, India
Only licensed providers may operate, or providers must keep records on users.3, 7, 13, 17
The connection
Russia, Turkey, Saudi Arabia
Named VPN services, or their websites, are blocked without a ban on use.9, 19, 26
What you do
United Arab Emirates
Using a VPN to commit an offence or avoid detection is the crime.11
Where you go
Egypt
Visiting a banned website is the offence, however you reach it.27
Two things people mix up
Questions people ask
Can you go to jail for using a VPN?
It has happened. Freedom House reports that China has penalized people who used unauthorized VPNs, and that a Uyghur university student was sentenced to 13 years in prison in 2017 after using a VPN and viewing "illegal information", which a police officer confirmed in June 2023.29 In Jordan, the 2023 Cybercrime Law allows up to six months in prison for using proxy tools.4
Is using a VPN a crime in Iran?
It is prohibited, but whether it is a crime is disputed. The Supreme Council of Cyberspace published the resolution on 19 February 2024; the digital rights group Filterwatch notes the council cannot define crimes.8 In a ruling dated 29 June 2025, a branch of Tehran Criminal Court Two acquitted a man prosecuted for selling VPNs, holding that selling or using one cannot be treated as a crime without clear statutory language.30
Is a VPN legal in Dubai?
Sources 32
- Freedom on the Net 2024: Belarus, section C4, Freedom House, covering June 2023 to May 2024. Read 28 October 2026.
- Freedom on the Net 2024: Myanmar, section C4, Freedom House, covering June 2023 to May 2024. Read 28 October 2026.
- Freedom on the Net 2024: China, section B1, Freedom House, covering June 2023 to May 2024. Read 28 October 2026.
- Freedom on the Net 2024: Jordan, sections B1 and C4, Freedom House, covering June 2023 to May 2024. Read 28 October 2026.
- TCRA wants VPN users to come clean, reveal their IP addresses, The Citizen, 13 October 2023, reporting the regulator's notice of the same day. Read 15 November 2026.
- Cybersecurity Law (State Administration Council Law No. 1/2025), sections 44 and 70, Myanmar, 1 January 2025, convenience translation by Lincoln Legal Services (Myanmar), hosted by ICNL. Read 11 November 2026.
- Freedom on the Net 2024: Iran, section B1, Freedom House, covering June 2023 to May 2024. Read 28 October 2026.
- The use of VPNs is prohibited, but not criminalized, Filterwatch, 4 March 2024. Read 28 October 2026.
- Freedom on the Net 2024: Russia, sections B3 and C4, Freedom House, covering June 2023 to May 2024. Read 28 October 2026.
- Russian websites begin blocking VPN users as internet controls tighten, The Moscow Times, 15 April 2026. Read 28 October 2026.
- New cybercrimes law: jail, up to Dh2 million fine for circumventing IP address to commit crime, Gulf News, reporting the UAE Public Prosecution, 10 March 2022. Read 28 October 2026.
- Freedom on the Net 2024: United Arab Emirates, sections B3, B7 and C4, Freedom House, covering June 2023 to May 2024. Read 28 October 2026.
- Pakistan begins blocking unregistered VPN apps, TechRadar, 7 January 2026. Read 28 October 2026.
- Freedom on the Net 2026: Pakistan, Freedom House, October 2026. Read 28 October 2026.
- Corrupt security agents take control of Turkmenistan's internet, Turkmen.news, 14 August 2023. Read 11 November 2026.
- Corruption and control: how Turkmenistan turned internet censorship into a business, The Tor Project, 27 August 2025. Read 11 November 2026.
- Directions under section 70B(6) of the IT Act, 2000, clause (v), CERT-In, Government of India, 28 April 2022. Read 28 October 2026.
- Freedom on the Net 2024: India, section C4, Freedom House, covering June 2023 to May 2024. Read 28 October 2026.
- Freedom on the Net 2024: Turkey, sections B1 and B7, Freedom House, covering June 2023 to May 2024. Read 28 October 2026.
- Freedom on the Net 2024: Iraq, sections B7 and C4, Freedom House, covering June 2023 to May 2024. Read 28 October 2026.
- Freedom on the Net 2024: Indonesia, sections B7 and C4, Freedom House, covering June 2023 to May 2024. Read 11 November 2026.
- Freedom on the Net 2024: Philippines, section C4, Freedom House, covering June 2023 to May 2024. Read 11 November 2026.
- Freedom on the Net 2024: Cambodia, section C4, Freedom House, covering June 2023 to May 2024. Read 11 November 2026.
- Freedom on the Net 2024: Kenya, section C4, Freedom House, covering June 2023 to May 2024. Read 15 November 2026.
- Freedom on the Net 2024: Bangladesh, sections B7 and C4, Freedom House, covering June 2023 to May 2024. Read 19 November 2026.
- Freedom on the Net 2024: Saudi Arabia, section B1, Freedom House, covering June 2023 to May 2024. Read 28 October 2026.
- Freedom on the Net 2024: Egypt, section C2, Freedom House, covering June 2023 to May 2024. Read 28 October 2026.
- Freedom on the Net 2024: Uganda, sections A3 and B1, Freedom House, covering June 2023 to May 2024. Read 28 October 2026.
- Freedom on the Net 2024: China, overview and section C3, Freedom House, covering June 2023 to May 2024. Read 28 October 2026.
- Rare ruling by a Tehran court rejecting the criminalization of VPN use, Hana Human Rights, 10 August 2026. Read 28 October 2026.
- Freedom on the Net 2026: Russia, Freedom House, October 2026, covering June 2025 to May 2026. Read 28 October 2026.
- Russia steps up VPN blocking after parliamentary elections, Meduza, 29 September 2026. Read 28 October 2026.
We start with the law or the regulator's notice, check it against named research, and date every status. How we check