Skip to content

List a server's allowed and blocked addresses

GET /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

FieldType and description
serverId Required

string

The server's id.

Query parameters

FieldType and description
limit

integer 1 to 100 Default 25

How many items to return, from 1 to 100. Default 25.

cursor

string 1 to 1,024 characters

The nextCursor of the previous page, exactly as it was given. Leave it out for the first page.

sort

string Default addedAt

The field to sort by. Each list names the fields it can be sorted by.

One of: addedAtkey

order

string Default desc

asc (smallest or oldest first) or desc. Each list has its own default.

One of: ascdesc

kind

string

Only this list: allow, block or challenge.

One of: allowblockchallenge

automatic

string

true: only entries Imunify360 added itself. false: only yours.

One of: truefalse

Example request

curl "https://api.rabbitflare.com/v1/servers/3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d/security/addresses?kind=block" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN"

Response

200 OK Returns a list of SecurityAddress objects in data, with a Pagination object in pagination.

The SecurityAddress object's fields 9 fields
FieldType and description
id

string

The entry's id in this list: its kind and key, like block:185.191.171.0/24.

key

string

The address, range (203.0.113.0/24) or two-letter country code (DE) the entry is for: what …/addresses/actions/remove and …/actions/move take.

kind

string

allow: never blocked by the server. block: refused by every site on the server. challenge: asked to prove it's a person (a CAPTCHA) first.

Known values: allowblockchallenge More can appear.

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

200 OK
{
  "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 codeWhen, and what to do
400 invalid_parameter

A query parameter is unknown or has a wrong value (fields names it), or the query is too long: over 16,384 characters, or a parameter's name over 64.

Correct or remove the parameter named in fields.

400 invalid_cursor

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_unavailable

This product isn't open to the account.

Contact support if you'd like it opened.

404 not_found

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_restoring

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 pendingAction is null again), then try again. A restore that stopped partway keeps pendingAction: "restore", with the server's lastError set, until our team has checked the server.

Rate limit

Heavy requests: 20 a minute per token, 40 per account. More in Rate limits.

Added on .

Popular

API docs