WHM API.
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/
https://{host}:{port}/json-api/
The record's IP address.
Note:
To delete multiple IP addresses, increment the parameter name. For example, ip-1, ip-2, ip-3.
Multiple IP addresses.
Single IP address.
- string
- string
- string
- string
- string
- string
The cPHulk list's name.
whiteblack
Whether to skip checking if cPHulk runs on the server.
1- Don’t check cPHulk’s status.0- Check cPHulk’s status.
Note:
If cPHulk is disabled and you check its status, the function returns the following message: cPHulk is disabled on the server.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/delete_cphulk_record
- A server running WHM.
https://whm-server.tld:2087/json-api/delete_cphulk_record
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.docs.cpanel.net/_mock/specifications/whm.openapi/delete_cphulk_record?ip=192.168.0.1&list_name=white&skip_enabled_check=1'{ "data": { "ips_failed": { … }, "ips_removed": [ … ], "list_name": "white", "requester_ip": "192.168.0.1", "requester_ip_is_whitelisted": 1 }, "metadata": { "command": "delete_cphulk_record", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/flush_cphulk_login_history
- A server running WHM.
https://whm-server.tld:2087/json-api/flush_cphulk_login_history
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/flush_cphulk_login_history{ "data": { "records_removed": 10 }, "metadata": { "command": "flush_cphulk_login_history", "reason": "OK", "result": 1, "version": 1 } }
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).
Multiple IPv4 addresses.
A single IPv4 address.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/flush_cphulk_login_history_for_ips
- A server running WHM.
https://whm-server.tld:2087/json-api/flush_cphulk_login_history_for_ips
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.docs.cpanel.net/_mock/specifications/whm.openapi/flush_cphulk_login_history_for_ips?ip=192.168.0.1'{ "data": { "iptable_bans_removed": 1, "records_removed": 1 }, "metadata": { "command": "flush_cphulk_login_history_for_ips", "reason": "OK", "result": 1, "version": 1 } }