奔向自由的世界

有些人就是那么紧张,千方百计不让我们访问有些网站。不过人民的智慧是无穷的,俗称翻墙技术哪家强。

这几天有新闻出来,连Gmail都访问受限了,而新闻发言人在新闻发布会上还假装无辜:”我不了解你说的情况。“

【修改host文件法】

以Windows 7为例,在目录C:\Windows\System32\drivers\etc里面有个hosts文件,可以用记事本打开它,里面是这样子的:

# 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 localhost,前面的IP地址表示强制localhost定向到127.0.0.1。如果谷歌不能访问了,我们可以写一行(前面不带#):

8.8.8.8 www.google.com

这表示强制将google解析到8.8.8.8这个IP上。(当然这是例子,真实的google不是8.8.8.8,这是谷歌的DNS地址)。

由于政治的需要,谷歌、Facebook、Twitter这些世界闻名的网站,在我国是不能访问的。所以我们用这个方法,就可以强制我们的浏览器通过指定的IP与被隔离的这些网站连接,达到访问的目的——自由万岁!

当然,这种情况有关部门是不会坐视不理的,即使我们使用了IP指向,过一段时间,这些IP又会被查出来屏蔽掉,于是我们需要更换新的IP,这里有一个提供最新IP的网站:http://serve.netsh.org/pub/gethosts.php (由于该网址已经被盯上,现已作废,尊重该网站主人的要求,不再公开新地址。)

发表评论

邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据