Speed up GitHub page loads and image display in regions with slow or unreliable DNS.
Automate hourly updates of IP mappings using SwitchHosts without manual intervention.
Subscribe to the mappings URL in AdGuard to filter DNS requests for faster GitHub access.
Apply a one-time hosts file update via shell command on Linux or macOS servers.
GitHub520 is a project that speeds up access to GitHub by modifying your computer's "hosts" file, a local text file that maps website names to IP addresses. When GitHub loads slowly or images in GitHub projects fail to display, it is often because DNS resolution (the process of converting a website name like github.com into a numeric address) is taking a roundabout or blocked path. By adding a curated list of direct IP address mappings to your hosts file, this project bypasses the slow DNS lookup and connects you straight to GitHub's servers. The README is written primarily in Chinese and is aimed at users in regions where GitHub access is slow or unreliable. No software installation is needed, you copy a block of pre-tested IP-to-hostname mappings into your hosts file, which takes about five minutes. The project provides a URL that serves an always-updated version of these mappings, so you can refresh them regularly. For those who prefer automation, the README shows how to use a tool called SwitchHosts to subscribe to the mappings URL and auto-update hourly, as well as single-line shell commands for Linux and macOS to fetch and apply updates via a scheduled job. AdGuard (a DNS filtering app) users can also subscribe to the same URL as a custom DNS blocklist. The project is maintained using Python to find and verify the best IP addresses for each GitHub domain. It is relevant for anyone who finds GitHub slow to load and wants a no-cost, no-software fix.
Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.