修改 hosts 以突破
我们可以通过修改 hosts 文件内容使得被墙的 GitHub 可访问。
## GitHub Start
192.30.253.112 http://github.com
192.30.253.113 http://github.com
151.101.184.133 http://assets-cdn.github.com
151.101.185.194 http://github.global.ssl.fastly.net
192.30.253.112 http://github.com
192.30.253.113 http://github.com
192.30.253.118 http://gist.github.com
151.101.185.194 http://github.global.ssl.fastly.net
151.101.129.194 http://github.global.ssl.fastly.net
151.101.65.194 http://github.global.ssl.fastly.net
151.101.1.194 http://github.global.ssl.fastly.net
151.101.193.194 http://github.global.ssl.fastly.net
151.101.77.194 http://github.global.ssl.fastly.net
151.101.229.194 http://github.global.ssl.fastly.net
151.101.113.194 http://github.global.ssl.fastly.net
151.101.196.133 http://assets-cdn.github.com
151.101.24.133 http://assets-cdn.github.com
185.199.111.153 http://assets-cdn.github.com
185.199.110.153 http://assets-cdn.github.com
185.199.108.153 http://assets-cdn.github.com
185.199.109.153 http://assets-cdn.github.com
151.101.112.133 http://assets-cdn.github.com
151.101.112.133 http://avatars0.githubusercontent.com
151.101.112.133 http://avatars1.githubusercontent.com
151.101.184.133 http://avatars2.githubusercontent.com
151.101.12.133 http://avatars3.githubusercontent.com
151.101.12.133 http://avatars4.githubusercontent.com
151.101.184.133 http://avatars5.githubusercontent.com
151.101.184.133 http://avatars6.githubusercontent.com
151.101.184.133 http://avatars7.githubusercontent.com
151.101.12.133 http://avatars8.githubusercontent.com
151.101.184.133 http://raw.githubusercontent.com
151.101.112.133 http://gist.githubusercontent.com
151.101.184.133 http://cloud.githubusercontent.com
151.101.112.133 http://camo.githubusercontent.com
52.216.227.168 http://github-cloud.s3.amazonaws.com
192.30.253.112 http://github.com
185.199.108.153 http://assets-cdn.github.com
151.101.185.194 http://github.global.ssl.fastly.net
140.82.113.10 http://codeload.github.com
# 下载慢问题
219.76.4.4 http://github-cloud.s3.amazonaws.com
## GitHub End
当然也可以通过此种方式访问推特和脸书:
#twitter相关
199.59.148.13 oauth.twitter.com
199.59.148.13 twitter.com
199.59.148.13 www.twitter.com
199.59.148.13 api.twitter.com
199.59.148.201 search.twitter.com
199.59.148.139 userstream.twitter.com
199.59.148.13 ssl.twitter.com
199.59.148.13 status.twitter.com
199.59.148.13 assets0.twitter.com
199.59.148.13 assets1.twitter.com
199.59.148.13 assets2.twitter.com
199.59.148.13 assets3.twitter.com
199.59.148.13 static.twitter.com
184.29.36.124 platform.twitter.com
219.76.10.138 platform0.twitter.com
199.59.148.206 help.twitter.com
199.59.148.206 support.twitter.com
209.84.4.102 si0.twimg.com
209.84.4.102 si1.twimg.com
209.84.4.102 si2.twimg.com
209.84.4.102 si3.twimg.com
209.84.4.102 si4.twimg.com
209.84.4.102 si5.twimg.com
#Facebook相关
69.63.189.16 facebook.com
69.63.189.16 www.facebook.com
69.63.181.31 m.facebook.com
69.63.181.20 login.facebook.com
69.63.179.70 secure.facebook.com
66.220.146.18 apps.facebook.com
69.63.181.31 touch.facebook.com
118.214.114.110 s-static.ak.facebook.com
66.220.147.47 api.facebook.com
69.63.181.16 zh-CN.facebook.com
202.157.186.28 static.ak.facebook.com
202.157.186.34 b.static.ak.facebook.com
69.63.178.57 secure-profile.facebook.com
69.63.178.57 secure-media-sf2p.facebook.com
69.63.178.15 ssl.facebook.com
69.63.190.18 apps.facebook.com
118.214.190.105 profile.ak.facebook.com
69.63.187.17 fbcdn.net
97.65.135.139 external.ak.fbcdn.net
124.155.222.50 vthumb.ak.fbcdn.net
97.65.135.163 static.ak.fbcdn.net
97.65.135.163 b.static.ak.fbcdn.net
202.157.186.34 creative.ak.fbcdn.net
118.214.190.128 profile.ak.fbcdn.net
69.63.176.21 s-hprofile-sf2p.fbcdn.net
125.56.199.9 photos-a.ak.fbcdn.net
125.56.199.9 photos-b.ak.fbcdn.net
125.56.199.9 photos-c.ak.fbcdn.net
125.56.199.9 photos-d.ak.fbcdn.net
125.56.199.9 photos-e.ak.fbcdn.net
125.56.199.9 photos-f.ak.fbcdn.net
125.56.199.9 photos-g.ak.fbcdn.net
125.56.199.9 photos-h.ak.fbcdn.net
将以上代码复制粘贴到 hosts文件末尾即可,记得保存。
修改 hosts 前记得先修改 hosts 的文件属性并使其可以写入。
hosts文件地址 :C:\Windows\System32\drivers\etc\hosts
修改完成后,我们需要刷新配置使得修改生效。
这里介绍两种方法:
- 重启电脑(简单粗暴)。
- 快捷键
win + R
键入cmd
, 在弹出的窗口中输入ipconfig /flushdns
等待即可。
以上便是修改 hosts 文件 以突破的方法。