Is there a way to get all the youtube IPs to block it using the windows firewall?

I want to program my own distraction tool. I can not / do not want to use hosts or third-party applications. When using IPSEC or Windows Firewall, it only accepts IP addresses. Exists

youtube. [264 TLD]
www.youtube. [264 TLD]
subdomains.youtube. [264 TLD]

There seems to be no more way to get a complete list of youtube subdomains.

Can someone think about how to somehow get all the youtube IP addresses and block them at the ip level, except using brute force subdomain? pinging?

+7
source share
3 answers

If you have your own DNS server, you can block domains from resolving. Here's a guide to blocking domains in a Bind DNS server.

There is no way to get all the IP addresses. What you can do is install dig . Its available on Linux, but not on windows.

Then enter dig yoututbe.com from time to time, it will show you all the allowed IP addresses from the DNS cache.

See my result

 $ dig youtube.com A ; <<>> DiG 9.7.0-P1 <<>> youtube.com A ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13442 ;; flags: qr rd ra; QUERY: 1, ANSWER: 16, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;youtube.com. IN A ;; ANSWER SECTION: youtube.com. 83 IN A 74.125.235.47 youtube.com. 83 IN A 74.125.235.46 youtube.com. 83 IN A 74.125.235.45 youtube.com. 83 IN A 74.125.235.44 youtube.com. 83 IN A 74.125.235.43 youtube.com. 83 IN A 74.125.235.42 youtube.com. 83 IN A 74.125.235.41 youtube.com. 83 IN A 74.125.235.40 youtube.com. 83 IN A 74.125.235.39 youtube.com. 83 IN A 74.125.235.38 youtube.com. 83 IN A 74.125.235.37 youtube.com. 83 IN A 74.125.235.36 youtube.com. 83 IN A 74.125.235.35 youtube.com. 83 IN A 74.125.235.34 youtube.com. 83 IN A 74.125.235.33 youtube.com. 83 IN A 74.125.235.32 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Sat Feb 18 22:26:58 2012 ;; MSG SIZE rcvd: 285 
+7
source

How to find all the IP addresses associated with the URL, first to find the AS number, you can get it at http://networktools.nl/asinfo/ For YouTube http://networktools.nl/asinfo/youtube.com There you will get an AS number

Primary ASN: 15169

Now enter terminal

whois -h whois.radb.net - '-i origin AS15169' | grep ^ route

And there you will get the whole IP address, the list is long, but you can find a similar address that can be grouped into subnets.

+10
source

Current youtube address list

  • 64.18.0.0/20
  • 64.233.160.0/19
  • 66.102.0.0/20
  • 66.249.80.0/20
  • 72.14.192.0/18
  • 74.125.0.0/16
  • 173.194.0.0/16
  • 207.126.144.0/20
  • 209.85.128.0/17
  • 216.58.208.0/20
  • 216.239.32.0/19
+7
source

All Articles