Allow pingdom IP’s in CSF on cPanel / WHM

29 August 2013 5:16 AM cPanel, firewall, Linux , ,

Need to quickly add the Pingdom IP’s to your CSF.allow file?

wget --quiet -O- https://my.pingdom.com/probes/feed | \
grep "pingdom:ip" | \
sed -e 's|||' >> /etc/csf/csf.allow
sleep 5
csf -r

What it does:
Fetches the latest probing server IP’s from Pingdom
Greps the output of the ‘pingdom:ip’ fields
Prints the contents into the csf.allow file
Restarts CSF