v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
ModSecurity

Disable ModSecurity for all domains

This function disables ModSecurity™ on a cPanel account's domains.

Important:

When you disable the WebServer role, the system disables this function.

get/ModSecurity/disable_all_domains

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "disable_all_domains",
  "module": "ModSecurity",
  "result": {
    "data": [
      {
        "dependencies": [
          "dallas.com"
        ],
        "domain": "dallas.example.com",
        "enabled": 0,
        "searchhint": "dallas.com",
        "type": "sub"
      },
      {
        "dependencies": [
          "arkansas.com",
          "kansas.com",
          "nevada.com",
          "newmexico.com",
          "texas.com"
        ],
        "domain": "example.com",
        "enabled": 0,
        "searchhint": "arkansas.com,kansas.com,nevada.com,newmexico.com,texas.com",
        "type": "main"
      },
      {
        "dependencies": [
          "galveston.com"
        ],
        "domain": "galveston.example.com",
        "enabled": 0,
        "searchhint": "galveston.com",
        "type": "sub"
      },
      {
        "dependencies": [
          "houston.com"
        ],
        "domain": "houston.example.com",
        "enabled": 0,
        "searchhint": "houston.com",
        "type": "sub"
      },
      {
        "dependencies": [
          "neworleans.com"
        ],
        "domain": "neworleans.example.com",
        "enabled": 0,
        "searchhint": "neworleans.com",
        "type": "sub"
      },
      {
        "dependencies": [
          "sanantonio.com"
        ],
        "domain": "sanantonio.example.com",
        "enabled": 0,
        "searchhint": "sanantonio.com",
        "type": "sub"
      }
    ],
    "metadata": {
      "transformed": 1
    },
    "status": 1
  }
}