Cached mirror of M17 host files, served via GitHub Pages.
A scheduled GitHub Action runs hourly, fetches the upstream host file, and commits it to this repo if the contents changed. GitHub Pages serves the committed copy over a Fastly-backed CDN.
| File | Upstream source |
|---|---|
M17Hosts.txt |
https://hostfiles.refcheck.radio/M17Hosts.txt |
M17Hosts.json |
https://hostfiles.refcheck.radio/M17Hosts.json |
The upstream requires a specific User-Agent for access; the sync action
sends it from the REFCHECK_USER_AGENT repository secret.
Clients fetch from:
https://m17-project.github.io/hostfiles/M17Hosts.txt
https://m17-project.github.io/hostfiles/M17Hosts.json
- Push this repo to
M17-Project/hostfileson GitHub. - In Settings → Pages, set source to Deploy from a branch, branch
main, folder/ (root). - In Settings → Actions → General, set workflow permissions to Read and write.
- In Settings → Secrets and variables → Actions, add a repository
secret named
REFCHECK_USER_AGENTcontaining the User-Agent string provided by refcheck.radio. - Run the Sync hostfiles workflow once manually (Actions tab → Run workflow) to seed the files.
- The workflow runs at
:17past every hour and commits only when the file changes. - GitHub cron can be delayed or skipped under load — expect updates within an hour or two of upstream changes, not to the minute.
- To force a refresh, trigger the workflow manually from the Actions tab.
- To add a new mirrored file, add its filename to the
for f in ...loops in.github/workflows/sync.yml, extend thetrackedandgit addlines, and add a link inindex.html.