{"id":21725334,"url":"https://github.com/jameswoolfenden/terraform-cloudflare-adblock","last_synced_at":"2025-10-13T05:11:10.089Z","repository":{"id":81359297,"uuid":"597493328","full_name":"JamesWoolfenden/terraform-cloudflare-adblock","owner":"JamesWoolfenden","description":"This module helps you set up Adblocking for your devices (PC/Mac Android/Apple) using Cloudflare - similar to a PiHole","archived":false,"fork":false,"pushed_at":"2025-06-15T10:10:37.000Z","size":93,"stargazers_count":26,"open_issues_count":12,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-04T17:12:53.128Z","etag":null,"topics":["adblock","mobile","pihole","security"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JamesWoolfenden.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-02-04T18:10:55.000Z","updated_at":"2025-04-08T13:36:42.000Z","dependencies_parsed_at":"2025-04-12T22:53:37.282Z","dependency_job_id":"a0403136-48d5-43b0-9ceb-2e7bfc067a4d","html_url":"https://github.com/JamesWoolfenden/terraform-cloudflare-adblock","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/JamesWoolfenden/terraform-cloudflare-adblock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesWoolfenden%2Fterraform-cloudflare-adblock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesWoolfenden%2Fterraform-cloudflare-adblock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesWoolfenden%2Fterraform-cloudflare-adblock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesWoolfenden%2Fterraform-cloudflare-adblock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JamesWoolfenden","download_url":"https://codeload.github.com/JamesWoolfenden/terraform-cloudflare-adblock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JamesWoolfenden%2Fterraform-cloudflare-adblock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013696,"owners_count":26085390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adblock","mobile","pihole","security"],"created_at":"2024-11-26T03:17:09.863Z","updated_at":"2025-10-13T05:11:10.084Z","avatar_url":"https://github.com/JamesWoolfenden.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# terraform-cloudflare-adblock\n\n[![Build Status](https://github.com/JamesWoolfenden/terraform-cloudflare-adblock/workflows/Deploy%20and%20Bump/badge.svg?branch=master)](https://github.com/JamesWoolfenden/terraform-cloudflare-adblock)\n[![Latest Release](https://img.shields.io/github/release/JamesWoolfenden/terraform-cloudflare-adblock.svg)](https://github.com/JamesWoolfenden/terraform-cloudflare-adblock/releases/latest)\n[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/JamesWoolfenden/terraform-cloudflare-adblock.svg?label=latest)](https://github.com/JamesWoolfenden/terraform-cloudflare-adblock/releases/latest)\n![Terraform Version](https://img.shields.io/badge/tf-%3E%3D0.14.0-blue.svg)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/JamesWoolfenden/terraform-cloudflare-adblock/cis_aws)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=JamesWoolfenden%2Fterraform-cloudflare-adblock\u0026benchmark=CIS+AWS+V1.2)\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white)](https://github.com/pre-commit/pre-commit)\n[![checkov](https://img.shields.io/badge/checkov-verified-brightgreen)](https://www.checkov.io/)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/jameswoolfenden/terraform-cloudflare-adblock/general)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=JamesWoolfenden%2Fterraform-cloudflare-adblock\u0026benchmark=INFRASTRUCTURE+SECURITY)\n\nTerraform module -\n\nThis module helps you set up a Cloudflare team for use with the Warp client, enabling Malware protection and Adblocking.\n\nYou need to register for an account first and then install the Cloudflare Warp client on the devices you want to protect.\n\n\u003chttps://developers.cloudflare.com/cloudflare-one/setup/\u003e\n\nThis module does everything else, sets up the block lists and has 2 GHA that keep the list updated and deploy it.\n\n---\n\nIt's 100% Open Source and licensed under the [APACHE2](LICENSE).\n\n## Usage\n\n```terraform\nmodule \"adblock\" {\n  source        = \"JamesWoolfenden/adblock/cloudflare\"\n  version       = \"0.0.1\"\n  team_name     = \"\u003cyourteamnamefromcloudflare\u003e\"\n}\n```\n\nTo run a copy of the Github action (Deploy and Bump), you need to add the env vars to your repository secrets:\n\nCLOUDFLARE_API_KEY\n\nCLOUDFLARE_EMAIL\n\nI'm also using an AWS state file, if you use the same then you'll also need to provide adequate AWS creds and env vars.\n\nAdapted from \u003chttps://blog.marcolancini.it/2022/blog-serverless-ad-blocking-with-cloudflare-gateway/\u003e.\n\n\u003c!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_cloudflare\"\u003e\u003c/a\u003e [cloudflare](#requirement\\_cloudflare) | 3.33.1 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_cloudflare\"\u003e\u003c/a\u003e [cloudflare](#provider\\_cloudflare) | 3.33.1 |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [cloudflare_teams_account.woolfenden](https://registry.terraform.io/providers/cloudflare/cloudflare/3.33.1/docs/resources/teams_account) | resource |\n| [cloudflare_teams_list.pihole_domain_lists](https://registry.terraform.io/providers/cloudflare/cloudflare/3.33.1/docs/resources/teams_list) | resource |\n| [cloudflare_teams_rule.block_ads](https://registry.terraform.io/providers/cloudflare/cloudflare/3.33.1/docs/resources/teams_rule) | resource |\n| [cloudflare_teams_rule.block_malware](https://registry.terraform.io/providers/cloudflare/cloudflare/3.33.1/docs/resources/teams_rule) | resource |\n| [cloudflare_accounts.woolfenden](https://registry.terraform.io/providers/cloudflare/cloudflare/3.33.1/docs/data-sources/accounts) | data source |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_logo_path\"\u003e\u003c/a\u003e [logo\\_path](#input\\_logo\\_path) | n/a | `string` | `\"https://pbs.twimg.com/profile_images/1408927094315393028/WkL6f1Qf_400x400.jpg\"` | no |\n| \u003ca name=\"input_team_name\"\u003e\u003c/a\u003e [team\\_name](#input\\_team\\_name) | Your cloudflare team name | `string` | n/a | yes |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_account\"\u003e\u003c/a\u003e [account](#output\\_account) | n/a |\n| \u003ca name=\"output_accounts\"\u003e\u003c/a\u003e [accounts](#output\\_accounts) | n/a |\n| \u003ca name=\"output_malware_rule\"\u003e\u003c/a\u003e [malware\\_rule](#output\\_malware\\_rule) | n/a |\n| \u003ca name=\"output_team\"\u003e\u003c/a\u003e [team](#output\\_team) | n/a |\n\u003c!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --\u003e\n\n## Policy\n\nThis is the policy required to build this project:\n\n\u003c!-- BEGINNING OF PRE-COMMIT-PIKE DOCS HOOK --\u003e\n\u003c!-- END OF PRE-COMMIT-PIKE DOCS HOOK --\u003e\nand  Using \u003chttps://github.com/marco-lancini/utils/tree/main/terraform/cloudflare-gateway-adblocking\u003e\n\n## Keeping the domain list up to date\n\nThe `action-update-list.yml` provides a sample\nGitHub Actions workflow that periodically (monthly) fetches the list upstream and commits it to the repo if it has changed.\n\n![workflow](https://blog.marcolancini.it/images/posts/blog_serverless_adblocking_gh_workflow.png)\n\n## Related Projects\n\nCheck out these related projects.\n\n- [terraform-aws-s3](https://github.com/jameswoolfenden/terraform-aws-s3) - S3 buckets\n\n## Help\n\n**Got a question?**\n\nFile a GitHub [issue](https://github.com/JamesWoolfenden/terraform-cloudflare-adblock/issues).\n\n## Contributing\n\n### Bug Reports \u0026 Feature Requests\n\nPlease use the [issue tracker](https://github.com/JamesWoolfenden/terraform-cloudflare-adblock/issues) to report any bugs or file feature requests.\n\n## Copyrights\n\nCopyright � 2023 James Woolfenden\n\n## License\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nSee [LICENSE](LICENSE) for full details.\n\nLicensed to the Apache Software Foundation (ASF) under one\nor more contributor license agreements. See the NOTICE file\ndistributed with this work for additional information\nregarding copyright ownership. The ASF licenses this file\nto you under the Apache License, Version 2.0 (the\n\"License\"); you may not use this file except in compliance\nwith the License. You may obtain a copy of the License at\n\n\u003chttps://www.apache.org/licenses/LICENSE-2.0\u003e\n\nUnless required by applicable law or agreed to in writing,\nsoftware distributed under the License is distributed on an\n\"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, either express or implied. See the License for the\nspecific language governing permissions and limitations\nunder the License.\n\n### Contributors\n\n[![James Woolfenden][jameswoolfenden_avatar]][jameswoolfenden_homepage]\u003cbr/\u003e[James Woolfenden][jameswoolfenden_homepage]\n\n[jameswoolfenden_homepage]: https://github.com/jameswoolfenden\n[jameswoolfenden_avatar]: https://github.com/jameswoolfenden.png?size=150\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjameswoolfenden%2Fterraform-cloudflare-adblock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjameswoolfenden%2Fterraform-cloudflare-adblock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjameswoolfenden%2Fterraform-cloudflare-adblock/lists"}