10.WAF Configuration

10.WAF Configuration

The admintools waf command group lets you view and manage the Web Application Firewall configuration options.

10.1.Get an option

Gets the current value of a WAF configuration option.

wp admintools waf get <key> [--format=<format>]

<key>

The configuration option key.

--format=<format>

The output format. Accepted values: text (default), json.

Examples

Check if the IP allow list is enabled:

wp admintools waf get ipwl

Get a value as JSON:

wp admintools waf get trackfailedlogins --format=json

Sample output

1