# urbestack-modsec-disabled-rules

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

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-modsec-disabled-rules [--domain DOMAIN] [--all] [--scope server|domains] [--by owner|administrator] [--gone] [--rule NUMBER] [--q TEXT] [--grouped] [--limit N] [--offset N]
```

## Description

Lists the ModSecurity rule set's detection rules that are turned off. Use --domain on its own for the domain's list, ordered by rule number. It shows who turned off each rule and when, how many the owner turned off, and how many more the owner may turn off. In this view, --as owner hides administrators' names.

Omit --domain for the administrator's list of server-wide and per-domain entries. Use --domain with --all or another list option to narrow the administrator's list to one domain. Use --scope server for rules turned off server-wide and --scope domains for rules turned off for individual domains. Use --by owner or --by administrator to filter by who turned them off. Use --gone for entries whose rules have left the rule set. Use --rule to select one rule number. Use --q to match part of a domain or owner name, or an exact rule number.

The administrator's list shows entries newest first and includes the total number of matches and overall counts. Use --grouped to show each matching rule once, ordered by the number of domains where it is off, highest first. Each group shows how many domains have the rule off, how many of those settings were made by owners or administrators, and whether the rule is off 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.

## Same in the API

- [GET /domains/{name}/modsec/disabled-rules](https://urbestack.com/docs/api/get-domains-name-modsec-disabled-rules.md): List disabled ModSecurity rules for a domain
- [GET /security/modsec/disabled-rules](https://urbestack.com/docs/api/get-security-modsec-disabled-rules.md): List server-wide and per-domain settings that disable ModSecurity rules

## Command family: modsec

- [urbestack-modsec-disabled-rule-add](https://urbestack.com/docs/commands/urbestack-modsec-disabled-rule-add.md): Turns off ModSecurity detection rules for one domain or for the whole server.
- [urbestack-modsec-disabled-rule-del](https://urbestack.com/docs/commands/urbestack-modsec-disabled-rule-del.md): Removes the setting that turns off a ModSecurity rule for one domain or for the whole server.
- [urbestack-modsec-domains](https://urbestack.com/docs/commands/urbestack-modsec-domains.md): Lists domains with their effective ModSecurity mode, the mode set for each domain and who set it and when, and its owner's choice.
- [urbestack-modsec-install](https://urbestack.com/docs/commands/urbestack-modsec-install.md): Installs the distribution's ModSecurity package.
- [urbestack-modsec-requests](https://urbestack.com/docs/commands/urbestack-modsec-requests.md): Lists requests ModSecurity blocked or would have blocked in logging mode, newest first.
- [urbestack-modsec-rule-add](https://urbestack.com/docs/commands/urbestack-modsec-rule-add.md): Adds a server-wide custom ModSecurity rule from standard input.
- [urbestack-modsec-rule-del](https://urbestack.com/docs/commands/urbestack-modsec-rule-del.md): Deletes a custom ModSecurity rule.
- [urbestack-modsec-rule-set](https://urbestack.com/docs/commands/urbestack-modsec-rule-set.md): Changes the custom ModSecurity rule selected by --rule.
- [urbestack-modsec-rules](https://urbestack.com/docs/commands/urbestack-modsec-rules.md): Lists the custom ModSecurity rules shown in the ModSecurity section of the web interface, in rule number order.
- [urbestack-modsec-set](https://urbestack.com/docs/commands/urbestack-modsec-set.md): Sets the server's ModSecurity mode, changes who manages ModSecurity, or does both.
- [urbestack-modsec-sort](https://urbestack.com/docs/commands/urbestack-modsec-sort.md): Sorts ModSecurity audit records into domain logs.
- [urbestack-modsec-status](https://urbestack.com/docs/commands/urbestack-modsec-status.md): Reports whether UrbeStack manages ModSecurity, the configured server mode, and whether the module is installed and loaded by Apache.
