8.Site IP Disallow List

8.Site IP Disallow List

The admintools ipdisallow command group lets you manage the Site IP Disallow List (IP blacklist). IP addresses in this list will be blocked from accessing your site entirely.

8.1.Add an IP address

Adds an IP address, range, or CIDR notation to the Site IP Disallow List.

wp admintools ipdisallow 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 ipdisallow add 192.168.1.100

Add a CIDR range with a description:

wp admintools ipdisallow add 10.0.0.0/24 --description="Known bad network"

Sample output

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