ddgth/cf2dns
筛选出优质的Cloudflare IP,并使用域名服务商提供的API解析到不同线路以达到网站加速的效果,新增假墙防御方式 observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2195
- days_rel: n/a
- days_push: 604
- n_releases_24m: 0
Adoption not part of the score
5201 stars · 1915 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Python tool that selects high-quality Cloudflare IPs and updates DNS records via DNS provider APIs (DNSPod, Aliyun DNS, Huawei Cloud DNS) to route different lines for website acceleration. It supports IPv4/IPv6, Docker and GitHub Actions deployment, and includes protection against fake GFW wall attacks.
Use cases
- optimize Cloudflare CDN IPs for my website
- automatically update DNS A records with best Cloudflare IPs
- speed up a site hosted behind Cloudflare in China
- set up scheduled Cloudflare IP selection with cron
- protect my site from fake wall (假墙) attacks
- run Cloudflare IP optimization via GitHub Actions or Docker
When to choose
- you use Cloudflare as CDN with DNSPod or Aliyun DNS and want automatic line-based IP optimization
- you need scheduled updates of优选 Cloudflare IPs for IPv4 or IPv6
- you want a small self-hosted script deployable via cron, Docker, or GitHub Actions
When to avoid
- you don't use Cloudflare or a supported DNS provider (DNSPod, Aliyun, Huawei Cloud)
- you need a fully open-source IP selection algorithm - the IP filtering itself is a closed API
- you are uncomfortable with the risk of Cloudflare account bans for IP selection usage
Facets
cli-tool · maturity active
networking workflow-automation scheduling networking web-development self-hosted censorship-circumvention python cli cloudflare dns-management cdn-optimization ip-selection dnspod aliyun-dns github-actions ipv6 linux docker
1 source
- readme: https://github.com/ddgth/cf2dns · fetched 2026-08-28 · c658eefad9dd
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| ddgth/cf2dns | main | 32 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem