latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

Greylisting
Spam Protection (Greylisting)

Remove IP address from Greylisting trusted hosts

This function deletes an IP address from the Greylisting Trusted Hosts list.

get/delete_cpgreylist_trusted_host

Query parameters

ipstring required
Example:192.168.0.1

The record's IP address, or a range of IP addresses.

Note:

To add multiple IP addresses, increment the parameter name (for example, ip-1, ip-2, ip-3).

Response

HTTP Request was successful.

Example response

{
  "data": {
    "ips_failed": {
      "5.5": "Invalid IP address or range: “5.5”"
    },
    "ips_removed": [
      "192.168.0.1",
      "2001:db8::1"
    ]
  },
  "metadata": {
    "command": "delete_cpgreylist_trusted_host",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}