The admintools autobanhistory command group lets you view and manage the automatic IP blocking history log.
Lists all entries in the automatic IP blocking history.
wp admintools autobanhistory list [--format=<format>] [--ip=<ip>] [--limit=<limit>]
--format=<format>The output format. Accepted values: table (default), json, csv, yaml, count.
--ip=<ip>Filter results by IP address. Performs a partial match, so you can use a subnet prefix to find all history entries for IPs in a range, e.g. 192.168.
--limit=<limit>Limit the number of results returned. By default, all results are returned.
List all history entries:
wp admintools autobanhistory list
Get the results as JSON:
wp admintools autobanhistory list --format=json
Filter by IP address:
wp admintools autobanhistory list --ip=192.168
+----+----------------+--------+---------------------+| id | ip | reason | until |+----+----------------+--------+---------------------+| 12 | 203.0.113.42 | other | 2026-02-10 15:30:00 || 11 | 198.51.100.7 | other | 2026-02-09 12:00:00 || 8 | 203.0.113.42 | other | 2026-02-08 09:15:00 |+----+----------------+--------+---------------------+