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.

Authorizations:
query Parameters
ip
required
string

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=ip-1=192.168.0.1&ip-2=192.168.0.1&ip-3=192.168.0.1
ip=ip=2001:db8::1&ip-2=2002:db8::1&ip-3=2003:db8::1
A single IPv4 address.
ip=192.168.0.1
ip=ip=2001:db8::1

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  flush_cphulk_login_history_for_ips \
  ip='192.168.0.1'

Response samples

Content type
application/json
{
  • "data": {
    • "iptable_bans_removed": 1,
    • "records_removed": 1
    },
  • "metadata": {
    • "command": "flush_cphulk_login_history_for_ips",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}