8000 GitHub - jvxiao/speed-github: 一键解决github在国内网页加载和下载速度慢的问题
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

一键解决github在国内网页加载和下载速度慢的问题

License

Notifications You must be signed in to change notification settings

jvxiao/speed-github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

speed-github

A tool to solve the problem of slow loading and downloading speed of GitHub in the country.

Reason for slow speed

CDN, Content Distribute Network, can be literally translated into content distribution network. CDN solves the problem of how to quickly and reliably deliver data from the source site to users.

When users obtain data, they do not need to obtain it directly from the source site. Through CDN's distribution of data, users can obtain data from a better server, thereby achieving fast access and reducing the load pressure on the source site.

For some reasons, Github is restricted in China. The main method isDNS pollution, which is to inject the wrong IP address of Github into the DNS server, thereby affecting user access.

Solution

Resolve the GitHub-related domain name into the correct IP address, and then fill it into the local host file. When users visit GitHub, they will no longer resolve the IP address to the DNS server, but use the correct local IP address, which will not be affected by DNS pollution.

Usage

Tip: run with admin permission, beacase the /etc/hosts file need to be modified.

# Download this repo to local
git clone https://github.com/jvxiao/speed-github.git
cd speed-github

# install dependencies
pip install -r requirements.txt

# run
python ./src/main.py

github-hosts

After executing the above command, your hosts file will add the following content,and then automatically refresh the local DNS.

Or you can choose to copy the following content into your hosts file, and manually refresh local DNS with ipconfig /flushdns

# Gennerate by Speed-github
185.199.108.154                github.githubassets.com
140.82.114.21                  central.github.com
185.199.108.133                desktop.githubusercontent.com
185.199.108.133                camo.githubusercontent.com
185.199.108.133                github.map.fastly.net
146.75.93.194                  github.global.ssl.fastly.net
140.82.114.3                   gist.github.com
185.199.108.153                github.io
140.82.114.3                   github.com
140.82.113.5                   api.github.com
185.199.110.133                raw.githubusercontent.com
185.199.108.133                user-images.githubusercontent.com
185.199.111.133                favicons.githubusercontent.com
185.199.108.133                avatars5.githubusercontent.com
185.199.108.133                avatars4.githubusercontent.com
185.199.108.133                avatars3.githubusercontent.com
185.199.108.133                avatars2.githubusercontent.com
185.199.108.133                avatars1.githubusercontent.com
185.199.109.133                avatars0.githubusercontent.com
185.199.110.133                avatars.githubusercontent.com
140.82.112.10                  codeload.github.com
52.217.86.108                  github-cloud.s3.amazonaws.com
3.5.28.246                     github-com.s3.amazonaws.com
3.5.17.120                     github-production-release-asset-2e65be.s3.amazonaws.com
52.217.141.145                 github-production-user-asset-6210df.s3.amazonaws.com
3.5.25.201                     github-production-repository-file-5c1aeb.s3.amazonaws.com
185.199.108.153                githubstatus.com
140.82.113.18                  github.community
185.199.108.133                media.githubusercontent.com


# Last modified 2025-05-07 18:21:46
# Star repo at https://github.com/jvxiao/speed-github

About

一键解决github在国内网页加载和下载速度慢的问题

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0