7.Administrator Exclusive Allow List

7.Administrator Exclusive Allow List

The admintools ipallow command group lets you manage the Administrator Exclusive Allow List (IP whitelist). Only IP addresses in this list will be allowed to access the WordPress administrator backend when this feature is enabled in the WAF configuration.

7.1.Add an IP address

Adds an IP address, range, or CIDR notation to the Administrator Exclusive Allow List.

wp admintools ipallow add <ip> [--description=<description>]

<ip>

The IP address, range, or CIDR notation to add.

--description=<description>

An optional description for this entry.

Examples

Add a single IP address:

wp admintools ipallow add 192.168.1.100

Add a CIDR range with a description:

wp admintools ipallow add 10.0.0.0/24 --description="Office network"

Sample output

Success: IP address '192.168.1.100' added to the Allow List with ID 1.