Allow Pingdom IPs in CSF on cPanel / WHM

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|</.*||' -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
Advertisements

Author: drewsymo

Developer

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s