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:
- Connect to your server as the root user through SSH.
- Use an editor like vi or nano to modify the “csf.pignore” file.
nano /etc/csf/csf.conf - 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 - Save the changes you made by typing Ctrl+O
- Then, Leave the nano editor using Ctrl+X
- 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.