liuyuqi-dellpc 2 years ago
parent
commit
e608b664c4
2 changed files with 66 additions and 1 deletions
  1. 17 1
      README.md
  2. 49 0
      hosts

+ 17 - 1
README.md

@@ -1,3 +1,19 @@
 # github-host
 
-修改Host,解决github无法访问。
+## 墙介绍
+
+被 qiang 大体有两种:DNS污染,封杀IP。 
+
+DNS污染则无法通过域名直接访问,一种方法就是修改DNS,这个最简单的就是修改hosts。 封杀IP的话,只能通过 “反墙” 来解决。由于政策风险,这里不介绍。 
+
+## github访问
+
+由于众所周知的原因 github 很多时候无法加载,或者样式不显示。我们可以简单修改 Host,解决 github 无法访问。编辑下面文件:
+**C:\Windows\System32\drivers\etc\hosts**。把上述hosts文件内容复制进去即可。
+
+
+## 更新
+
+github 子域名非常多,服务器非常多,墙是动态的。所以需要不断更新 hosts 来解决无法访问问题。
+
+

+ 49 - 0
hosts

@@ -0,0 +1,49 @@
+# github.com
+52.74.223.119 github.com
+13.250.177.223 github.com
+13.229.188.59 github.com
+13.114.40.48 github.com
+140.82.114.3 github.com
+192.30.255.112 github.com
+140.82.114.4 github.com
+140.82.118.3 github.com
+192.30.255.113 github.com
+140.82.118.4 github.com
+140.82.113.3 github.com
+
+# *.githubassets.github.com
+185.199.109.154 github.githubassets.com
+185.199.110.154 github.githubassets.com
+185.199.109.154 github.githubassets.com
+
+# *.githubusercontent.com
+151.101.228.133 raw.githubusercontent.com
+151.101.108.133 gist.githubusercontent.com
+151.101.108.133 cloud.githubusercontent.com
+151.101.108.133 avatars0.githubusercontent.com 
+151.101.108.133 avatars1.githubusercontent.com 
+151.101.108.133 avatars2.githubusercontent.com 
+151.101.108.133 avatars3.githubusercontent.com 
+151.101.108.133 avatars4.githubusercontent.com 
+151.101.108.133 avatars5.githubusercontent.com 
+151.101.108.133 avatars6.githubusercontent.com 
+151.101.108.133 avatars7.githubusercontent.com
+151.101.108.133 avatars8.githubusercontent.com
+151.101.108.133 user-images.githubusercontent.com
+
+#下载
+#codeload.github.com
+52.216.169.189 s3.amazonaws.com
+52.216.106.45 s3.amazonaws.com
+52.216.147.13 s3.amazonaws.com
+219.76.4.4 github-cloud.s3.amazonaws.com
+52.216.171.35 github-production-release-asset-2e65be.s3.amazonaws.com
+52.216.138.171 github-production-release-asset-2e65be.s3.amazonaws.com
+
+#204.232.175.78 pages.github.com
+#204.232.175.94 gist.github.com
+#204.232.175.78 documentcloud.github.com
+#207.97.227.252 nodeload.github.com
+
+#collector.githubapp.com
+192.30.255.116 api.github.com