GitHub是一个面向开源及私有软件项目的托管平台,因为只支持Git作为唯一的版本库格式进行托管,故名GitHub,在天朝Github默认被限速了,我们可以通过修改hosts文件来提速,不仅可以提升下载速度,还可以显示出个人头像等图标,请往下看,下面是最新的IP地址。

1.手动访问 https://www.ipaddress.com/ 网址,然后依次获取以下三个网址的IP

github.com
github.global.ssl.fastly.net
codeload.github.com

这是我获取的IP 地址,你也可以自己去找,一般只需要找github.com 的地址就可以提速了。

192.30.253.112 github.com
151.101.25.194 github.global.ssl.fastly.net
192.30.253.121 codeload.github.com
151.101.185.194 github.global.ssl.fastly.net
151.101.112.133 assets-cdn.github.com
192.30.253.117 api.github.com
172.217.21.110 www.google-analytics.com
192.30.253.124 live.github.com
140.82.112.9 codeload.github.com

修改系统本地 C:\Windows\System32\drivers\etc\hosts hosts 文件添加上面的查询记录到文件里。

刷新DNS缓存,执行命令 ipconfig /flushdns 再次下载文件,会发现速度提升了。

有时候Github图标无法完全显示,一般是被污染了。添加我们找好的地址到 hosts文件中即可。

151.101.184.133    assets-cdn.github.com
151.101.184.133    raw.githubusercontent.com
151.101.184.133    gist.githubusercontent.com
151.101.184.133    cloud.githubusercontent.com
151.101.184.133    camo.githubusercontent.com
151.101.184.133    avatars0.githubusercontent.com
151.101.184.133    avatars1.githubusercontent.com
151.101.184.133    avatars2.githubusercontent.com
151.101.184.133    avatars3.githubusercontent.com
151.101.184.133    avatars4.githubusercontent.com
151.101.184.133    avatars5.githubusercontent.com
151.101.184.133    avatars6.githubusercontent.com
151.101.184.133    avatars7.githubusercontent.com
151.101.184.133    avatars8.githubusercontent.com

添加上 avatar.githubusercontent.com 图片缓存服务器地址之后,就可以正常加载各种图标图片资源了,下载文件的速度也会变得很快。

2019-12-31 地址更新记录

151.101.44.249 http://github.global.ssl.fastly.net
192.30.253.113 http://github.com
103.245.222.133 http://assets-cdn.github.com
23.235.47.133 http://assets-cdn.github.com
203.208.39.104 http://assets-cdn.github.com
204.232.175.78 http://documentcloud.github.com
204.232.175.94 http://gist.github.com
107.21.116.220 http://help.github.com
207.97.227.252 http://nodeload.github.com
192.30.253.121 http://codeload.github.com
199.27.76.130 http://raw.github.com
107.22.3.110 http://status.github.com
204.232.175.78 http://training.github.com
207.97.227.243 http://www.github.com
185.31.16.184 http://github.global.ssl.fastly.net
185.31.18.133 http://avatars0.githubusercontent.com
185.31.19.133 http://avatars1.githubusercontent.com

2020-06-04 地址更新

140.82.113.4 github.com
151.101.25.194 github.global.ssl.fastly.net
140.82.112.10 codeload.github.com
199.232.69.194 github.global.ssl.fastly.net
185.199.108.153 assets-cdn.github.com
140.82.112.5 api.github.com
172.217.4.78 www.google-analytics.com
140.82.114.25 live.github.com

199.232.68.133 avatars0.githubusercontent.com
199.232.68.133 avatars1.githubusercontent.com
199.232.68.133 avatars2.githubusercontent.com
199.232.68.133 avatars3.githubusercontent.com
199.232.68.133 avatars4.githubusercontent.com
199.232.68.133 avatars5.githubusercontent.com
199.232.68.133 avatars6.githubusercontent.com
199.232.68.133 avatars7.githubusercontent.com
199.232.68.133 avatars8.githubusercontent.com
199.232.68.133 avatars9.githubusercontent.com

2021-06-12

140.82.113.3 github.com
199.232.69.194 github.global.ssl.fastly.net
140.82.112.10 codeload.github.com
199.232.69.194 github.global.ssl.fastly.net
185.199.108.153 assets-cdn.github.com
140.82.114.6 api.github.com
142.250.190.110 www.google-analytics.com
140.82.112.26 live.github.com

185.199.108.133 avatars0.githubusercontent.com
199.232.68.133 avatars1.githubusercontent.com
185.199.109.133 avatars2.githubusercontent.com
185.199.110.133 avatars3.githubusercontent.com
185.199.111.133 avatars4.githubusercontent.com
185.199.108.133 avatars5.githubusercontent.com
185.199.108.133 avatars6.githubusercontent.com
185.199.108.133 avatars7.githubusercontent.com
185.199.108.133 avatars8.githubusercontent.com
185.199.108.133 avatars9.githubusercontent.com

2021-07-04

140.82.112.3 github.com
140.82.113.3 gist.github.com
185.199.108.153 assets-cdn.github.com
185.199.108.133 raw.githubusercontent.com
185.199.108.133 gist.githubusercontent.com
185.199.108.133 cloud.githubusercontent.com
185.199.108.133 camo.githubusercontent.com
185.199.109.133 avatars.githubusercontent.com 
185.199.109.133 avatars0.githubusercontent.com
185.199.109.133 avatars1.githubusercontent.com
185.199.109.133 avatars2.githubusercontent.com
185.199.109.133 avatars3.githubusercontent.com
185.199.109.133 avatars4.githubusercontent.com
185.199.109.133 avatars5.githubusercontent.com
185.199.109.133 avatars6.githubusercontent.com
185.199.109.133 avatars7.githubusercontent.com
185.199.109.133 avatars8.githubusercontent.com

2021-07-25

140.82.114.3	github.com
185.199.109.153	assets-cdn.github.com
185.199.110.153	documentcloud.github.com
140.82.114.4	gist.github.com
185.199.110.133	gist.githubusercontent.com
185.199.108.154	github.githubassets.com
185.199.111.154	help.github.com
140.82.113.9	nodeload.github.com
185.199.109.133	raw.github.com
140.82.114.17	status.github.com
185.199.108.153	training.github.com
140.82.113.10	codeload.github.com
185.199.109.133 avatars.githubusercontent.com 
185.199.109.133 avatars0.githubusercontent.com
185.199.109.133 avatars1.githubusercontent.com
185.199.109.133 avatars2.githubusercontent.com
185.199.109.133 avatars3.githubusercontent.com
185.199.109.133 avatars4.githubusercontent.com
185.199.109.133 avatars5.githubusercontent.com
185.199.109.133 avatars6.githubusercontent.com
185.199.109.133 avatars7.githubusercontent.com
185.199.109.133 avatars8.githubusercontent.com

版权声明:本文为LyShark原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/LyShark/p/10574755.html