Voltar ao ranking

maxiaof/github-hosts

Java

通过修改Hosts解决国内Github经常抽风访问不到,每日更新

hostsgithub
Crescimento de estrelas
Estrelas
2.8k
Forks
203
Crescimento semanal
Issues
0
2.8k2.8k2.8k
18 de jul.19 de jul.19 de jul.20 de jul.
ArtefatosMavengit clone https://github.com/maxiaof/github-hosts.git
README

GitHub-Hosts

一、介绍

通过修改Hosts解决国内Github经常抽风访问不到


二、使用方法

2.1 复制下面的内容

#Github Hosts Start
#Update Time: 2026-07-20
#Project Address: https://github.com/maxiaof/github-hosts
#Update URL: https://raw.githubusercontent.com/maxiaof/github-hosts/master/hosts
140.82.114.26 alive.github.com
140.82.113.25 live.github.com
185.199.108.215 github.githubassets.com
140.82.114.21 central.github.com
185.199.109.133 desktop.githubusercontent.com
185.199.111.133 camo.githubusercontent.com
185.199.108.133 github.map.fastly.net
151.101.1.194 github.global.ssl.fastly.net
140.82.113.3 gist.github.com
185.199.111.153 github.io
140.82.114.4 github.com
192.0.66.2 github.blog
140.82.114.5 api.github.com
185.199.109.133 raw.githubusercontent.com
185.199.109.133 user-images.githubusercontent.com
185.199.108.133 favicons.githubusercontent.com
185.199.108.133 avatars5.githubusercontent.com
185.199.108.133 avatars4.githubusercontent.com
185.199.110.133 avatars3.githubusercontent.com
185.199.110.133 avatars2.githubusercontent.com
185.199.108.133 avatars1.githubusercontent.com
185.199.111.133 avatars0.githubusercontent.com
185.199.110.133 avatars.githubusercontent.com
140.82.112.10 codeload.github.com
16.15.214.167 github-cloud.s3.amazonaws.com
52.217.135.81 github-com.s3.amazonaws.com
16.15.255.183 github-production-release-asset-2e65be.s3.amazonaws.com
52.217.82.180 github-production-user-asset-6210df.s3.amazonaws.com
16.15.213.80 github-production-repository-file-5c1aeb.s3.amazonaws.com
185.199.110.153 githubstatus.com
140.82.112.18 github.community
52.224.38.193 github.dev
140.82.113.21 collector.github.com
13.107.42.16 pipelines.actions.githubusercontent.com
185.199.110.133 media.githubusercontent.com
185.199.108.133 cloud.githubusercontent.com
185.199.108.133 objects.githubusercontent.com
#Github Hosts End

最后更新时间:2026-07-20

2.2 修改 hosts 文件

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

  • Windows 系统:C:\Windows\System32\drivers\etc\hosts
  • Mac(苹果电脑)系统:/etc/hosts
  • Linux 系统:/etc/hosts

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

  1. Windows 使用记事本。
  2. Linux、Mac 使用 Root 权限:sudo vi /etc/hosts

2.3 激活生效

大部分情况下是直接生效,如未生效可尝试下面的办法,刷新 DNS:

  1. Windows:在 CMD 窗口输入:ipconfig /flushdns
  2. Mac 命令:sudo killall -HUP mDNSResponder
  3. Linux 命令:sudo nscd restart

Tips: 如以上刷新不好使,请重启尝试 Powered by DartNode

Repositórios relacionados
StevenBlack/hosts

🔒 Consolidating and extending hosts files from several well-curated sources. Optionally pick extensions for porn, social media, and other categories.

PythonPyPIMIT Licensepythonunified-hosts
30.7k2.4k
521xueweihan/GitHub520

:kissing_heart: 让你“爱”上 GitHub,解决访问时图裂、加载慢的问题。(无需安装)

PythonPyPIdnsgithub
29.2k2.7k
oldj/SwitchHosts

Switch hosts quickly!

Rustcrates.ioApache License 2.0electronhosts
switchhosts.app
27k2.7k
hagezi/dns-blocklists

DNS-Blocklists: For a better internet - keep the internet clean!

TextGNU General Public License v3.0dnsads
24.6k753
googlehosts/hosts

镜像:https://scaffrey.coding.net/p/hosts/git / https://git.qvq.network/googlehosts/hosts

Otherhosts
20.6k9.9k
avwo/whistle

HTTP, HTTP2, HTTPS, Websocket debugging proxy

JavaScriptnpmMIT Licensefiddlercharles
wproxy.org
15.6k1.2k
AdAway/AdAway

AdAway is a free and open source ad blocker for Android.

CGNU General Public License v3.0androidad-blocker
adaway.org
9.3k695
217heidai/adblockfilters

去广告合并规则,每8个小时更新一次。

PythonPyPIGNU General Public License v3.0adblockfiters
7.3k416
ineo6/hosts

GitHub最新hosts。解决GitHub图片无法显示,加速GitHub网页浏览。

TypeScriptnpmMIT Licensegithubhosts
ineo6.github.io/hosts/
5.3k457
lennylxx/ipv6-hosts

Fork of https://code.google.com/archive/p/ipv6-hosts/, focusing on automation

PythonPyPIMIT Licensehostsipv6
4.5k1k
txthinking/google-hosts

Google hosts generator

ShellMIT Licensegooglehosts
txthinking.com
3.4k1.2k
DandelionSprout/adfilt

The place where I, DandelionSprout, store my web filter lists for countless topics, including my Nordic adblock list. As simple as that, really.

Adblock Filter ListOtherad-blockerfilterlist
2.2k182