Is there a way to get all IP addresses of youtube to block it with Windows Firewall?

后端 未结 3 1196
清歌不尽
清歌不尽 2021-01-31 12:11

I want to programme my own anti distraction tool. I can not / do not want to use hosts or third party apps. When using IPSEC or Windows firewall, it only accepts IP adresses. Th

3条回答
  •  借酒劲吻你
    2021-01-31 12:44

    The way to find all the IP addresses associated with a URL is first to find the AS Number, you can get it in http://networktools.nl/asinfo/ For YouTube get it in http://networktools.nl/asinfo/youtube.com There you get the AS Number

    Primary ASN : 15169

    Now, type in terminal

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

    And there you will get all the IP Addresses, the list is long but you can find similar addresses that can be grouped in a subnet.

提交回复
热议问题