---
title: "Add ModSecurity vendor rules"
method: GET
path: "/modsec_add_vendor"
tags: ["ModSecurity", "Rule Vendor Settings"]
---

# Add ModSecurity vendor rules

`GET /modsec_add_vendor`

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

**Important:**

When you disable the
[Web Server role](https://docs.cpanel.net/knowledge-base/general-systems-administration/how-to-use-server-profiles/#roles),
the system disables this function.

## Query parameters

- `url` string, url, required
- `enabled` 1 | 0

## Response `200`

HTTP Request was successful.

- object
  - `data` object
    - `archive_url` string, url — The URL to the vendor's rule set archive. **Note:** The system will download a set of rules that is compatible with your version of ModSecurity.
    - `cpanel_provided` 1 | 0 — Whether WebPros International, LLC provided the vendor. * `1` — cPanel-provided. * `0` — **Not** cPanel-provided.
    - `description` string — The vendor's description.
    - `dist_md5` string, md5 — The download's [MD5](https://en.wikipedia.org/wiki/MD5) checksum value.
    - `dist_sha512` string, sha512 — The download's [sha512](https://en.wikipedia.org/wiki/SHA-2) hash.
    - `enabled` 1 | 0 — Whether the function enabled the vendor. * `1` — Enabled. * `0` — **Not** enabled.
    - `inst_dist` string — The rule set's unique identifier.
    - `installed` 1 | 0 — Whether the function installed the vendor. * `1` — Installed. * `0` — **Not** installed.
    - `installed_from` string, url — The vendor's metadata file URL.
    - `name` string — The vendor's name.
    - `path` string, path — The absolute path to the directory that contains the vendor's configuration files.
    - `report_url` string, url — The URL to which the system will send reports.
    - `supported_versions` string[] — A list of the ModSecurity versions that the vendor supports.
    - `vendor_id` string — The vendor's unique short name.
    - `vendor_url` string, url — The vendor's website URL.
  - `metadata` object
    - `command` string — The method name called.
    - `reason` string — The reason the API function failed when the `metadata.result` field is `0`. This field may display a success message when a function succeeds.
    - `result` 1 | 0 — * `1` — Success. * `0` — Failed. Check the `reason` field for more details.
    - `version` integer — The version of the API function.

---

[API](https://skmtc.net/cpanel/apis/whm-api.md) · [All operations](https://skmtc.net/cpanel/apis/whm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/whm-api/revisions/3da41671c02c/schema)
