11.3.Modify a rule

11.3.Modify a rule

Modifies an existing WAF Deny List rule. Only the fields you specify will be changed; all others remain unchanged.

wp admintools wafdeny modify <id> [--option=<option>] [--view=<view>]    [--task=<task>] [--query=<query>] [--query-type=<query_type>]    [--query-content=<query_content>] [--verb=<verb>]    [--application=<application>] [--enabled=<enabled>]
id

The numeric ID of the rule to modify (required).

All other options are the same as the add command.

Examples

Change the HTTP verb of rule #1:

wp admintools wafdeny modify 1 --verb=GET

Disable rule #1:

wp admintools wafdeny modify 1 --enabled=0

Sample output

Success: WAF Deny rule #1 updated.