Get your free beta license ↗
API operation · security group
GET

/security/modsec/disabled-rules

First published 19 Nov 20260.2.30Unchanged since publication

List server-wide and per-domain settings that disable ModSecurity rules

Who may call it
AdministratorResellerCustomer
Token scope, any of
securityreadall
Answers200 OK

Returns the total number of matches and overall counts. Individual entries are ordered newest first. When grouped is true, each matching rule appears once, ordered by the number of domains where it is disabled, highest first. Each group reports that count, how many settings were made by owners and administrators, and whether the rule is disabled server-wide.

Use limit to set the page size from 1 to 1000, with a default of 50. Use offset to skip entries or groups, with a default of 0. The API returns 400 for malformed nonempty values of scope, by, rule, q, limit, or offset.

As a command

Run as root on the server

Parameters

domainquery ·DomainName
Domain name to filter by, up to 253 characters after UrbeStack lowercases it and removes any trailing dot.
scopequery ·string, one of server, domains
Scope of the settings. Use server for server-wide settings or domains for per-domain settings.
byquery ·string, one of owner, administrator
Who disabled the rule. Use owner for domain owners or administrator for administrators.
gonequery ·boolean
Whether to return only entries for rules that have left the rule set.
rulequery ·integer
Rule number to match, with up to 8 digits.
qquery ·string
Partial domain or owner name, or an exact rule number. Use 1 to 253 characters drawn from word characters, periods, @, and hyphens.
groupedquery ·boolean
Whether to return one group per rule with the number of domains where it is disabled.
limitquery ·integer, 1 to 1000
offsetquery ·integer, 0 or more

Example

See the API overview for how to set $API and $TOKEN.
Request
curl -sS -X GET "$API/security/modsec/disabled-rules?domain=example.com&scope=server&by=owner&gone=1&rule=1&q=text&grouped=1&limit=1&offset=1" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "apache": "text",
  "changed": 1,
  "counts": {
    "by_administrators": 1,
    "by_owners": 1,
    "domains": 1,
    "gone": 1,
    "server": 1,
    "total": 1
  },
  "files_changed": 1,
  "groups": [
    {
      "by_administrators": 1,
      "by_owners": 1,
      "domains": 1,
      "gone": true,
      "group": "text",
      "message": "text",
      "rule": 1,
      "score": 1,
      "server": true,
      "severity": "text"
    }
  ],
  "limit": 1,
  "max_per_domain": 1,
  "offset": 1,
  "rules": [
    {
      "at": "text",
      "by": "owner",
      "by_name": "text",
      "domain": "example.com",
      "gone": true,
      "group": "text",
      "id": 1,
      "message": "text",
      "owner": "text",
      "paranoia_level": 1,
      "rule": 1,
      "score": 1,
      "severity": "critical"
    }
  ],
  "total": 1
}

Errors

8 errors, each a status and a sentence
400<k> is not in a form the list takes
400Domain name required
400Domain name too long
400Invalid domain name
400by is owner or administrator
400scope is server or domains
401Authentication required
404Domain '<name>' not found
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.30 on 19 Nov 2026.
urbestack.com/docs/api/get-security-modsec-disabled-rules/