Hi guys,
Sometimes there will be some domains (mostly email hosts) which have dynamic IP’s so that we cannot block a particular IP to block the domain on our server. CSF allows you to do this . it will refresh the particular domain and block the IPs during a mentioned time. We can set the time in configuration.
Go to csf configuration
cd /etc/csf/
vi csf.conf
Search for dyndns and DYNDNS on it and you can see some lines like below:
DYNDNS = “0” > it means the function is disabled. Change it to 1 and restart csf to activate this.
You can set the time interval between the checks here.
GLOBAL_DYNDNS_INTERVAL = “600”
Now, we need to specify the domain that we need to block in csf. For this, you need to edit the file csf.dyndns
cd /etc/csf/
vi csf.dyndns
Now add the domain you need to block.
Restart csf using csf -r