CMDCommand · run as root on the server · modsec family
urbestack-modsec-rule-set
First published 19 Nov 2026
0.2.30Unchanged since publicationUsage
# urbestack-modsec-rule-set --rule NUMBER [--enabled on|off] [--note TEXT] [--text-stdin < RULE]Description
From the command's --help outputChanges the custom ModSecurity rule selected by --rule. Give at least one of --enabled, --note or --text-stdin. Use --enabled on or off to switch the rule on or off. Use --note to describe its purpose in one line, or pass an empty string to clear the note. With --text-stdin, supply one rule on standard input as a SecRule or SecAction directive or a complete chain. Put the rule number in an id:N action on the first directive. A different number renumbers the rule. It must be unused by other custom rules. Numbers from 90000 onward are reserved for UrbeStack and the rule set. Enabling a rule or replacing the text of a rule that will remain enabled requires UrbeStack to manage ModSecurity and Apache to load the module. Apache tests its configuration before applying the change. If Apache rejects it, UrbeStack keeps the previous rule and returns Apache's error. You can switch a rule off even if Apache would reject its text.Usage: urbestack-modsec-rule-set --rule NUMBER [--enabled on|off] [--note TEXT] [--text-stdin < RULE] Changes the custom ModSecurity rule selected by --rule. Give at least one of --enabled, --note or --text-stdin. Use --enabled on or off to switch the rule on or off. Use --note to describe its purpose in one line, or pass an empty string to clear the note. With --text-stdin, supply one rule on standard input as a SecRule or SecAction directive or a complete chain. Put the rule number in an id:N action on the first directive. A different number renumbers the rule. It must be unused by other custom rules. Numbers from 90000 onward are reserved for UrbeStack and the rule set. Enabling a rule or replacing the text of a rule that will remain enabled requires UrbeStack to manage ModSecurity and Apache to load the module. Apache tests its configuration before applying the change. If Apache rejects it, UrbeStack keeps the previous rule and returns Apache's error. You can switch a rule off even if Apache would reject its text.
Options
Find other commands that accept these optionsSame in the API
This operation runs the command.Generated from release 0.2.35 (current) · urbestack-modsec-rule-set --help outputThis entry has been unchanged since it was first published in release 0.2.30 on 19 Nov 2026.
urbestack.com/docs/commands/urbestack-modsec-rule-set/