Skip to main content
Classic

ModSecurity

Learn how to use the ModSecurity module.

Deploy

Submit a support request to have the ModSecurity module deployed.

Manage

Manage the ModSecurity module through the advanced config.

tip

Check out the related ModSecurity documentation to get started with customizing your ModSecurity module.

note

Submit a support request if you need help managing this module.

Delete

Follow the steps below to delete the ModSecurity module from your environment:

  1. Go to the advanced config of the environment you want to delete the ModSecurity module from.

  2. In the top of the page, copy the URL next to Clone with HTTPS.

  3. Open a terminal and change the current working directory to the location where you want the cloned environment repository.

  4. Clone the environment repository to your local computer. Type git clone followed by the copied URL and then press Enter:

    git clone <copied_url>
  5. In the root directory of the environment repository, delete the ModSecurity module directory (typically named modsecurity).

    note

    Skip this step to disable the module instead of deleting it.

  6. In the environment's section.config.json file, delete the module object from the proxychain array, which will look like the following:

    section.config.json
    ...
    "proxychain": [
    ...
    {
    "name": "<module_directory_name>",
    "image": "<module_image>"
    },
    ...
    ],
    ...
    section.config.json
    ...
    "proxychain": [
    ...
    {
    "name": "modsecurity",
    "image": "modsecurity:3.0.4"
    },
    ...
    ],
    ...
  7. Stage, commit, and push the changes to the environment's remote repository:

    git add .
    git commit -m "Delete the ModSecurity module"
    git push