{"id":26869427,"url":"https://github.com/notmike101/wordfence-cloudflare-firewall-sync","last_synced_at":"2026-05-03T16:31:48.269Z","repository":{"id":285295066,"uuid":"957422918","full_name":"notmike101/wordfence-cloudflare-firewall-sync","owner":"notmike101","description":"Sync Wordfence IP blocks to Cloudflare's WAF to block threats at the DNS level — with support for cron, retry logic, and deduplicated sync.","archived":false,"fork":false,"pushed_at":"2025-03-30T21:46:43.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T22:20:03.599Z","etag":null,"topics":["cloudflare","wordfence","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/notmike101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-30T10:37:43.000Z","updated_at":"2025-03-30T21:46:46.000Z","dependencies_parsed_at":"2025-03-30T22:20:18.761Z","dependency_job_id":"9a9a9f77-8b78-475b-b627-9f5211ddf125","html_url":"https://github.com/notmike101/wordfence-cloudflare-firewall-sync","commit_stats":null,"previous_names":["notmike101/wordfence-cloudflare-firewall-sync"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/notmike101/wordfence-cloudflare-firewall-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notmike101%2Fwordfence-cloudflare-firewall-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notmike101%2Fwordfence-cloudflare-firewall-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notmike101%2Fwordfence-cloudflare-firewall-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notmike101%2Fwordfence-cloudflare-firewall-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/notmike101","download_url":"https://codeload.github.com/notmike101/wordfence-cloudflare-firewall-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notmike101%2Fwordfence-cloudflare-firewall-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32577119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cloudflare","wordfence","wordpress","wordpress-plugin"],"created_at":"2025-03-31T06:16:54.243Z","updated_at":"2026-05-03T16:31:48.252Z","avatar_url":"https://github.com/notmike101.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wordfence Cloudflare Firewall Sync\n\nSyncs Wordfence IP blocks to Cloudflare's WAF for high-performance, DNS-level security.\n\n![Version](https://img.shields.io/badge/version-1.0.0-blue)\n![Built for WordPress](https://img.shields.io/badge/WordPress-6.0+-blueviolet)\n![License](https://img.shields.io/badge/license-GPLv2-blue)\n\n---\n\n## Features\n\n- Syncs IP blocks from Wordfence to Cloudflare Firewall Rules\n- DNS-level blocking to reduce server resource usage\n- Automatic cron-based syncing\n- Manual \"Sync Now\" + \"Cleanup Now\" buttons\n- Cloudflare rule reconciliation (detect drift)\n- Expired block cleanup and retry logic\n- Built-in logging and admin UI\n- Multisite-compatible (per-site sync)\n\n---\n\n## How It Works\n\n- On sync, the plugin reads Wordfence's current block list\n- It pushes valid IPs to Cloudflare's WAF using their API\n- Expired or removed blocks are cleaned up from Cloudflare\n- A database table tracks block history, sync logs, and retry attempts\n\n---\n\n## Installation\n\n1. Clone/download this repo:\n   ```bash\n   git clone https://github.com/yourname/wordfence-cloudflare-firewall-sync.git\n   ```\n\n2. Copy the `src/` folder into:\n   ```\n   /wp-content/plugins/wordfence-cloudflare-firewall-sync/\n   ```\n\n3. Activate the plugin from the WordPress admin panel\n\n4. Go to:\n   ```\n   Settings → Firewall Sync\n   ```\n\n5. Enter your Cloudflare API Token and Zone ID\n\n---\n\n## Cloudflare Token Permissions\n\nThis plugin requires a restricted Cloudflare API token with:\n\n- `Zone → Firewall Services: Edit`\n- `Zone → Zone Settings: Read`\n- `Zone → Zone: Read`\n\nTo generate a token:\n\n1. Visit: [https://dash.cloudflare.com/profile/api-tokens](https://dash.cloudflare.com/profile/api-tokens)\n2. Click “Create Token”\n3. Set the permissions above for your domain\n4. Copy and paste the token into the plugin settings\n\nDo not share this token — treat it like a password.\n\n\n## GitHub Releases\n\nYou can also install the plugin from the `.zip` file attached to each [GitHub Release](https://github.com/yourname/wordfence-cloudflare-firewall-sync/releases).\n\n---\n\n## Dev Features\n\n- Admin panel with sync status and logs\n- CLI-ready internal architecture\n- GitHub Actions for automatic zipping \u0026 releases\n- Makefile for clean versioned tagging\n- VS Code Dev Container\n\n---\n\n## Roadmap\n\n- [ ] Rule reconciliation fixes\n- [ ] Visual sync/block stats\n- [ ] Cloudflare error alerting\n- [ ] Translation contributions\n\n---\n\n## Contributions\n\nPRs welcome. Please ensure coding style follows PSR-12 with the exception of following 1TBS.\n\nTo test:\n\n```bash\nmake format\nmake pot\n```\n\n---\n\n## License\n\nGPLv2 — same as WordPress.\n\n---\n\n## Disclaimer\n\nThis plugin is not officially affiliated with Wordfence or Cloudflare. Use at your own risk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotmike101%2Fwordfence-cloudflare-firewall-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotmike101%2Fwordfence-cloudflare-firewall-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotmike101%2Fwordfence-cloudflare-firewall-sync/lists"}