🌍 Where GitHub is blocked
🇨🇳
China
Blocked by Great Firewall
Blocked
🇰🇵
North Korea
Internet access heavily restricted in North Korea
Blocked
😨 Shocking, right? Here's the good news.
A VPN unblocks GitHub in every country that censors it. ExpressVPN, NordVPN, and Surfshark are independently tested to work in restrictive regions in 2026.
🛡️
Recommended VPN Services
Top-rated VPNs trusted by millions
N
NordVPN
⭐ EDITOR'S PICK
★★★★★ 9.5/10 · 6,000+ servers · Works in China
$3.39/mo
View Deal →
S
Surfshark
BEST VALUE
★★★★★ 9.6/10 · Unlimited devices
$2.49/mo
View Deal →
E
ExpressVPN
PREMIUM
★★★★★ 9.4/10 · 94 countries
$6.67/mo
View Deal →
Disclosure: save-clip may earn a commission when you sign up through our links. This helps us keep our tools free for everyone.
GitHub Censorship: Blocks in China, Iran, and Technical Workarounds
What GitHub IsGitHub launched in 2008 as a web-based Git repository hosting service. Microsoft acquired it in 2018 for $7.5 billion. Today, GitHub hosts over 100 million repositories and serves approximately 73 million developers globally. It functions as the de facto standard platform for open-source software development, version control, and collaborative coding.
Why It's Censored
GitHub faces restrictions in three primary jurisdictions, each with distinct justifications.
China blocks GitHub selectively and intermittently. The Chinese government, through the Cyberspace Administration of China (CAC), views GitHub as a vector for distributing content that violates the Cyberspace Security Law and related censorship requirements. GitHub has hosted mirror repositories of censored works, protest organizing materials, and uncensored news archives. The blocks intensify around sensitive political dates (Tiananmen anniversaries, party congresses). China doesn't cite a specific statute requiring GitHub's blocking; instead, it enforces broad content control through the Great Firewall infrastructure.
Iran blocks GitHub more consistently. The Iranian government, through bodies including the Supreme Council of Cyberspace, has repeatedly ordered ISPs to restrict access. Iran officially targets GitHub for hosting content deemed immoral or subversive—particularly LGBTQ+ resources, anti-government materials, and circumvention tools. Iran's Computer Crimes Law (2009) provides legal cover for ISPs to comply with censorship orders. Unlike China's intermittent approach, Iran treats GitHub as categorically prohibited.
North Korea's situation is less documented but presumed total. As part of its isolated information environment, North Korea restricts internet access to a domestic intranet (Kwangmyong) for most citizens. GitHub, like nearly all external websites, remains inaccessible to the general population. The regime controls information through direct censorship rather than technical blocking, though the distinction is academic.
Technical Blocking Methods
China employs multiple techniques. DNS filtering is common—queries for github.com return null or spoofed IPs. SNI-based blocking occurs at the Great Firewall level, inspecting TLS handshakes to identify GitHub traffic even over HTTPS. During heightened censorship periods, China has engaged in IP-level blocking, preventing direct connections to GitHub's address ranges.
Iran typically uses DNS filtering and IP-level blocking. ISPs receive direct orders to null-route GitHub's IP blocks. Unlike China's more sophisticated DPI (deep packet inspection) capability, Iran relies on cruder blocking that can be circumvented by simple DNS changes, though ISPs are instructed to monitor for circumvention attempts.
User Workarounds
For developers in affected regions, standard technical mitigations include: DNS over HTTPS or DNS over TLS to bypass DNS filtering; proxying traffic through intermediary servers in unrestricted jurisdictions; using Tor if local ISPs don't actively block it; and SSH over non-standard ports to obscure Git protocol traffic. Some developers mirror repositories locally or through self-hosted Git services. These approaches require technical knowledge and carry varying risk profiles depending on local law enforcement posture.
Alternatives
GitLab is functionally similar but faces identical or worse blocking in China and Iran. GitLab's Chinese mainland servers were shut down in 2021 after government pressure. Gitea is a self-hosted alternative, putting control in users' hands but requiring infrastructure investment. SourceForge, once dominant, has degraded significantly but remains accessible in some censored regions; it offers less modern features than GitHub.
Outlook
Restrictions are tightening, not easing. China's censorship has intensified since 2017. Iran's blocking has remained consistent. Neither country shows policy movement toward liberalizing developer access. The international internet fragmentation trend suggests GitHub's accessibility in authoritarian-leaning states will likely decline further as regimes digitalize control mechanisms.