latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

ModSecurity
Server Settings

Return ModSecurity module status

This function checks whether the ModSecurity™ module is installed.

Important:

When you disable the Web Server role, the system disables this function.

get/modsec_is_installed

Response

HTTP Request was successful.

Example response

{
  "data": {
    "data": {
      "installed": 1
    }
  },
  "metadata": {
    "command": "modsec_is_installed",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}