How to disable or ignore CSF alerts

August 26, 2024 / How-to Guide

This guide explains how to disable or ignore CSF alerts.

Disabling or ignoring CSF alerts may be necessary to reduce unnecessary notifications for non-critical issues, particularly if the alerts are irresistible or not relevant to your specific server environment.

Note: We strongly advise against disabling alerts unless you are absolutely certain of their purpose, as it could prevent notifications of important issues.

Let us follow the steps:

  1. Connect to your server as the root user through SSH.
  2. Use an editor like vi or nano to modify the “csf.pignore” file.
    nano /etc/csf/csf.conf
  3. You can ignore items by adding the following example rules:

    Deactivate alerts for a command:

    cmd: command name

    Deactivate alerts for a user:

    user: userna1

    Deactivate alerts for an executable:

    exe: /home/userna1/public_html/error_log
  4. Save the changes you made by typing Ctrl+O
  5. Then, Leave the nano editor using Ctrl+X
  6. Restart the firewall using the subsequent command:
    csf -r

Now, you will have a clear understanding of how to disable or ignore CSF alerts.

For any query, feel free to reach out to our support team.