本文へスキップ

Cloudflare Gateway Pi-hole Scripts

活発
mrrfv/cloudflare-gateway-pihole-scripts

Cloudflare Gateway の DNS で Pi-hole のような広告・マルウェア・トラッカーのブロックを実現。サーバーや Raspberry Pi の管理は不要です。

GitHub で見る
スター
849
フォーク
1549
ウォッチ
849
未解決の Issue
21

この紹介文は現在英語版のみです。

Overview

Cloudflare Gateway Pi-hole Scripts (CGPS) give you a Pi-hole-like experience using Cloudflare Gateway: Gateway’s custom DNS rules block ads, malware and tracking domains, so there is no server to maintain and no Raspberry Pi to buy.

The scripts

  • cf_list_create.js — turns a blocklist.txt of domains into lists in Cloudflare Gateway
  • cf_gateway_rule_create.js — creates a Gateway rule that blocks traffic matching those lists
  • cf_list_delete.js and cf_gateway_rule_delete.js — remove everything CGPS created, useful before a fresh run

Keeping blocklists up to date

Run the scripts locally, or schedule them with GitHub Actions in a private repository so your filters update automatically. The workflow downloads the recommended blocklists and allowlist by default, reads your Cloudflare credentials from Actions secrets, and can ping a monitoring URL after each successful update. The README recommends local runs where possible.

共通のカテゴリとタグで順位付けした、似たオープンソースプロジェクトです。

すべてのネットワークプロジェクト →