badafans/better-cloudflare-ip

查找适合自己当前网络环境的优选cloudflare anycast IP

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 13 minutes ago
Added to GitGenius on September 20th, 2026
Created on July 27th, 2020
Open Issues & Pull Requests: 5 (+0)
GitHub issues: Enabled
Number of forks: 902
Total Stargazers: 3,457 (+0)
Total Subscribers: 30 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 1
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 19 days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

better-cloudflare-ip is a command-line tool that identifies optimal Cloudflare Anycast IP addresses suited to a user's current network environment.

The tool addresses the problem of selecting the best-performing Cloudflare IP from a large pool by testing candidates against latency and throughput metrics. It works by randomly generating IP addresses from configurable subnets, performing concurrent TCP handshakes with HTTP GET requests to measure round-trip time across three samples, then conducting serial speed tests to identify which IP first reaches a configured bandwidth threshold. The tool verifies responses using Cloudflare's CF-RAY header to ensure legitimate connections.

The project suits users who need to optimize Cloudflare connectivity for their specific network conditions and are willing to run local testing rather than rely on generic recommendations. It supports both IPv4 and IPv6, with separate testing modes for TLS and non-TLS connections. Users can customize the IP address pools by editing local configuration files in CIDR notation, allowing adaptation to specific network scenarios. The tool operates entirely locally without requiring users to upload data to external servers; it only downloads IP pool updates from a server when explicitly requested.

The project maintains an active development cycle with regular updates to its IP address pools. The codebase shows ongoing refinement of the testing methodology and user interface. The tool includes a menu-driven interface offering multiple testing modes and cache management options, suggesting attention to usability alongside core functionality.