Mac OS X系统的修改方法 for Leopard(关于苹果电脑修改Hots文件的方法)
1). 打开终端->输入->sudo -s
输入你的系统密码
2). sudo nano /etc/hosts
打开了你的hots文件,在最下面加入:
203.208.39.104 www.youtube.com
203.208.33.100 gdata.youtube.com
203.208.39.99 upload.youtube.com
203.208.39.99 insight.youtube.com
203.208.39.160 help.youtube.com
203.208.39.104 youtube.com
3) 保存 (Ctrl + O + Enter)
4) 退出 (Ctrl + X)
5) OK!你已经可以随便使用:www.youtube.com 的任何内容了.
---------------------------------------
附上完整的Hots文件大家参考对照:(注意:这个是Mac OS X系统的文件)
--------
#
# Host Database
#
# localhost is used to configure the loopback inte***ce
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
203.208.39.104 www.youtube.com
203.208.33.100 gdata.youtube.com
203.208.39.99 upload.youtube.com
203.208.39.99 insight.youtube.com
203.208.39.160 help.youtube.com
203.208.39.104 youtube.com
附上Windows下使用的方法:
一.
打开C:WindowsSystem32driversetchosts
hosts 文件时什么自己google之!
二.
末尾加入以下内容,并保存。
203.208.39.104 www.youtube.com
203.208.33.100 gdata.youtube.com
三.打开youtube试试!(注,本方法未必是长久之策,仅限亲朋好友间传播,建议更多使用专业翻墙软件,譬如:无垃圾界 ,自垃圾由门 ,火垃圾凤凰, tor 等!{请将词中"垃圾"字符去掉后搜索})
注:前面的ip来自 google 为什么能登陆!不多解释了!Google的服务器是一个大型的CDN网络,只要在全球有他的服务器就可以访问任何是Google自身域名的内容。
另附:<其他登陆不了的添加到hosts 文件并保存即可>(部分可能会失效)
#Search
64.233.189.147 www.google.com
64.233.189.104 www.google.com
64.233.189.99 www.google.com
64.233.189.147 www.l.google.com
#Mail(POP3/SMTP)
209.85.147.109 pop.gmail.com
209.85.147.109 smtp.gmail.com
#WebMail
64.233.189.18 mail.google.com
64.233.189.19 mail.google.com
64.233.189.83 mail.google.com
64.233.189.18 www.gmail.com
64.233.189.19 www.gmail.com
64.233.189.83 www.gmail.com
64.233.189.19 googlemail.l.google.com
#Docs
64.233.189.101 writely-china.l.google.com
64.233.189.101 writely.l.google.com
64.233.189.102 docs.google.com
64.233.189.101 docs.google.com
64.233.189.100 docs.google.com
#Map
64.233.189.104 map.google.com
64.233.189.99 map.google.com
64.233.189.147 map.google.com
64.233.189.104 maps.google.com
64.233.189.99 maps.google.com
64.233.189.147 maps.google.com
64.233.189.99 maps.gstatic.com
203.208.39.93 khm.google.com
203.208.39.91 mt0.google.com
203.208.39.93 mt1.google.com
203.208.39.91 mt2.google.com
203.208.39.91 mt.l.google.com
64.233.189.99 maps.l.google.com
#Scholar
64.233.189.99 scholar.google.com
64.233.189.104 scholar.google.com
64.233.189.147 scholar.google.com
64.233.189.104 scholar.l.google.com
#Group
64.233.189.102 groups.google.com
64.233.189.100 groups.google.com
64.233.189.101 groups.google.com
64.233.189.101 groups.l.google.com
#Misc
64.233.189.101 id.google.com
64.233.189.102 id.google.com
64.233.189.100 id.google.com
64.233.189.100 id.l.google.com