Ask HN: How do I compile a list of censored websites in my country
Hello
I live in Pakistan and my government censors websites that contain "immoral" content. Sometimes random websites get caught in the censors, e.g pastebin.com
I wanted to build a portal that kept check of which websites are blocked, but I'm unsure about how to go about this:
1. I could download the zonefiles for all the popular tlds and test them, but this will exclude unpopular tlds
2. I could crawl the web but this will turn into a more expensive side project than I have the funds for.
3... any suggestions?
8 comments
[ 2.7 ms ] story [ 35.0 ms ] threadIn general enumerating domains is not really possible (you can't just dump all North Korean domains for example, and people have tried).
I'd start by figuring out how they are blocking sites. Probing to see which IPs are blocked would be much easier. There are various tools to lookup which sites are hosted on a given IP address (using crawled data).
One way to do this would be to try connecting from outside Pakistan (e.g. EC2 server) and from inside and seeing if a IP is blocked.
Scanning all 4 billion IPs surprisingly doesn't take too long on a modern internet connection.
Your problem will come from the countries/TLD's that dont play ball with their zone files. These are trickier to obtain.