Automated Cloudflare IP and domain intelligence updates.
python3 check_domains.py --domains domain.txt --allowlist ip.txtOptional flags:
--accepted-only— print only accepted domains.--json— output results as JSON.--workers N— number of concurrent worker threads for domain resolution (default:20).--accepted-output PATH— write accepted domains to a separate file (does not modifydomain.txt).
ip.txt: current merged Cloudflare IPv4 CIDRs used as allowlist input.manual_ipv4.txt: operator-pinned IPv4 addresses/CIDRs always retained inip.txtby automation.domain.txt: curated input domain list (read-only by automation).checked_domains.txt: generated accepted domains after checking againstip.txt.data/ip/current/*: official, ASN-derived, merged, added, removed, and summary outputs.data/ip/snapshots/<timestamp>/*: timestamped snapshots of merged IP ranges.data/domains/current/*: best-effort discovered domain outputs and summaries.data/domains/snapshots/<timestamp>/*: timestamped domain snapshots.
- Official Cloudflare IP ranges:
https://api.cloudflare.com/client/v4/ips - ASN-derived prefixes via BGPView for configured Cloudflare ASNs.
- Best-effort domain discovery via curated input + public certificate APIs (
crt.sh,certspotter).
GitHub Actions workflow:
.github/workflows/update-cloudflare-data.yml- Runs on schedule (daily + weekly) and on manual dispatch.
- Regenerates IP/domain artifacts.
- Builds checker input from both curated (
domain.txt) and discovered (data/domains/current/discovered_domains.txt) domains. - Preserves previous
checked_domains.txtwhen a run temporarily resolves zero accepted domains. - Publishes
checked_domains.txtto thechecked-domains-latestGitHub release tag on every run. - Uses
summary.mdas the release notes body. - Opens/updates a PR only when changes are detected.
- No public API can provide a complete list of all domains behind Cloudflare CDN.
- Domain discovery outputs are best effort and non-exhaustive.
- ASN-derived data is cross-checked with official Cloudflare ranges and may include mismatches that require review.