Adding and deleting rules from an Amazon WAF Classic rule group
Warning
Amazon WAF Classic support will end on September 30, 2025.
Note
This is Amazon WAF Classic documentation. You should only use this version if you created Amazon WAF resources, like rules and web ACLs, in Amazon WAF prior to November 2019, and you have not migrated them over to the latest version yet. To migrate your web ACLs, see Migrating your Amazon WAF Classic resources to Amazon WAF.
For the latest version of Amazon WAF, see Amazon WAF.
You can add or delete rules in an Amazon WAF Classic rule group.
Deleting a rule from the rule group does not delete the rule itself. It only removes the rule from the rule group.
To add or delete rules in a rule group (console)
-
Sign in to the Amazon Web Services Management Console using the Amazon Firewall Manager administrator account that you set up in the prerequisites, and then open the Firewall Manager console at https://console.aws.amazon.com/wafv2/fms
. Note
For information about setting up a Firewall Manager administrator account, see Creating an Amazon Firewall Manager default administrator account.
-
In the navigation pane, choose Switch to Amazon WAF Classic.
-
In the Amazon WAF Classic navigation pane, choose Rule groups.
-
Choose the rule group that you want to edit.
Note
If you don't see the rule group that you want to edit, make sure you have the correct Region selected. For rule groups used to protect Amazon CloudFront distributions, use the Global (CloudFront) setting.
-
Choose Edit rule group.
-
To add rules, perform the following steps:
-
Select a rule, and then choose Add rule to rule group. Choose whether to allow, block, or count requests that match the rule's conditions. For more information on the choices, see How Amazon WAF Classic works. Repeat to add more rules to the rule group.
Note
You cannot add rate-based rules to rule group.
-
Choose Update.
-
-
To delete rules, perform the following steps:
-
Choose the X next to the rule to delete. Repeat to delete more rules from the rule group.
-
Choose Update.
-