Remove IP address from cPanel account's block list

This function unblocks IP addresses from accessing domains on a cPanel account.

Important

When you disable the Web Server role, the system disables this function.

SecurityBasicAuth
Request
query Parameters
ip
required
string

The IP address or IP address range that you wish to unblock.

Examples:
ip=192.168.0.1/16
ip=2001:db8::/32
ip=example.com
ip=192.168.0.1-58
ip=192.168.0.1-192.168.0.58
ip=2001:db8::1-2001:db8::3
ip=192.0.2.0
ip=2001:db8::1
ip=10.
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/BlockIP/remove_ip
Request samples
uapi --output=jsonpretty \
  --user=username \
  BlockIP \
  remove_ip \
  ip='192.168.0.1/16'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "remove_ip",
  • "module": "BlockIP",
  • "result": {
    • "data": [
      • "1.1.1.1"
      ],
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}