API operation · security group
GET
/security/modsec/disabled-rules
First published 19 Nov 2026
0.2.30Unchanged since publicationList server-wide and per-domain settings that disable ModSecurity rules
Who may call it
AdministratorResellerCustomer
Token scope, any of
securityreadallAnswers200 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 serverParameters
domainquery ·DomainNameDomain name to filter by, up to 253 characters after UrbeStack lowercases it and removes any trailing dot.
scopequery ·string, one of server, domainsScope of the settings. Use server for server-wide settings or domains for per-domain settings.
byquery ·string, one of owner, administratorWho disabled the rule. Use owner for domain owners or administrator for administrators.
gonequery ·booleanWhether to return only entries for rules that have left the rule set.
rulequery ·integerRule number to match, with up to 8 digits.
qquery ·stringPartial domain or owner name, or an exact rule number. Use 1 to 253 characters drawn from word characters, periods, @, and hyphens.
groupedquery ·booleanWhether to return one group per rule with the number of domains where it is disabled.
limitquery ·integer, 1 to 1000offsetquery ·integer, 0 or moreExample
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 sentence400<k> is not in a form the list takes400Domain name required400Domain name too long400Invalid domain name400by is owner or administrator400scope is server or domains401Authentication required404Domain '<name>' not foundNo error of this operation matches.
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/