Skip to content

Releases: managingwp/cloudflare-wordpress-rules

2.2.0

09 Dec 16:16

Choose a tag to compare

Release 2.2.0

  • improvement: Added color to the usage screen
  • fix Updated CHANGELOG.md and README.md as well as profiles/mwp-rules-v204-beta.md
  • Add multi-zone support for batch operations
  • Add support for multiple -d flags to specify multiple domains
  • Add -zf|--zones-file flag to load zones from a file
  • Add -y|--yes flag to skip confirmation prompts
  • Add zone deduplication to prevent processing same zone twice
  • Add confirmation prompt showing affected zones before execution
  • Add summary output with success/failure counts per zone

New functions in cf-inc.sh:

  • _load_zones_file: Parse zones file with comment support
  • _deduplicate_zones: Remove duplicate zones from array
  • _confirm_zones: Display zones and prompt for confirmation
  • _run_on_zones: Execute command across multiple zones with progress

Commands supporting multi-zone:

  • create-rules, update-rules, list-rules, delete-rules
  • get-settings, set-settings

Files changed:

  • cloudflare-wordpress-rules.sh: Multi-zone CLI and command integration
  • cf-inc.sh: Multi-zone support functions
  • CHANGELOG.md: Release notes for v2.2.0
  • README.md: Multi-zone documentation and examples
  • VERSION: Bump to 2.2.0
  • TODO.md: Mark completed items
  • zones.txt.example: Template for zones file format

2.1.2

02 Dec 16:39

Choose a tag to compare

Release 2.1.2

(af39726) (HEAD -> dev, origin/dev) fix: add domain validation for get-settings and support filtering by specific setting parameter
(2270998) Updated usage for get-settings and set-settings

2.1.1

15 Oct 18:31

Choose a tag to compare

Release 2.1.1

(de29bfb) (HEAD -> dev, origin/dev) chore: Updated README.md to better document .cloudflare file
(f03c426) improvement: Updated authentication system.
(68ac46b) Merged changes that were missing
(32ed657) Added TODO.md
(92b0b14) Small fixes
(d5d41e5) Added mwp-rules-v204-beta.md
(9e6d417) Added asn.txt for building rules
(cf3f595) Updated API credentials system to enable multiple profiles

2.1.0

15 Oct 18:30

Choose a tag to compare

chore: Updated README.md to better document .cloudflare file

2.0.10

27 Jun 15:00

Choose a tag to compare

Release 2.0.10

improvement(spc): Improved test-token command
fix(profiles): Fixed improper naming of profiles
fix(bin): Fixed generate-md.sh locatiing profiles dir

2.0.9

16 May 20:50

Choose a tag to compare

Release 2.0.9

refactor: Brought in cf-inc-refactor.sh for reference
enhance: Added ipblocks-ua template for rule R2
fix: Renamed files
improvement: Created ipblocks-ua-qs method
fix: Updated .gitignore to only skip .json within profiles directory
fix: Errors with tyepset and declare
fix: Profiles with incorrect json
improvement: Created print-profiles command
feat(profile): Added block-event-calendar.json
style: Added .shellcheckrc
enhance: Added ips for blogvault and wp-umbrella, as well as useragents and querystrings for ipblocks-ua-qs
refactor: Shifted old code into cf-inc-old.sh
fix: Fixed shellcheck errors
refactor: Fixed shellcheck errors in cf-in-api.sh increased to v1.5
fix: Increase version number for cf-inc-api.sh properly.
test: Added cf-settings.json
fix: Changed WP Umbrella User Agent to WPUmbrella
refactor: Moved settings based api commands to cf-inc-api.sh
fix: Small adjustments
refactor: Removed settings from cf-inc-old.sh
refactor: Removed create-rules-v1
refactor: Renamed create-rules-profile to create-rules
refactor: Moved rules and profile functions to cf-inc-wp.sh
Added some debugging
Reverted shellcheck code.
chore: Removed unecessary files and updated README.md
docs: Updated cloudflare-waf-wordpress.md
Small fixes
feat: Created update-rule function
Small changes
fix(profile): Added profile data for rule_number and rule_version
improvement: Added code for upgrading the default rule
Added test-perms
chore: Moved ipblocks-ua-qs to it's own folder.
chore: Moving archives around
improvement(rules): Updated default to include Infusionsoft useragent.
fix: Moved generate-readme.sh to bin and updated paths
chore: Moved scripts into /bin
chore: Created default.md for default.json

2.0.8

17 Apr 18:43

Choose a tag to compare

Release 2.0.8

fix(core): Brought back set-settings

2.0.5

30 Mar 23:24

Choose a tag to compare

Release 2.0.5

improvement(inc): Updated cf-inc.sh
improvement(core): Updated inc files formatting
refactor(core): Moved api commands to cf-api-inc.sh
improvement(api): Updated cf-inc-api.sh to v1.1
improvement(api): Updated API file location
improvement(api): Updated cfi-in-api.sh location
improvement(api): Updated cf-inc-api.sh to 1.2
improvement(core): Updated cf-inc.sh to 2.1
improvement(cf-turnstile): Updated create command to handle multiple accounts

2.0.4

05 Feb 17:51

Choose a tag to compare

Release 2.0.4

improvement: Updated Managing WP rules to v201.
fix: Fixed issue with MWP rules .md and json differing.
improvement: Created profiles-archive of older profiles.

2.0.3

04 Feb 19:42

Choose a tag to compare

Release 2.0.3

refactor(spc): Refactored cloudflare-spc command