Description
This function lists blocked IP addresses.
Warning:
We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
This function does not accept parameters.
Returns
Return |
Type |
Description |
Possible values |
Example |
ip |
string |
The blocked IP address. |
A valid IP address, or CIDR-formatted range of IP addresses in escaped format. |
10.11.12.13 |
range |
string |
The range of blocked IP addresses. |
Two IP addresses, separated by a hyphen. |
10.11.12.10-10.11.12.13 |
start |
string |
The lowest IP address in the blocked range. |
A valid IP address. |
10.11.12.10 |
end |
string |
The highest IP address in the blocked range. |
A valid IP address. |
10.11.12.13 |
reason |
string |
A reason for failure. Note: This function only returns a reason value if it failed. |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |