blog icon indicating copy to clipboard operation
blog copied to clipboard

修复github图片无法展示问题

Open aermin opened this issue 5 years ago • 2 comments

最近发现github相关的图片资源在不全局fq的情况下都加载不出来了,此文记录解决方法

方法一:自己动手

将无法加载的url放到这个网站搜,得到Server IP

image

然后把 IP 与 域名 151.101.208.133 user-images.githubusercontent.com 填加进电脑的host文件

解决其他不同域名且图片无法加载的github url同理

方法二:懒人一把梭

直接把这些都拷贝到host文件即可

# GitHub Start
192.30.253.112    github.com
192.30.253.119    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
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
151.101.208.133    user-images.githubusercontent.com
 # GitHub End

Reference

参考这篇文章,貌似现在被作者删了,因此作此文以便后面遇到这个问题的人

aermin avatar Feb 17 '20 14:02 aermin

现在用的什么评论插件?

dianxiaoerk avatar May 09 '20 08:05 dianxiaoerk

现在用的什么评论插件?

???

aermin avatar May 09 '20 14:05 aermin