Blog / How the internet works /
Why some websites are blocked in some countries
You click a link and get an error. A friend in another country opens the same link without a problem. Nothing is wrong with the site. It’s being blocked, or it is refusing you.
Websites are blocked in some countries for a handful of reasons, using a handful of methods. Understanding both makes it easier to tell what is happening, and what you can or can’t do about it.
Two kinds of blocking
The first thing to separate is who is doing the blocking.
1. The country or network blocks the site. A government, regulator or internet provider stops their users from reaching a website. The site itself is working fine.
2. The site blocks the country. The owner (or their security tool) refuses visitors from certain regions. This is called geo-blocking, and it’s often for legal, licensing or fraud reasons.
Both look the same to the visitor: the page won’t open. They have different fixes, so it’s worth working out which you have.
Why countries block sites
Politics and control. Governments may restrict news outlets, opposition sites or social media, especially during elections or protests. A well-known example in Nigeria: in June 2021 the government suspended Twitter nationally, and the suspension was lifted in January 2022. Some people could only get on via VPNs during that time.
Law and morality. Content that’s illegal locally, such as gambling in places where it is banned, adult material, or content considered offensive under local rules.
Copyright. Courts in many countries order internet providers to block sites that host pirated films, music or books.
Security. Blocking known phishing, malware or fraud sites, which is widely accepted. Many schools, offices and networks do the same.
Trade, sanctions and licensing. Services may withdraw from certain countries because of sanctions or because they lack rights to operate there.
Protecting local business or taxes. Some countries restrict foreign services to favour domestic ones or to force them to follow local rules.
Child protection and age rules. Increasingly, laws push sites to verify age or be restricted.
Not all of these reasons are equally defensible. Some are widely seen as reasonable; others are criticised as censorship. The technology is the same either way.
How a block is actually done
Several methods exist, from crude to precise. Knowing them explains why some blocks leak.
DNS blocking. The network’s DNS resolver refuses to give the real address for a banned name, or gives a false one. It’s the cheapest method. Remember that DNS is the internet’s phone book, as I explain in DNS explained for people who just want their site to work. Change the book and the number is lost, but the site is still there. Switching to a different DNS resolver sometimes gets around it.
IP blocking. The network drops traffic to the server’s numeric address. Blunt, because many websites share an address, so innocent sites can be blocked along with the target.
URL or keyword filtering. The network inspects requests and blocks certain addresses or words. This is harder with HTTPS, since the content is encrypted, though the site name can often still be seen.
Deep packet inspection. Equipment examines the shape of traffic to spot particular services or protocols and cut them off. More sophisticated and more expensive.
Blocking at the app store or search level. Removing apps from local stores or hiding sites from local search results.
Throttling. Rather than a hard block, the connection to a service is slowed until it’s unusable.
Legal pressure. Authorities ask platforms or hosts to remove content or restrict it locally, with no technical block at all.
How you can tell what’s going on
A few simple clues:
- Does it fail on every network? If the site opens on mobile data but not on a particular Wi-Fi, the network is the blocker.
- What does the error say? A “this site is blocked” page points to a network or government filter. A “not available in your region” message from the site itself points to geo-blocking.
- Do other people see it? Ask someone in another country. Online tools that check availability from different places can also help.
- Does it fail quickly, or hang? Instant errors often mean DNS blocking; hanging may mean IP-level blocking or throttling.
What visitors can do (within the law)
The law varies, and in some countries bypassing a block is itself an offence, so know the rules where you are. If it is legal, common approaches include a different DNS resolver, a VPN (see VPNs explained), or using the site’s mirror or app. None work every time.
A practical word of caution: free tools that promise to unblock everything are a favourite way to spread malware or collect data. Pick carefully, or don’t bother.
What this means if you run a website
You might be blocked without knowing it. If you have an audience in a particular country and traffic has dropped there, a block could be the reason. Analytics won’t tell you; the visitors just don’t arrive. Ask readers there or test from a local connection.
You might block people by accident. Security plugins and firewalls can block entire countries. Some do it to cut spam, but it can also shut out real customers. Check your settings and your logs. I mentioned this risk in bots are now a huge share of web traffic.
Shared hosting can hurt you. If your site shares an IP address with a problem site, you could be caught by an IP block. A dedicated IP or a CDN reduces that risk.
Licensing and legal limits may apply to you. If you sell products or stream content, rights, tax rules and export restrictions may require you to restrict some regions. Get proper advice rather than guessing.
HTTPS helps. Encrypted connections stop networks from tampering with the content of your pages, and make URL-level filtering harder, though they don’t stop a block based on the domain name.
Common myths
“If a site is blocked, it’s been shut down.” No, it’s still running; people in a particular place just can’t reach it.
“A VPN always gets you through.” Not always. Some countries block VPN services too.
“Blocks are always about politics.” Many are about copyright, security or licensing.
“Only authoritarian governments block sites.” Nearly every country blocks something, such as child abuse material or phishing, though they differ hugely in scope and transparency.
Key takeaways
- Either a country or network blocks the site, or the site blocks the country.
- Reasons include politics, law, copyright, security, licensing and age rules.
- Methods range from DNS and IP blocks to deep packet inspection and throttling.
- Test from another network to find out who is doing the blocking.
- Site owners should check that their own firewall isn’t turning away real visitors.
Related reading
- Censorship and the open web
- How a website really loads: from server to screen
- How domain names work, from typing to loading
Have you ever hit a blocked site, and how did you work out whether it was the site or the network?