有没有办法让 YouTube 的所有 IP 地址都被 Windows 防火墙阻止?
我想编写自己的防分心工具。我不能/不想使用 hosts 文件 或第三方应用。使用 IPsec 或 Windows 防火墙,它只接受 IP 地址。有
youtube。[264 TLD]
www.youtube。[264 TLD]
subdomains.youtube.[264 TLD]
显然,我们无法再获得 YouTube 子域的完整列表。
除了使用暴力子域 ping 之外,是否有办法以某种方式获取所有 YouTube IP 地址并在 IP 地址级别阻止它们?
I want to programme my own anti-distraction tool. I can not / do not want to use the hosts file or third-party apps. When using IPsec or Windows Firewall, it only accepts IP addresses. There is
youtube.[264 TLD]
www.youtube.[264 TLD]
subdomains.youtube.[264 TLD]
Apparently, there is no way any more to get a complete list of YouTube sub domains.
Is there a way to somehow obtain all YouTube IP addresses and block them on the IP address level other than using brute force subdomain pinging?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
查找与某个 URL 关联的所有 IP 地址的方法首先是查找 AS 编号。您可以在 网络工具中获取它:asinfo 反向 IP 查找、Whois、Ping、RBL 检查、DNS 记录、Traceroute、主机信息。
获取
对于 YouTube,请在 Networktools: asinfo youtube.com上 您将获得 AS 编号 (ASN):
现在,在终端中输入:
然后您将获得所有 IP 地址。该列表很长,但您可以找到可以分组在子网中的类似地址。
The way to find all the IP addresses associated with a URL is first to find the AS Number. You can get it in Networktools: asinfo Reverse IP Lookup, Whois, Ping, RBL Check, DNS Records, Traceroute, Host information.
For YouTube, get it on Networktools: asinfo youtube.com
There you get the AS number (ASN):
Now, type this in the terminal:
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.
YouTube 当前地址列表为:
The YouTube current address list is:
如果您有自己的 DNS 服务器,则可以阻止域名解析。以下是阻止 BIND DNS 服务器。
要获取所有 IP 地址,没有任何方法。您可以安装 dig。它在 Linux 上可用,但在 Windows 上不可用。
然后是时候进入
dig youtube.com
了。它将显示 DNS 缓存中所有已解析的 IP 地址。查看我的
dig youtube.com A
结果:If you have your own DNS server you can block domains from resolving. Here is a guide to block domains in a BIND DNS server.
To get all the IP addresses there isn't any way. You can install dig. It's available on Linux, but not on Windows.
Then it is to time enter
dig youtube.com
. It'll show you all the resolved IP addresses from the DNS cache.See my result of
dig youtube.com A
:这可能会有所帮助:获取Google IP 地址范围
指向:
https://www.gstatic .com/ipranges/goog.json
This may help: Obtain Google IP address ranges
Which points to:
https://www.gstatic.com/ipranges/goog.json