The world, with full disclosure
215 cities in 50 countries. The red hatch is not a warning from us; it is the law there, and this page says which law and where we read it. We checked on 2026-10-21, laws change, and nothing here is legal advice. If you know something we got wrong, tell us.
Criminal for adults (70)
Same-sex acts between adults are a crime, or adult content is a crime, or both. Enforcement varies and is noted where we know it.
Penal Code 2017 criminalises same-sex acts (up to 2 years) and the Taliban apply Sharia under which death is a legal possibility (HDT lists Afghanistan among the 12 death-penalty jurisdictions); all adult sexual content is treated as a crime under the Taliban's morality rules and the internet is filtered; penalties not verified.
Penal Code art. 338: up to 2 years; enforced. Obscenity provisions exist but no national blocking of adult sites found.
Same-sex acts decriminalised in 1976. Penal Code bans producing or distributing obscene material, enforced alongside national blocking of adult sites; penalty not verified.
Penal Code s.377: up to life imprisonment; rarely prosecuted but used for harassment. Pornography Control Act 2012: up to 7 years for producing and 5 years for possessing or distributing adult content, with arrests as recently as 2025; some 20,000 adult sites blocked in 2018-19.
Syariah Penal Code 2019 prescribes death by stoning for sex between men (under a moratorium) and Penal Code s.377 up to 10 years; producing, possessing or distributing obscene material is a crime and adult sites are blocked.
Persons and Family Code (Law 012-2025, art. 210-3): 2 to 5 years and a fine for 'homosexual acts or similar practices' and for promoting them; signed 25 September 2025.
Penal Code art. 567: 3 months to 2 years; enforced with 2023 arrests.
Penal Code art. 347-1: up to 5 years; actively enforced.
Penal Code 2017 art. 354: 3 months to 2 years.
Same-sex acts decriminalised in 1997. Criminal Law arts 363-364 criminalise producing or distributing pornography; enforced, including the 2025 arrests of dozens of gay-erotica writers; adult sites are blocked by the Great Firewall.
Penal Code art. 318: up to 5 years.
Law 10/1961 on Combating Prostitution ('debauchery'): up to 3 years, actively enforced against LGBT people including via dating apps. Adult sites are blocked by prosecutor and regulator order; distributing adult content is a crime.
Penal Code 2015 art. 310: 5 to 7 years. Art. 313 bans public distribution of obscene material; enforcement and blocking could not be verified.
Common-law offence of sodomy (men); penalty uncodified and prosecutions rare.
Criminal Code art. 629: up to 1 year, more with aggravation. Art. 640 bans obscene material; not enforced against adult viewing and no national blocking found.
Criminal Code ss.144-147: up to 14 years, life for 'aggravated homosexuality' (2014).
Criminal Offences Act s.104: 'unnatural carnal knowledge', misdemeanour up to 3 years; Parliament passed the anti-LGBTQ bill (up to 3 years for identifying as LGBT) in May 2026 and presidential assent is pending. Art. 281 bans trading obscene material; not enforced online.
Criminal Code s.431 ('unnatural connection'): up to 10 years; not enforced.
Penal Code 2016 art. 274: 6 months to 3 years.
Criminal Law (Offences) Act ss.351-353: up to life ('buggery'); not enforced.
No national ban, but Aceh (Regulation 6/2014 arts 63-64: up to 100 lashes or 8 years) and South Sumatra criminalise same-sex acts, and the new Criminal Code in force since 2 January 2026 punishes sex outside marriage (up to 1 year, complaint-based). Law 44/2008 on Pornography criminalises producing and distributing adult content and the regulator blocks adult sites and apps nationally.
Islamic Penal Code 2013 arts 233-241: death for sodomy in several cases, 100 lashes otherwise; enforced. Producing or distributing adult content is a crime under the Computer Crimes Law and the Penal Code, and adult sites are blocked.
Anti-Prostitution and Homosexuality Law (April 2024 amendment): up to 15 years for same-sex relations, 7 years for 'promotion'; enforced. Penal Code art. 403 criminalises obscene material and all adult sites have been blocked in federal Iraq since 2022.
Offences Against the Person Act ss.76-79: up to 10 years' hard labour ('buggery', 'gross indecency' between men); rarely enforced.
Same-sex acts legal since 1951. Cybercrime Law 2023 arts 13-14: minimum 6 months' prison plus fine for making, circulating or viewing 'pornographic content' or promoting 'immorality'; enforcement against private viewing not verified.
Penal Code ss.162, 165: up to 14 years; prosecutions rare. Penal Code art. 166 bans trading obscene material; no national blocking.
Penal Code ss.153-155: up to 14 years; not enforced. Art. 166 bans obscene material (up to 2 years); no blocking.
Penal Code art. 193: up to 7 years for sex between men; enforced. Producing or sharing adult content is prosecuted under the Penal Code and cybercrime law and adult sites are blocked; penalty not verified.
Penal Code art. 534 ('unnatural' sex): up to 1 year; several courts now refuse to apply it but arrests still occur. Obscenity provisions exist but adult sites are generally not blocked.
Penal Code s.14.74 'voluntary sodomy': misdemeanour, up to 1 year.
Penal Code arts 407-408: up to 5 years; militias also enforce. Reports of adult-site filtering could not be verified.
Penal Code ss.153, 156: up to 14 years (men), 5 years (women); moratorium on arrests not reliable. Art. 179 bans obscene material; no national blocking.
Penal Code s.377A-B: up to 20 years and whipping, plus state Sharia offences; enforced. Penal Code s.292 criminalises distributing obscene material and the regulator (MCMC) blocks adult sites nationally.
Penal Code 2014 s.411: up to 8 years and lashes; enforced. Penal Code art. 622 criminalises creating or possessing obscene material for distribution and adult sites are blocked.
Penal Code in force 13 December 2024 (arts 325-1, 325-2): same-sex acts treated as public indecency (2 years) and promoting them punished with up to 7 years.
Penal Code art. 308: death by stoning for Muslim men (moratorium since 1987); de facto 2 years and a fine. Adult-content law and blocking could not be verified.
Penal Code art. 489: 6 months to 3 years; enforced. Obscenity provisions exist; no national blocking.
Penal Code s.377: up to life imprisonment; rarely prosecuted. The junta blocks adult sites (2020 ministry order) and Penal Code s.292 bans obscene material; blocking status not independently re-verified.
New Penal Code (June 2026) criminalises homosexuality with 5 to 10 years' imprisonment.
Criminal Code s.214: 14 years; Same Sex Marriage (Prohibition) Act 2014 adds 10 years for 'gay clubs' and 'public show'; death by stoning under Sharia in 12 northern states (no known executions). No national blocking of adult sites.
Criminal Code arts 193-194 punish importing, distributing or possessing adult content with labour; the internet is closed to the public.
Penal Code 2018 arts 261-262: 6 months to 3 years; enforced. Cyber Crime Law 2011 criminalises producing or publishing adult content and adult sites are blocked.
Penal Code s.377: 2 years to life; Hudood Ordinances make death a legal possibility though never applied for consensual same-sex acts. PECA 2016 s.37 and Penal Code s.292 criminalise adult content; the PTA has blocked millions of adult URLs.
Gaza only: British Mandate Criminal Code 1936 s.152 (up to 10 years) still applies; not criminalised in the West Bank. Authorities in Gaza have ordered ISPs to filter adult sites; West Bank largely unfiltered.
Criminal Code ss.210, 212: up to 14 years; rarely enforced. Government announced plans to block adult sites in 2024; not verified as implemented.
Penal Code 2004 art. 285: up to 7 years; Sharia makes death a legal possibility for Muslims (no evidence of use for consensual acts). Penal Code art. 292 criminalises producing, importing or possessing immoral material and adult sites are blocked.
Criminal Code ss.146-148: up to 10 years; a constitutional challenge was dismissed in February 2024 and is on appeal.
Crimes Act 2013 ss.67-68: up to 7 years; not enforced. A 2021 court order required ISPs to block online pornography.
No codified penal code: Sharia prescribes death (stoning for married men), flogging or prison for sodomy, with verified executions in 2019. Anti-Cyber Crime Law 2007 criminalises producing or sharing adult content and adult sites are blocked.
Penal Code art. 319(3): penalty doubled by a law promulgated March 2026, now up to 10 years; actively enforced.
Offences Against the Person Act 1861 s.61 ('buggery'): up to life (men); not enforced.
Penal Code ss.160-162: up to 14 years; not enforced. Art. 173 bans obscene material; no blocking.
Penal Code art. 409: 3 months to 3 years; Sharia makes death a legal possibility and al-Shabaab executes. Adult-content law and blocking could not be verified.
Penal Code 2008 s.248: up to 10 years. Art. 260 bans obscene material; no national blocking found.
Penal Code ss.365, 365A: up to 10 years; a 2023 decriminalisation bill was cleared by the Supreme Court but has not been passed. Penal Code ss.285-286 ban obscene material and the regulator orders adult sites blocked; blocking status not independently re-verified.
Criminal Act art. 148: up to 7 years (death and flogging removed in 2020). The telecom regulator filters adult sites; art. 235 bans obscene material.
Penal Code art. 520 ('unnatural' sex): up to 3 years. State-level filtering blocks adult sites; obscenity provisions exist but enforcement against adults not verified.
Penal Code s.154: up to life; enforced. Cybercrimes Act 2015 criminalises publishing pornography, with arrests, and X was banned in June 2025 over explicit content.
Penal Code art. 392 (2015): 1 to 3 years.
Criminal Offences Act ss.136-140: up to 10 years and whipping; not enforced. Pornography Control Act 2002 bans production; no blocking found.
Sexual Offences Act ss.13, 16: the Court of Appeal reinstated the offences in March 2025 (reducing the maximum sentence); the Privy Council heard the final appeal in July 2026 and judgment is pending.
Penal Code art. 230: up to 3 years; actively enforced, including forced anal exams. Adult sites unblocked since 2011.
Criminal Code art. 135: up to 2 years for sex between men; enforced. Near-total state internet filtering blocks adult sites; Criminal Code also bans distributing pornography, enforcement not verified.
Penal Code ss.153-155: up to 14 years; not enforced. Art. 166 bans obscene material; no blocking.
Anti-Homosexuality Act 2023: life imprisonment, death for 'aggravated homosexuality'; upheld by the Constitutional Court in 2024. Anti-Pornography Act 2014 was largely annulled in 2021 but obscene publications remain an offence and the UCC blocked 500+ adult sites in April 2026.
Federal penal code and emirate laws (e.g. Abu Dhabi up to 14 years) criminalise consensual same-sex acts; Sharia makes death a legal possibility (no known use). Federal Decree-Law 34/2021 art. 34: detention and AED 250,000-500,000 fine for disseminating adult content; adult sites are blocked.
Criminal Code art. 120: up to 3 years for sex between men; enforced. Criminal Code art. 130 criminalises producing or distributing pornography and has been used to jail bloggers; adult sites are blocked.
Penal Code art. 264: death by stoning for married men, up to 1 year and 100 lashes for unmarried men; art. 268 up to 3 years for women. Adult sites are blocked; obscenity penalties not verified.
Penal Code ss.155-158: 15 years to life; enforced. Art. 177 bans obscene material; no national blocking.
Criminal Law (Codification and Reform) Act s.73: up to 1 year (men).
Restricted or blocked (17)
Private adult conduct is legal, but adult sites are blocked at national level or laws restrict content about sex between adults. A site like this may not load without a VPN, and public events keep a low profile.
Law signed April 2026 (art. 19.16 Administrative Code) fines 'propaganda' of same-sex relations and 'sex change'; Criminal Code art. 343 (up to 2 years) is enforced against people who distribute pornography.
Same-sex acts decriminalised in 2021. Penal Code arts 381 and 476 ban distributing obscene material and the regulator blocks adult sites; blocking not independently re-verified.
Telecommunications Regulator blocked 7,323 sites in 2024 including adult content; the anti-trafficking law criminalises distributing pornography.
Law 'On Family Values and Protection of Minors' (2024) bans 'LGBT propaganda', gatherings and content promoting same-sex relations.
2021 law (Sections 6/A and 9(6)) bans making content that 'promotes' homosexuality or gender change available to minors, used against media and events.
Section 377 read down for consenting adults in 2018 (Navtej Johar) and left out of the Bharatiya Nyaya Sanhita that replaced the Penal Code in 2024; adultery decriminalised 2018. The live constraint is obscenity: BNS 294 (obscene material, incl. online) and 296 (obscene acts in public), and IT Act 67, judged since Aveek Sarkar (2014) by contemporary community standards. Government orders make ISPs block adult sites (2018, 2022); private viewing is legal, and a clothed listing of munches and classes is not obscene material.
Amendments signed 30 December 2025 ban dissemination of 'LGBT propaganda'; Criminal Code art. 311 bans distributing pornography.
August 2023 amendments to the child-protection law ban information on 'non-traditional sexual relations'; the ministry has also blocked major adult sites since 2022.
Pornography, including online, is illegal and adult sites are blocked.
Government ordered ISPs to block all adult sites in 2018; Criminal Code bans producing or distributing 'obscene' content.
The NTC ordered ISPs to block Pornhub, XVideos and other adult sites in 2017 under the anti-child-pornography law; adult possession is not prosecuted.
Federal 'LGBT propaganda' law (2013, extended to all ages in 2022, art. 6.21 Administrative Code) and the 2023 'extremist' designation of the 'LGBT movement'; Roskomnadzor blocks some adult sites and Criminal Code art. 242 bans illegal distribution.
Penal Code s.377A repealed in 2022. Penal Code s.292 bans obscene material and the IMDA maintains a symbolic block list of about 100 adult sites.
Criminal Act arts 243-244 criminalise distributing obscene material and the KCSC orders adult sites blocked nationally; possession by adults is not prosecuted.
Penal Code s.287 bans trading obscene material; the ministry has blocked major adult sites since 2020; possession is not prosecuted.
Same-sex acts legal since 1858, but in September 2026 a nationwide operation raided LGBTI+ groups and nightclubs in Istanbul, Ankara, İzmir, Aydın and Mersin, courts ordered 82 people held on 'obscenity' and association charges, detainees were questioned about a rope studio's posts, and dozens of sites were blocked; the regulator (BTK) also blocks adult sites.
Penal Code art. 326 criminalises producing, distributing or storing pornography for distribution and adult sites are blocked by order; viewing is not prosecuted.
Not verified (6)
Same-sex acts are legal and we found reports of adult-content filtering we could not confirm against a statute or regulator order.
Reports that the state ISP filters adult sites could not be verified.
Sale and distribution of pornography are prohibited (up to 1 year); enforcement and blocking could not be verified.
Listed as banning pornography by secondary sources; could not be verified against a statute.
Penal Code art. 138 bans mass production or distribution of pornography; whether adult sites are blocked or the law is enforced could not be verified.
Reports that the regulator ordered adult sites blocked could not be verified.
Criminal Code bans distributing pornography; blocking and enforcement could not be verified.
No specific law found (107)
Albania, Andorra, Angola, Antigua and Barbuda, Argentina, Armenia, Australia, Austria, Azerbaijan, Bahamas, Barbados, Belgium, Belize, Benin, Bolivia, Bosnia and Herzegovina, Botswana, Brazil, Bulgaria, Cabo Verde, Canada, Central African Republic, Chile, Colombia, Congo, Cook Islands, Costa Rica, Côte d'Ivoire, Croatia, Cyprus, Czechia, Denmark, Dominica, Dominican Republic, DR Congo, Ecuador, El Salvador, Estonia, Fiji, Finland, France, Gabon, Germany, Greece, Guatemala, Guinea-Bissau, Haiti, Honduras, Hong Kong, Iceland, Ireland, Israel, Italy, Japan, Kosovo, Latvia, Lesotho, Liechtenstein, Lithuania, Luxembourg, Macau, Madagascar, Malta, Marshall Islands, Mauritius, Mexico, Micronesia, Moldova, Monaco, Mongolia, Montenegro, Mozambique, Namibia, Netherlands, New Zealand, Nicaragua, North Macedonia, Norway, Palau, Panama, Paraguay, Peru, Poland, Portugal, Puerto Rico, Romania, Saint Kitts and Nevis, Saint Lucia, San Marino, Sao Tome and Principe, Serbia, Seychelles, Slovakia, Slovenia, South Africa, Spain, Suriname, Sweden, Switzerland, Taiwan, Timor-Leste, Ukraine, United Kingdom, United States, Uruguay, Vanuatu, Venezuela.
Where we cover
All 215 citiesHow this was put together
Whether same-sex acts are criminalised comes from the Human Dignity Trust's list of criminalising jurisdictions, cross-checked against ILGA World. How a state treats adult content comes from its penal code, regulator orders and reporting on blocking, with a news source wherever a country was marked criminal. A country is drawn red when either fact is a criminal offence for adults, amber when adult sites are blocked or "propaganda" laws reach content like this, and plain when nothing specific was found. Mandatory age checks (the UK, several US states) are not restrictions. Microstates and city territories smaller than the map's resolution carry a dot but no outline.
We list cities in restricted countries when a group there has chosen to be public on its own website; we hold back anything a current investigation could touch. No city we cover is in a country drawn red.