This function enables a ModSecurity™ rule.
Important:
In cPanel & WHM version 76 and later, when you disable the Web Server role , the system disables this function.
HTTP Request was successful.
object |
whmapi1 --output=jsonpretty \ modsec_undisable_rule \ config='modsec_vendor_configs/example.conf' \ id='1234567890'
{- "metadata": {
- "command": "modsec_undisable_rule",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}