BlockIP
Block IP
Add IP address to cPanel account's block list
This function blocks IP addresses from accessing the domains on a cPanel account.
Important
When you disable the Web Server role, the system disables this function.
get/BlockIP/add_ip
Query parameters
ipstring required
The IP address or IP address range that you wish to block.
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "add_ip",
"module": "BlockIP",
"result": {
"data": [
"1.1.1.1"
],
"metadata": {
"transformed": 1
},
"status": 1
}
}