latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

ModSecurity
Rule Vendor Settings

Add ModSecurity vendor rules

This function adds a new ModSecurity™ vendor rule set to the server.

Important:

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

get/modsec_add_vendor

Query parameters

urlstring url required
Example:https://example.com/update/meta_MyVendor.yaml

The YAML metadata that describes the vendor and how to obtain its rules.

enabled1 | 0
Example:1

Whether to enable the vendor.

  • 1 — Enabled.
  • 0 — Disabled.

Response

HTTP Request was successful.

Example response

{
  "data": {
    "archive_url": "http://example.com/update/MyVendor.zip",
    "description": "This is an example of a custom vendor set (updated)",
    "dist_md5": "307cb5320441ebd712e5581d12100dc9",
    "dist_sha512": "b55c09bb1835ed4209f0f3ea4a70d099665363f23d3819c0369be429438d675ba2c749dcefdb85cee682ee0bf485558e67d0b0965fe4799865529d943e8e14cb",
    "enabled": 1,
    "inst_dist": "MyVendor-2",
    "installed": 1,
    "installed_from": "https://example.com/update/meta_MyVendor.yaml",
    "name": "My Vendor",
    "path": "/usr/local/apache/conf/modsec_vendor_configs/MyVendor",
    "report_url": "https://waf.example.com/api/cpanel_feedback?source=1&rule_set=1.229",
    "supported_versions": [
      "2.7.5",
      "2.7.7",
      "2.8.0",
      "2.9.0",
      "2.9.1",
      "2.9.2",
      "2.9.3"
    ],
    "vendor_id": "MyVendor",
    "vendor_url": "http://www.example.com"
  },
  "metadata": {
    "command": "modsec_add_vendor",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}