使用方法:

下面的地址无需访问 GitHub 即可获取到最新的 hosts 内容:

文件:https://raw.hellogithub.com/hosts

JSON:https://raw.hellogithub.com/hosts.json

手动方式

# GitHub520 Host Start
140.82.114.25                 alive.github.com
140.82.114.5                  api.github.com
185.199.109.153               assets-cdn.github.com
185.199.111.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.111.133               avatars3.githubusercontent.com
185.199.111.133               avatars4.githubusercontent.com
185.199.108.133               avatars5.githubusercontent.com
185.199.111.133               camo.githubusercontent.com
140.82.113.21                 central.github.com
185.199.111.133               cloud.githubusercontent.com
140.82.112.10                 codeload.github.com
140.82.113.22                 collector.github.com
185.199.111.133               desktop.githubusercontent.com
185.199.111.133               favicons.githubusercontent.com
140.82.112.3                  gist.github.com
16.182.105.201                github-cloud.s3.amazonaws.com
3.5.24.117                    github-com.s3.amazonaws.com
16.182.33.161                 github-production-release-asset-2e65be.s3.amazonaws.com
52.216.169.99                 github-production-repository-file-5c1aeb.s3.amazonaws.com
52.216.110.123                github-production-user-asset-6210df.s3.amazonaws.com
192.0.66.2                    github.blog
140.82.114.3                  github.com
140.82.114.17                 github.community
185.199.109.154               github.githubassets.com
151.101.193.194               github.global.ssl.fastly.net
185.199.109.153               github.io
185.199.111.133               github.map.fastly.net
185.199.109.153               githubstatus.com
140.82.113.26                 live.github.com
185.199.108.133               media.githubusercontent.com
185.199.111.133               objects.githubusercontent.com
13.107.42.16                  pipelines.actions.githubusercontent.com
185.199.111.133               raw.githubusercontent.com
185.199.111.133               user-images.githubusercontent.com
140.82.114.22                 education.github.com
185.199.111.133               private-user-images.githubusercontent.com


# Update time: 2024-06-30T10:19:52+08:00
# Update url: https://raw.hellogithub.com/hosts
# Star me: https://github.com/521xueweihan/GitHub520
# GitHub520 Host End

修改 hosts 文件

hosts 文件在每个系统的位置不一,详情如下:

Windows 系统:C:\Windows\System32\drivers\etc\hosts

Linux 系统:/etc/hosts

Mac(苹果电脑)系统:/etc/hosts

Android(安卓)系统:/system/etc/hosts

iPhone(iOS)系统:/etc/hosts

修改方法,把第一步的内容复制到文本末尾:

Windows 使用记事本。

Linux、Mac 使用 Root 权限:sudo vi /etc/hosts。

iPhone、iPad 须越狱、Android 必须要 root。

其他方法和教程参考:https://github.com/521xueweihan/GitHub520

历史上的今天
06月
30
    抱歉,历史上的今天作者很懒,什么都没写!
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。