How to disable all cPanel LFD alerts

How to disable all cPanel LFD alerts

If clients are complaining for dozens of LFD alerts from their VPS’s running cPanel here is how to completely disable those email alerts.

Here are two ways to disable LFD alerts:

  1. From WHM > ConfigServer Security & Firewall
  2. From the Terminal (SSH)

Disable all cPanel LFD alerts from WHM

Step 1. Login to WHM

WHM login page

Step 2. Navigate to “ConfigServer Security & Firewall

ConfigServer Security & Firewall

Step 3. Under the CSF section click on “Firewall Configuration

Firewall Configuration ConfigServer Security & Firewall

Step 4. Search for “LF_EMAIL_ALERT” and change it from “On” to “Off”

LF_EMAIL_ALERT ConfigServer Security & Firewall

Step 5. Scroll down to the bottom and click on “Change” button to save changes

Sve Changes for ConfigServer Security & Firewall

Step 6. Click on the “Restart csf+lfd” button to restart CSF in order for the changes to take effect

Restart csf+lfd

Disable all cPanel LFD alerts from SSH

Step 1. Login to the server via SSH

Step 2. Open csf.conf file with your favourite editor and search for “LF_PERMBLOCK_ALERT” and set the value from 1 to 0.

# nano /etc/csf/csf.conf

LF_EMAIL_ALERT =0

Save the changes

Step 3. Now restart both CSF and LFD services in order for the changes to take effect.

# service csf restart

# service lfd restart
Written by
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.