List a server's allowed and blocked addresses
/v1/servers/{serverId}/security/addresses Lists the addresses, ranges and countries on the server's lists: allow (never blocked), block (refused by every site on the server, whatever a site's own firewall allows) and challenge (a CAPTCHA first). Imunify360 adds some itself (automatic), most for a day. The server keeps at most 1000; the list is empty while Imunify360 isn't on.
The panel's own limit applies too: 120 looks a minute per person, shared with the panel (429 rate_limited).
Scopes
The token needs this scope. Without it, the request is refused with insufficient_scope (see Scopes).
-
servers:read - View servers. See servers, their graphs, snapshots, logs and security (Imunify360).
Path parameters
| Field | Type and description |
|---|---|
serverId Required | string The server's id. |
Query parameters
| Field | Type and description |
|---|---|
limit | integer 1 to 100 Default How many items to return, from 1 to 100. Default 25. |
cursor | string 1 to 1,024 characters The |
sort | string Default The field to sort by. Each list names the fields it can be sorted by. One of: |
order | string Default
One of: |
kind | string Only this list: One of: |
automatic | string
One of: |
Example request
curl "https://api.rabbitflare.com/v1/servers/3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d/security/addresses?kind=block" \
-H "Authorization: Bearer $RABBITFLARE_TOKEN" const res = await fetch("https://api.rabbitflare.com/v1/servers/3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d/security/addresses?kind=block", {
headers: {
Authorization: `Bearer ${process.env.RABBITFLARE_TOKEN}`,
},
});
if (!res.ok) throw new Error(`Rabbitflare API error ${res.status}: ${await res.text()}`);
const { data, pagination } = await res.json();
console.log(data, pagination.nextCursor); import { Rabbitflare } from "@rabbitflare/api";
const rf = new Rabbitflare({ token: process.env.RABBITFLARE_TOKEN });
for await (const item of rf.servers.security.addresses.list({
serverId: "3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d",
kind: "block",
})) {
console.log(item);
} <?php
$ch = curl_init('https://api.rabbitflare.com/v1/servers/3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d/security/addresses?kind=block');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 120,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RABBITFLARE_TOKEN'),
],
]);
$body = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
if ($body === false || $status >= 400) {
throw new RuntimeException("Rabbitflare API error $status: $body");
}
$answer = json_decode($body, true);
print_r($answer['data']);
echo $answer['pagination']['nextCursor'] ?? 'Last page', PHP_EOL; import os
import requests
response = requests.get(
"https://api.rabbitflare.com/v1/servers/3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d/security/addresses",
headers={
"Authorization": "Bearer " + os.environ["RABBITFLARE_TOKEN"],
},
params={
"kind": "block",
},
timeout=120,
)
response.raise_for_status()
answer = response.json()
print(answer["data"], answer["pagination"]["nextCursor"]) Response
200 OK Returns a list of SecurityAddress objects in data, with a Pagination object in pagination.
The SecurityAddress object's fields 9 fields
| Field | Type and description |
|---|---|
id | string The entry's id in this list: its kind and key, like |
key | string The address, range (203.0.113.0/24) or two-letter country code (DE) the entry is for: what |
kind | string
Known values: |
ip | string or null The address or range. Null for a country. |
country | string or null The two-letter country code. Null for an address. |
comment | string or null The note it was added with: your own words, or Imunify360's reason when it added the entry itself. Null when none. |
automatic | boolean Added by Imunify360 itself (an attack, a passed check), not by you. |
addedAt | string or null An ISO 8601 time, in UTC When it was added. Null when not known. |
expiresAt | string or null An ISO 8601 time, in UTC When it comes off the list by itself. Null: it stays. |
Example response
{
"data": [
{
"id": "block:185.191.171.0/24",
"key": "185.191.171.0/24",
"kind": "block",
"ip": "185.191.171.0/24",
"country": null,
"comment": "SSH password guessing",
"automatic": false,
"addedAt": "2026-11-25T08:59:40.000Z",
"expiresAt": null
}
],
"pagination": {
"limit": 25,
"hasMore": false,
"nextCursor": null
}
} Errors
The errors this request can answer besides those every request can (a missing token, a missing scope, the rate limits). Each answer is an Error object (see Errors).
| Status and code | When, and what to do |
|---|---|
400 invalid_ | A query parameter is unknown or has a wrong value ( Correct or remove the parameter named in |
400 invalid_ | The cursor isn't one this list gave, or was made with other filters or another sort. Start again from the first page, or keep the filters and sort the cursor was made with. |
403 feature_ | This product isn't open to the account. Contact support if you'd like it opened. |
404 not_ | The resource doesn't exist, or isn't this account's. Check the id. Ids of other accounts' resources answer the same way. |
409 server_ | The server is being restored, and nothing else can change it or its sites until that's done. Wait until the restore finishes (the server's |