Releases: phxrampage/phxrampage
Cloudflare Clean IP Scanner V3.1
⚡ Cloudflare Clean IP Scanner (GUI)
A fast, single-file Tkinter desktop app that scans Cloudflare's IPv4 ranges to
find low-latency ("clean") edge IPs. Pure Python standard library — no pip
install needed.
Features
- Single-connection pipeline — one TCP socket is reused for the TCP connect,
TLS handshake, and HTTP request. Accurate per-stage timing and ~3× fewer
connections than the naive approach. - Bounded concurrency — a semaphore caps in-flight work so memory stays flat
even when scanning millions of IPs. STOP is instant. - Lazy IP generation — ranges are streamed, never materialized into a giant
list. - Smooth UI — table refreshes are throttled and batched, so the window stays
responsive at high scan rates. - Live stats: scanned, clean, rate/s, best, avg, ETA.
- Per-IP color coding by score, sortable columns, right-click copy.
- Export results to CSV or JSON.
Run
python3 cf_scanner_gui.pyRequires Python 3.9+ with Tk support. On Debian/Ubuntu, if you hit
ModuleNotFoundError: No module named '_tkinter', install Tk:
sudo apt-get install -y python3-tkSettings
| Setting | Meaning |
|---|---|
| Port | Port to test (443 for HTTPS). |
| Workers | Max concurrent connections. |
| Timeout (s) | Per-connection timeout. |
| TCP trials | How many TCP connects to average for the latency sample. |
| IP step | Sample every Nth host (1 = scan all, higher = faster sample). |
| Show top N | How many of the best results to keep/render. |
| Max score ms | Drop results whose composite score exceeds this. |
| HTTP 200 only | Keep only IPs returning HTTP 200. |
| Require TLS | Keep only IPs that completed a TLS handshake. |
Scoring
score = mean(tcp_ms [, tls_ms] [, http_ms]) over whichever stages are enabled.
Lower is better. Color: green < 60ms, light-green < 150ms, amber < 350ms, red otherwise.
Notes
This tool only measures reachability/latency to Cloudflare edge IPs. Results
depend heavily on your own network's route to each edge; an IP that is "clean"
from one network may be slow from another.
[Changelog] Version 3.1
🚀 Performance & Resource Optimization
Global Configuration Tuning: Extracted magic numbers and runtime variables into a centralized "Performance Tuning" section (MAX_WORKERS, MAX_PENDING_TASKS, QUEUE_POLL_MS, etc.) for easier maintenance and predictability.
Reduced Thread-Pool Strain: Lowered the default worker threshold from 300 to a safer, highly efficient 120. This mitigates extreme CPU context-switching and socket-exhaustion issues on lower-end systems.
Shared SSL Context Pipeline: Rewrote scan_ip() to accept an optional pre-configured ssl_ctx. Instead of spawning and compiling a heavy unverified SSL Context object inside every single thread iteration, threads now share a single global context. This significantly drops CPU overhead and prevents subtle memory leaks during massive scan operations.
Pre-compiled Request Payloads: The raw HTTP byte string sequence (HTTP_REQUEST) has been declared globally instead of being dynamically allocated inside the thread loop on every single IP check.
📊 GUI Performance & Throttling
Dual-Layer UI Throttling: Added a secondary stats timer (STATS_THROTTLE at 0.12s) independent of the main results table layout updates (TABLE_THROTTLE at 0.25s). Text metrics, counters, and progress indications are now strictly rate-limited, preventing Tkinter's text widget mainloop from freezing or lagging during rapid data drops.
🛠️ Code Quality & Robustness
Legacy Compatibility Type Hinting: Replaced native Python 3.10+ union types (dict | None) with backwards-compatible type hints via from typing import Optional and Optional[dict]. This guarantees smooth execution across older Python 3.9 environments.
Enhanced Exception Safety: Streamlined socket closing routines inside the scanning function to ensure file descriptors are reliably freed even during catastrophic socket connection drops or sudden user-initiated thread terminations.
Cloudflare Clean IP Scanner V3
⚡ Cloudflare Clean IP Scanner (GUI)
A fast, single-file Tkinter desktop app that scans Cloudflare's IPv4 ranges to
find low-latency ("clean") edge IPs. Pure Python standard library — no pip
install needed.
Features
- Single-connection pipeline — one TCP socket is reused for the TCP connect,
TLS handshake, and HTTP request. Accurate per-stage timing and ~3× fewer
connections than the naive approach. - Bounded concurrency — a semaphore caps in-flight work so memory stays flat
even when scanning millions of IPs. STOP is instant. - Lazy IP generation — ranges are streamed, never materialized into a giant
list. - Smooth UI — table refreshes are throttled and batched, so the window stays
responsive at high scan rates. - Live stats: scanned, clean, rate/s, best, avg, ETA.
- Per-IP color coding by score, sortable columns, right-click copy.
- Export results to CSV or JSON.
Run
python3 cf_scanner_gui.pyRequires Python 3.9+ with Tk support. On Debian/Ubuntu, if you hit
ModuleNotFoundError: No module named '_tkinter', install Tk:
sudo apt-get install -y python3-tkSettings
| Setting | Meaning |
|---|---|
| Port | Port to test (443 for HTTPS). |
| Workers | Max concurrent connections. |
| Timeout (s) | Per-connection timeout. |
| TCP trials | How many TCP connects to average for the latency sample. |
| IP step | Sample every Nth host (1 = scan all, higher = faster sample). |
| Show top N | How many of the best results to keep/render. |
| Max score ms | Drop results whose composite score exceeds this. |
| HTTP 200 only | Keep only IPs returning HTTP 200. |
| Require TLS | Keep only IPs that completed a TLS handshake. |
Scoring
score = mean(tcp_ms [, tls_ms] [, http_ms]) over whichever stages are enabled.
Lower is better. Color: green < 60ms, light-green < 150ms, amber < 350ms, red otherwise.
Notes
This tool only measures reachability/latency to Cloudflare edge IPs. Results
depend heavily on your own network's route to each edge; an IP that is "clean"
from one network may be slow from another.
Cloudflare Clean IP Scanner .
Hello, I am PHXRAMPAGE
I have created a clean Cloudflare IP scanner program based on Python.
Unlike other scanners, this program has the entire range of Cloudflare IPs.
This program has options such as TLS Handshake test , HTTP respons check , HTTP 200 Only and TLS requierd .
Enjoy!
Cloudflare Clean IP Scanner Android .
Hello, I am PHXRAMPAGE
I have created a clean Cloudflare IP scanner program based on Python.
Unlike other scanners, this program has the entire range of Cloudflare IPs.
This program has options such as TLS Handshake test , HTTP respons check , HTTP 200 Only and TLS requierd .
Enjoy!
its have bugs and problems right now .!
How to run ?
download Pydroid 3 in the Realeases its 3 apk included documents .
install them
then run the code with pydroid 3