Use tag overrides to set WordPress rules to Block
Follow the steps below to create a rule that executes a managed ruleset and defines an override for rules with a specific tag.
- Add a rule to a phase entry point ruleset that executes a managed ruleset.
- Configure a tag override that sets a specified action for all rules with a given tag.
The example below uses the Update ruleset operation to perform the two steps in a single PUT request.
- Add a rule to the ruleset of the
http_request_firewall_managedphase that applies the Cloudflare Managed Ruleset. - Override rules with the
wordpresstag to set the action toblock. All other rules use the default action provided by the ruleset issuer.