I am trying to programme my own Anti-Distraction tool. It should block Facebook and similar websites. I use IP blocking, therefore I have huge lists with website domains that I need to resolve into ips. Why huge? There is:

  • facebook.[267 TLD]
  • www.facebook.[267 TLD]

    = 534 combinations per Domain

1. Is there a service that resolves big domain lists?
2. Is there a way to eliminate the domains that DONT exist at all?

Otherwise I would programme a PHP script with multithreading and use the google DNS server to resolve them...

Curious about your comments...

link|improve this question
Personally I would just do it your way, though perhaps in something other than PHP. – soandos Jan 20 at 18:15
5  
Don't block websites by IP. It is just wrong, and wouldn't work for big websites at all (you're already figured that). Use something like Squid proxy in a transparent proxy mode + a script that blocks per URL. – haimg Jan 20 at 18:18
true. but then i could just circumvent my own tool, google the IP of a facebook server and then access facebook by saying http://<facebookip>. Or could squid block that as well? – user670186 Jan 20 at 18:24
also, to use Squid it has to be set as a system proxy server. I could just deactivate it... – user670186 Jan 20 at 18:27
You at your border gateway you can have it forward all port 80 traffic to the Squid box without having any set up at all on the client computer, that is why it is called a "Transparent Proxy" instead of just a Proxy. – Scott Chamberlain Jan 20 at 18:45
show 3 more comments
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.