GitHub登录不上去,图片不能显示

打开IP查询网站:https://www.ipaddress.com/
分别输入并查询github.com和github.global.ssl.fastly.net网址的IP
在IP Adress处,记录下IP地址

输入并回车
记录IP地址

Windows 10,打开目录文件,C:\Windows\System32\drivers\etc\hosts
在该文件末尾添加以下内容,并保存

添加内容

最后一步,进入cmd窗口,刷新DNS,否则github中的图片有可能不能正常显示!

ipconfig /flushdns

附上一些地址,20200328更新

# GitHub Start 
140.82.113.3      github.com
140.82.114.20     gist.github.com

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
199.232.68.133     avatars0.githubusercontent.com
199.232.28.133     avatars1.githubusercontent.com
151.101.184.133    avatars1.githubusercontent.com
151.101.184.133    avatars2.githubusercontent.com
199.232.28.133     avatars2.githubusercontent.com
151.101.184.133    avatars3.githubusercontent.com
199.232.68.133     avatars3.githubusercontent.com
151.101.184.133    avatars4.githubusercontent.com
199.232.68.133     avatars4.githubusercontent.com
151.101.184.133    avatars5.githubusercontent.com
199.232.68.133     avatars5.githubusercontent.com
151.101.184.133    avatars6.githubusercontent.com
199.232.68.133     avatars6.githubusercontent.com
151.101.184.133    avatars7.githubusercontent.com
199.232.68.133     avatars7.githubusercontent.com
151.101.184.133    avatars8.githubusercontent.com
199.232.68.133     avatars8.githubusercontent.com

# GitHub End

完成!

来源:https://blog.csdn.net/TurboTab/article/details/106679242
来源:https://blog.csdn.net/qq_38232598/article/details/91346392

你可能感兴趣的:(GitHub登录不上去,图片不能显示)