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.
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.
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"
Success: IP address '192.168.1.100' added to the Disallow List with ID 1.