Skip to content

Turn off a security rule for false alarms

POST /v1/servers/{serverId}/security/rules/actions/disable

Turns a rule off that stops something a site needs, named by ruleId in the body: a web application firewall rule by its number, or a WordPress plugin rule by its name (an incident's ruleId, or a firewall event's rule). With siteIds it's off for those sites only (each needs malware protection on: 409 malware_protection_off); without, for every site on the server. servers.security.rules.enable turns it back on.

The answer is the server's security with the change in it (its figures asked for again). Imunify360 must be on for the server (409 security_off; 409 not_ready while it's still installing), and the server running.

The panel's own limit applies too: 30 changes 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:write
Manage servers. Power, reboot, snapshots and restores, log settings, restarting PHP, server security (Imunify360), and connecting your own servers.

Headers

FieldType and description
Idempotency-Key

string 1 to 255 characters

A key of your own for this request, like a UUID: letters, digits and _ - : . Send the request again with the same key (after a timeout, say) and it's done only once. Keys are kept for 24 hours (see Idempotency).

Path parameters

FieldType and description
serverId Required

string

The server's id.

Request body

JSON, with these fields. Fields that aren't listed are refused.

FieldType and description
ruleId Required

string

The rule: a web application firewall rule's number, or a WordPress plugin rule's name (an incident's ruleId).

siteIds

array of strings Up to 200 items

The sites to turn it off for (each needs malware protection on). Left out or empty: every site on the server.

note

string Up to 100 characters

Why, for yourself, up to 100 characters (a web application firewall rule keeps it as its name).

Example request

curl -X POST "https://api.rabbitflare.com/v1/servers/3f6c1a2b-8d4e-4b7a-9c2d-1e5f7a8b9c0d/security/rules/actions/disable" \
  -H "Authorization: Bearer $RABBITFLARE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "ruleId": "77350218",
  "siteIds": [
    "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"
  ],
  "note": "Turned off for the shop'\''s page builder"
}'

Response

200 OK Returns the ServerSecurity object in data.

The ServerSecurity object's fields 96 fields
FieldType and description
status

string

Imunify360 on the server: off, installing (a few minutes; then server.security_enabled), on, failed (see lastError; turn it on again to retry), or removing (being turned off).

Known values: offinstallingonfailedremoving More can appear.

available

boolean

Whether the server can run Imunify360: servers Rabbitflare creates and you pay for, with Intel or AMD processors and 2 GB of memory or more. Always true once it's on (or on its way in or out), so it can be turned off.

unavailableReason

string or null

Why it can't run here (with available: false). Null otherwise.

lastError

string or null

What went wrong (with status: "failed"). Null otherwise.

extraSitePriceCents

integer

What each site with malware protection on costs a month, past the server's included one, in US cents (299): billed after each month, by the days it was on.

currency

string Always "usd"

Always usd: amounts are in US cents.

sites

array of objects

The server's live sites (staging copies aren't among them), oldest first. Every site is guarded by the server's firewall whatever its own switch says.

siteId

string

The site's id.

enabled

boolean

Whether malware protection is on for the site.

included

boolean

The site that comes with the server at no charge: the first to have it on.

enabledAt

string or null An ISO 8601 time, in UTC

When it was turned on. Null while it's off.

openThreats

integer

Threats found and not cleaned or ignored.

checkedAt

string or null An ISO 8601 time, in UTC

