Passa al contenuto principale

Create ModSecurity rule

POST 

/api/v3/hostings/:hosting_id/modsecurity/rules

Required scopes: hosting:write

Disables the ModSecurity rule rule_number on the hosting, so that ModSecurity no longer applies it, and returns the rule with included true. Responds 200 instead of 201 when the hosting already had the rule, found by a scan or added before

Request​

Responses​

The rule was already in the firewall of the hosting