文件主机分C:\Windows\System32\drivers\etc
块我放进去的每个网站除了 YouTube。它以前会阻止它,但现在不会了。
一直以来,都有一些变通方法可以访问 YouTube,比如使用其他网站上的嵌入式 YouTube 播放器。但现在它可以直接使用。我的意思是,我只需输入 URL 即可youtube.com
访问该网站。
我认为这并不重要,但我使用 Firefox 浏览器进行测试。
我的主机文件如下所示:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 youtube.com
127.0.0.1 flashx.tv
答案1
我也遇到了同样的问题,但我发现浏览器通过缓存的 IP 地址访问 YouTube。因此,简单的解决方案是从浏览器中删除缓存数据并尝试访问 YouTube。现在应该被阻止了。这个技巧对我有用。