GitHub网页无法打开——最新版

GitHub网页无法打开

今天访问了一天GitHub没进去,试了很多方法都不管用,最终找到了下面这种方法可以解决网页无法访问的问题。
操作如下:

1.打开此路径:C:\Windows\System32\drivers\etc

2.将该路径下的hosts文件复制到桌面,用记事本打开

3.将下列代码复制到文本的最下方并保存

# github
# GitHub520 Host Start
140.82.113.26                 alive.github.com
140.82.114.5                  api.github.com
185.199.110.153               assets-cdn.github.com
185.199.108.133               avatars.githubusercontent.com
185.199.108.133               avatars0.githubusercontent.com
185.199.108.133               avatars1.githubusercontent.com
185.199.108.133               avatars2.githubusercontent.com
185.199.108.133               avatars3.githubusercontent.com
185.199.108.133               avatars4.githubusercontent.com
185.199.108.133               avatars5.githubusercontent.com
185.199.108.133               camo.githubusercontent.com
140.82.112.22                 central.github.com
185.199.108.133               cloud.githubusercontent.com
140.82.113.9                  codeload.github.com
140.82.113.21                 collector.github.com
185.199.108.133               desktop.githubusercontent.com
185.199.108.133               favicons.githubusercontent.com
140.82.114.4                  gist.github.com
54.231.132.193                github-cloud.s3.amazonaws.com
52.217.234.145                github-com.s3.amazonaws.com
52.217.130.225                github-production-release-asset-2e65be.s3.amazonaws.com
52.216.170.179                github-production-repository-file-5c1aeb.s3.amazonaws.com
52.216.92.227                 github-production-user-asset-6210df.s3.amazonaws.com
192.0.66.2                    github.blog
140.82.114.3                  github.com
140.82.113.18                 github.community
185.199.109.154               github.githubassets.com
151.101.129.194               github.global.ssl.fastly.net
185.199.110.153               github.io
185.199.108.133               github.map.fastly.net
185.199.110.153               githubstatus.com
140.82.113.25                 live.github.com
185.199.108.133               media.githubusercontent.com
185.199.108.133               objects.githubusercontent.com
13.107.42.16                  pipelines.actions.githubusercontent.com
185.199.108.133               raw.githubusercontent.com
185.199.108.133               user-images.githubusercontent.com
13.107.238.51                 vscode.dev

4.将该文件复制到:C:\Windows\System32\drivers\etc,选择替换

5.刷新DNS:按下“Windows+R”键,进入命令提示符界面,输入“ipconfig /flushdns”,按“Enter”键,提示刷新成功。

再次打开浏览器就可以访问GitHub网站了。

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

菜喵007

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值