Skip to content

Simple python script to import PiHole domain blocking lists into Cloudflare Zero-Trust Gateway configuration

Notifications You must be signed in to change notification settings

MalakaDevs/CFPiHole

This branch is 70 commits ahead of, 1 commit behind andreafortuna/CFPiHole:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

67dd206 · Oct 18, 2024

History

96 Commits
Oct 8, 2023
May 22, 2024
Oct 8, 2023
Oct 18, 2024
Oct 18, 2024
Sep 4, 2024
Sep 30, 2024
Oct 18, 2024
May 22, 2024
May 22, 2024
Jul 31, 2024
Jun 10, 2024
Oct 7, 2023

Repository files navigation

CFPiHole

Simple python script, runnable from GHA, that allows importing PiHole domain blocking lists into Cloudflare Zero-Trust Gateway configuration.

(based on https://github.com/IanDesuyo/CloudflareGatewayAdBlock)

Usage

  1. Create Cloudflare API token, from https://dash.cloudflare.com/profile/api-tokens, with 3 permissions Account.Zero Trust : Edit Account.Account Firewall Access Rules : Edit Account.Access: Apps and Policies : Edit
  2. Get your Account ID from : https://dash.cloudflare.com/?to=/:account/workers
  3. Clone this repository.
  4. Configure action secrets:
    • CF_IDENTIFIER with Account ID
    • CF_API_TOKEN with API Token
  5. Modify config.ini with your preferred blocking lists
  6. Enable action

About

Simple python script to import PiHole domain blocking lists into Cloudflare Zero-Trust Gateway configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%