Remove login security IP address block

This function removes specific login history entries from the cPHulk database. Use this function to unblock one or more IP addresses.

SecurityBasicAuth
Request
query Parameters
required
Array of strings or strings

The record's IP address.

Note:

To unblock multiple IP addresses, increment the parameter name (for example, to unblock three IP addresses, use the ip-1, ip-2, and ip-3 parameters).

Examples:
Multiple IPv4 addresses.
ip=192.168.0.1&ip=192.168.0.2&ip=192.168.0.3
ip=2001:db8::1&ip=2002:db8::1&ip=2003:db8::1
A single IPv4 address.
ip=192.168.0.1
ip=2001:db8::1
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/flush_cphulk_login_history_for_ips
Request samples
whmapi1 --output=jsonpretty \
  flush_cphulk_login_history_for_ips \
  ip='192.168.0.1'
Response samples
application/json
{
  • "data": {
    • "iptable_bans_removed": 1,
    • "records_removed": 1
    },
  • "metadata": {
    • "command": "flush_cphulk_login_history_for_ips",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}