# GET /security/modsec/disabled-rules

First published 19 Nov 2026 (release 0.2.30) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the security group.

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

- Who may call it: administrator
- Token scope, any of: security, read, all
- Answers: 200 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

- [urbestack-modsec-disabled-rules](https://urbestack.com/docs/commands/urbestack-modsec-disabled-rules.md): Lists the ModSecurity rule set's detection rules that are turned off.

## Parameters

- `domain` (query, DomainName): Domain name to filter by, up to 253 characters after UrbeStack lowercases it and removes any trailing dot.
- `scope` (query, string, one of server, domains): Scope of the settings. Use server for server-wide settings or domains for per-domain settings.
- `by` (query, string, one of owner, administrator): Who disabled the rule. Use owner for domain owners or administrator for administrators.
- `gone` (query, boolean): Whether to return only entries for rules that have left the rule set.
- `rule` (query, integer): Rule number to match, with up to 8 digits.
- `q` (query, string): Partial domain or owner name, or an exact rule number. Use 1 to 253 characters drawn from word characters, periods, @, and hyphens.
- `grouped` (query, boolean): Whether to return one group per rule with the number of domains where it is disabled.
- `limit` (query, integer, 1 to 1000)
- `offset` (query, integer, 0 or more)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

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

- 400: <k> is not in a form the list takes
- 400: Domain name required
- 400: Domain name too long
- 400: Invalid domain name
- 400: by is owner or administrator
- 400: scope is server or domains
- 401: Authentication required
- 404: Domain '<name>' not found