When the server last reported its figures (newer ones are fetched in the background once they're over 30 seconds old). Null while Imunify360 isn't on.

refreshing

boolean

Newer figures are being fetched from the server: read again in a few seconds.

stats

object

The server's figures. Zero while Imunify360 isn't on.

attacksStopped24h

integer

Attacks blocked or challenged in the last 24 hours.

openThreats

integer

Threats found and not cleaned or ignored, on every site.

cleaned30d

integer

Threats cleaned in the last 30 days.

blockedAddresses

integer

Addresses and countries blocked now.

lastScanAt

string or null An ISO 8601 time, in UTC

When the last scan started. Null when none has run.

vulnerable

integer

Plugins, themes and WordPress installs with open security holes, on every site.

settings

object or null

Imunify360's settings. Null until it's on.

realtime

boolean

Real-time scanning: each file written to a site is checked at once.

scanInterval

string

How often every site with malware protection on is scanned: none, day, week or month.

Known values: nonedayweekmonth More can appear.

scanHour

integer

The hour scheduled scans start, 0 to 23, in UTC.

scanDay

integer

The day scheduled scans run: 0 (Sunday) to 6 for weekly scans, 1 to 28 for monthly ones.

intensity

string

How much of the server's processor and disk scans may use: low, moderate or high.

Known values: lowmoderatehigh More can appear.

dbScan

boolean

Scheduled scans check the sites' databases too.

crontabs

boolean

Scans check the server's scheduled tasks too.

rapidScan

boolean

Scheduled scans skip files unchanged since the last one.

adminTools

boolean

Database and file managers uploaded to sites count as threats.

cleanMode

string

What happens when malware is found: auto (cleaned at once, a copy kept for undoing) or alert (only listed and emailed: clean it yourself).

Known values: autoalert More can appear.

keepCopiesDays

integer

Days a copy of each cleaned file is kept, so a clean-up can be undone (1 to 90).

dos

boolean

Blocks an address that holds too many connections open at once (a denial-of-service attack).

dosLimit

integer

How many connections an address may hold open at once (100 to 10000).

enhancedDos

boolean

Also blocks an address that sends too many requests in a short time.

enhancedDosLimit

integer

How many requests an address may send in enhancedDosSeconds (100 to 100000).

enhancedDosSeconds

integer

The time enhancedDosLimit counts over, in seconds (10 to 3600).

sshBruteForce

boolean

Blocks addresses that keep guessing SSH passwords.

intrusionDetection

boolean

Intrusion detection: blocks addresses the server's logs show attacking it.

portsMode

string

open_except: every port is open except those in ports. closed_except: every port is closed except those in ports (and TCP 22, 22022, 80 and 443, which always stay open).

Known values: open_exceptclosed_except More can appear.

ruleset

string

The web application firewall's rules: full (recommended) or minimal (fewer rules, for sites the full set gets in the way of).

Known values: fullminimal More can appear.

wpBruteForce

boolean

Blocks addresses that keep guessing WordPress passwords.

cmsRules

boolean

Rules for the software a site runs (WordPress and its plugins).

captcha

boolean

A suspicious visitor is asked to prove it's a person (a CAPTCHA) before being blocked.

antibot

boolean

Bot checks: a browser is checked before it reaches the sites, so bad bots are stopped.

cdnSupport

boolean

Reads a visitor's real address behind a CDN or proxy (Cloudflare and others), so the right address is blocked.

reputation

boolean

Checks the sites' domains against blacklists once a day.

alerts

object

Which emails the account's owner gets about the server's sites (each site can also turn its own off).

Show its 4 fields
FieldType and description
malwareFound

boolean

Malware was found and not cleaned at once.

cleaned

boolean

Malware was found and cleaned.

blacklisted

boolean

A site's domain is on a blacklist.

vulnerable

boolean

A plugin, a theme or WordPress with known security holes was found on a site.

ports

array of objects

The ports settings.portsMode treats differently: closed while it's open_except, open while it's closed_except.

port

integer

The port.

protocol

string

tcp or udp.

Known values: tcpudp More can appear.

comment

string or null

The note it was added with: your own words. Null when none was.

allowedAddresses

array of strings

Addresses that still get through while the port is blocked.

disabledRules

array of objects

Rules turned off (servers.security.rules.disable); servers.security.rules.enable turns one back on.

ruleId

string

The rule: a web application firewall rule's number, or a WordPress plugin rule's name (like RULE-CVE-2024-1234-01).

name

string

What it's for: the note it was turned off with (your own words), or the attack it stops.

source

string

waf: a rule of the web application firewall. wordpress: a rule of Imunify360's WordPress plugin.

Known values: wafwordpress More can appear.

siteIds

array of strings

The sites it's off for. Empty: the whole server.

domains

array of strings

Those sites' domains, as the rule names them. Empty: the whole server.

scans

array of objects

Recent scans of the server's sites, newest first.

siteId

string or null

The site scanned. Null when it couldn't be told which.

kind

string

nightly (the schedule's), manual (asked for: …/actions/scan) or realtime.

Known values: nightlymanualrealtime More can appear.

status

string

running, done or failed.

Known values: runningdonefailed More can appear.

startedAt

string or null An ISO 8601 time, in UTC

When it started. Null when not known.

finishedAt

string or null An ISO 8601 time, in UTC

When it finished. Null while it runs.

files

integer or null

Files it checked. Null when not known.

found

integer

Threats it found.

kernelPatching

object

KernelCare: the server's kernel gets security patches without a restart. Free with Imunify360.

status

string

KernelCare on the server: not_installed, installing, installed, or unknown (while Imunify360 isn't on).

Known values: not_installedinstallinginstalledunknown More can appear.

patchedTo

string or null

The kernel version it has patched the server up to. Null when not known.

reputation

object

Blacklist checks of the sites' domains (settings.reputation).

checkedAt

string or null An ISO 8601 time, in UTC

When the domains were last checked. Null when they never were.

domains

array of objects

Each domain of the server's sites, as last checked.

Show its 4 fields
FieldType and description
domain

string

The domain.

siteId

string or null

The site it belongs to. Null when it's none of the server's sites now.

listed

boolean

Whether it's on a blacklist.

lists

array of strings

The blacklists it's on.

wordpressPlugin

object

Imunify360's WordPress plugin (Imunify Security).

enabled

boolean

Whether the plugin is on for the server: it goes onto every site with malware protection on.

sites

array of objects

The sites with malware protection on, while the plugin is on.

Show its 5 fields
FieldType and description
siteId

string

The site's id.

status

string

The plugin in the site: on, adding (about a minute), failed (WordPress there didn't work) or off (taken off the site).

Known values: onaddingfailedoff More can appear.

firewall

boolean

The plugin's firewall: rules for known holes in WordPress, its plugins and themes, inside the site.

aiBotProtection

boolean

AI bot protection: limits how fast bots load pages, and blocks harmful ones.

preset

string

How strict AI bot protection is: balanced, strict or monitor (records bot traffic only).

Known values: balancedstrictmonitor More can appear.

crawlers

array of objects

Search engines the bot checks always let through.

id

string

The search engine's id on the server (digits): DELETE /servers/{serverId}/security/crawlers/{crawlerId} removes it.

name

string

Its name: Imunify360's own, or the one it was added with.

url

string or null

Where it says how to recognise its crawlers, as it was added. Null when none was given.

domains

array of strings

Where its crawlers' addresses' names end.

builtIn

boolean

One of Imunify360's own (Google, Bing, Yandex, Baidu): always let through, it can't be removed.

Example response

200 OK
{
  "data": {
    "status": "on",
    "available": true,
    "unavailableReason": null,
    "lastError": null,
    "extraSitePriceCents": 299,
    "currency": "usd",
    "sites": [
      {
        "siteId": "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
        "enabled": true,
        "included": true,
        "enabledAt": "2026-11-21T10:02:11.000Z",
        "openThreats": 1
      },
      {
        "siteId": "7c2e9a41-3b5d-4f68-a1c9-5d2e8f0b4a67",
        "enabled": false,
        "included": false,
        "enabledAt": null,
        "openThreats": 0
      }
    ],
    "checkedAt": "2026-11-25T09:14:02.000Z",
    "refreshing": false,
    "stats": {
      "attacksStopped24h": 53,
      "openThreats": 1,
      "cleaned30d": 2,
      "blockedAddresses": 2,
      "lastScanAt": "2026-11-25T03:00:12.000Z",
      "vulnerable": 1
    },
    "settings": {
      "realtime": true,
      "scanInterval": "day",
      "scanHour": 3,
      "scanDay": 0,
      "intensity": "moderate",
      "dbScan": true,
      "crontabs": true,
      "rapidScan": true,
      "adminTools": true,
      "cleanMode": "auto",
      "keepCopiesDays": 14,
      "dos": true,
      "dosLimit": 250,
      "enhancedDos": false,
      "enhancedDosLimit": 250,
      "enhancedDosSeconds": 30,
      "sshBruteForce": true,
      "intrusionDetection": true,
      "portsMode": "open_except",
      "ruleset": "full",
      "wpBruteForce": true,
      "cmsRules": true,
      "captcha": true,
      "antibot": true,
      "cdnSupport": true,
      "reputation": true,
      "alerts": {
        "malwareFound": true,
        "cleaned": true,
        "blacklisted": true,
        "vulnerable": true
      }
    },
    "ports": [
      {
        "port": 3306,
        "protocol": "tcp",
        "comment": "Database: only the office",
        "allowedAddresses": [
          "198.51.100.7"
        ]
      }
    ],
    "disabledRules": [
      {
        "ruleId": "77350218",
        "name": "Turned off for the shop's page builder",
        "source": "waf",
        "siteIds": [
          "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"
        ],
        "domains": [
          "shop.example.com"
        ]
      }
    ],
    "scans": [
      {
        "siteId": "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
        "kind": "nightly",
        "status": "done",
        "startedAt": "2026-11-25T03:00:12.000Z",
        "finishedAt": "2026-11-25T03:02:40.000Z",
        "files": 4334,
        "found": 1
      }
    ],
    "kernelPatching": {
      "status": "installed",
      "patchedTo": "6.8.0-49-generic"
    },
    "reputation": {
      "checkedAt": "2026-11-25T04:00:00.000Z",
      "domains": [
        {
          "domain": "shop.example.com",
          "siteId": "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
          "listed": false,
          "lists": []
        }
      ]
    },
    "wordpressPlugin": {
      "enabled": true,
      "sites": [
        {
          "siteId": "8a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
          "status": "on",
          "firewall": true,
          "aiBotProtection": true,
          "preset": "balanced"
        }
      ]
    },
    "crawlers": [
      {
        "id": "1",
        "name": "Google",
        "url": "https://support.google.com/webmasters/answer/80553?hl=en",
        "domains": [
          ".google.com",
          ".googlebot.com"
        ],
        "builtIn": true
      },
      {
        "id": "12",
        "name": "DuckDuckGo",
        "url": "https://duckduckgo.com/duckduckbot",
        "domains": [
          ".duckduckgo.com"
        ],
        "builtIn": false
      }
    ]
  }
}

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
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 security_off

Imunify360 is off for the server (or failed), and this needs it on.

Turn it on with POST /servers/{serverId}/security/actions/enable, wait for security.status to be on, then try again.

409 not_ready

Something this needs isn't ready yet (for example, the server has no IP address yet).

Wait a few minutes, then try again.

409 server_unavailable

The server isn't in a state that allows this (for example, it's off or still being set up).

Start the server, or wait until it's active, then try again.

409 server_busy

The server's current change hasn't finished yet.

Wait until the server's change finishes, then try again.

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.

409 malware_protection_off

Malware protection is off for the site (or, for a server-wide change, for the sites it needs).

Turn it on with POST /sites/{siteId}/malware-protection/actions/enable, then try again.

422 validation_failed

One or more fields are missing or wrong. fields names each one with what's wrong.

Correct the fields named in fields. Unknown fields are refused too.

422 security_refused

Imunify360 on the server refused the change.

Check the values you sent. If it keeps happening, contact support with the request id.

502 server_unreachable

The server didn't answer, or didn't finish the request.

Check that the server is running, then try again in a minute.

Rate limit

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

Added on .

Popular

API docs