mrrfv

    mrrfv/cloudflare-gateway-pihole-scripts

    Use Cloudflare Gateway DNS/VPN to block ads, malware and tracking domains - free alternative to NextDNS, Pi-hole and AdGuard

    backend
    security
    networking
    adblock
    adblocking
    anti-tracking
    antimalware
    cloudflare
    JavaScript
    MIT
    845 stars
    1.6K forks
    845 GitHub watchers
    Updated Nov 2, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    The project lists 11 contributors on GitHub.

    Gained 27% fewer stars in the last 90 days than in the 90 days before.

    Use Cases & Benefits

    • Provides scripts to use Cloudflare Gateway as a serverless alternative to Pi-hole for blocking ads, malware, and trackers via DNS filtering.
    • Eliminates the need for maintaining hardware like Raspberry Pi by leveraging Cloudflare's cloud infrastructure and API automation.
    • Use for setting up network-wide ad and tracker blocking without dedicated hardware or complex local server setups.
    • Use for automating blocklist updates and firewall rule management via GitHub Actions for continuous DNS filtering.
    • Use for integrating SNI-based filtering to prevent DNS bypass attacks and enhance security on encrypted traffic.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present

    Watch-outs

    • No GitHub releases; pin a commit or tag instead of a release.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Cloudflare Gateway allows you to create custom rules to filter HTTP, DNS, and network traffic based on your firewall policies. This is a collection of scripts that can be used to get a similar experience as if you were using Pi-hole, but with Cloudflare Gateway - so no servers to maintain or need to buy a Raspberry Pi!

    Excerpt from the mrrfv/cloudflare-gateway-pihole-scripts README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    1.6K+12

    Open issues

    27+5

    Compared with peers in Backend

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    mrrfv/cloudflare-gateway-pihole-scripts compared with Backend repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    anthropics/skills187.8K+2.9K15—
    DuarteSantos8/openGym19.7K+2.4K602 days ago
    shiyu-coder/Kronos47.0K+2.3K16—
    NationalSecurityAgency/ghidra98.2K+2.3K6414 days ago
    microsoft/VibeVoice56.0K+1.1K29—
    mrrfv/cloudflare-gateway-pihole-scripts845—12—
    Category median56.0K+2.3K29—

    Discover Repositories

    Search across tracked repositories by name or description