Skip to content

Instantly share code, notes, and snippets.

@forkbombe
Created February 22, 2017 11:57
Show Gist options
  • Save forkbombe/2a92311146aecab135a26beecefdc000 to your computer and use it in GitHub Desktop.
Save forkbombe/2a92311146aecab135a26beecefdc000 to your computer and use it in GitHub Desktop.
Generate a list of Status Cake Ip addresses To add allowed IPs to Nginx or Firewall or whatevs
<?php
/**
* Generate a list of Status Cake Ip addresses
* To add allowed IPs to Nginx or Firewall
*/
$statuscake_locations_json = "https://www.statuscake.com/API/Locations/json";
$locations = json_decode(file_get_contents($statuscake_locations_json));
$output = "#STATUS CAKE IPs" . "\n";
/**
* Formatted for Nginx
*/
foreach($locations as $location) {
$output .= "allow " . $location->ip . ";" . "\n";
}
print_r($output);
#STATUS CAKE IPs
allow 128.199.222.65;
allow 188.166.158.224;
allow 139.59.157.206;
allow 199.167.128.80;
allow 185.157.211.211;
allow 45.32.69.14;
allow 37.235.53.240;
allow 45.32.195.225;
allow 192.241.221.11;
allow 50.2.139.16;
allow 108.61.162.214;
allow 37.235.48.42;
allow 158.255.208.76;
allow 125.63.48.239;
allow 185.12.45.70;
allow 103.194.112.70;
allow 213.183.56.107;
allow 194.187.248.52;
allow 91.236.116.163;
allow 37.235.55.205;
allow 194.187.248.53;
allow 45.63.104.11;
allow 45.32.151.21;
allow 107.170.227.23;
allow 107.170.227.24;
allow 188.226.169.228;
allow 188.226.185.106;
allow 188.226.186.199;
allow 107.155.108.234;
allow 188.226.171.58;
allow 108.61.119.153;
allow 188.226.158.160;
allow 107.170.240.141;
allow 107.161.28.219;
allow 107.155.104.182;
allow 107.155.125.29;
allow 178.62.78.199;
allow 209.222.30.242;
allow 46.101.74.251;
allow 108.61.212.141;
allow 178.62.65.162;
allow 178.62.109.7;
allow 188.226.247.184;
allow 188.226.139.158;
allow 188.226.184.152;
allow 178.62.106.84;
allow 104.131.248.65;
allow 104.131.248.78;
allow 46.101.61.83;
allow 104.131.247.151;
allow 178.62.86.69;
allow 107.170.197.248;
allow 107.170.219.46;
allow 188.226.203.84;
allow 178.62.41.44;
allow 178.62.41.49;
allow 178.62.41.52;
allow 162.243.71.56;
allow 178.62.40.233;
allow 162.243.247.163;
allow 107.170.53.191;
allow 31.220.7.237;
allow 178.62.80.93;
allow 178.62.71.227;
allow 178.73.210.99;
allow 181.41.214.137;
allow 154.127.60.59;
allow 185.112.157.185;
allow 46.101.240.208;
allow 46.101.238.182;
allow 46.101.238.189;
allow 46.101.27.186;
allow 178.62.104.137;
allow 193.182.144.147;
allow 159.203.31.18;
allow 149.154.157.61;
allow 138.204.171.136;
allow 158.255.4.243;
allow 154.127.60.23;
allow 188.166.253.148;
allow 37.157.246.146;
allow 46.101.110.43;
allow 46.101.110.45;
allow 178.62.101.57;
allow 46.101.0.24;
allow 46.101.20.96;
allow 46.101.110.32;
allow 82.221.95.161;
allow 37.235.52.25;
allow 37.97.188.103;
allow 151.236.18.80;
allow 37.235.53.156;
allow 37.235.48.146;
allow 91.239.125.60;
allow 139.59.15.79;
allow 193.182.144.105;
allow 45.63.121.159;
allow 45.32.145.79;
allow 181.41.201.117;
allow 151.236.10.238;
allow 151.80.175.226;
allow 185.173.92.161;
allow 185.135.81.201;
allow 138.68.24.60;
allow 107.191.47.131;
allow 138.68.24.115;
allow 138.68.24.136;
allow 138.68.24.207;
allow 138.197.140.243;
allow 138.197.130.232;
allow 138.197.130.235;
allow 139.59.155.26;
allow 138.68.80.173;
allow 139.59.190.241;
allow 138.68.80.10;
allow 139.59.29.167;
allow 45.63.88.213;
allow 45.63.86.120;
allow 45.32.128.80;
allow 104.156.229.24;
allow 45.32.212.56;
allow 104.156.255.184;
allow 108.61.215.179;
allow 45.32.166.195;
allow 45.32.160.172;
allow 45.32.171.24;
allow 107.191.57.237;
allow 45.63.26.78;
allow 45.76.192.50;
allow 45.32.36.158;
allow 139.59.26.85;
allow 139.59.22.109;
allow 104.238.164.105;
allow 45.63.76.68;
allow 45.63.78.84;
allow 45.32.195.186;
allow 45.76.3.112;
allow 45.76.1.44;
allow 45.32.7.22;
allow 159.203.186.225;
allow 159.203.182.22;
allow 159.203.182.60;
allow 45.63.51.63;
allow 45.63.61.213;
allow 108.61.205.201;
allow 45.32.192.198;
allow 45.32.195.93;
allow 104.206.168.26;
allow 45.63.97.4;
allow 104.238.185.175;
allow 104.238.185.46;
allow 104.238.186.209;
allow 45.76.128.250;
allow 104.238.171.176;
allow 104.238.187.61;
allow 104.238.174.234;
allow 108.61.196.37;
allow 108.61.197.147;
allow 45.76.134.164;
allow 45.76.135.253;
allow 108.61.173.0;
allow 45.63.96.68;
allow 45.76.134.85;
allow 45.32.183.128;
allow 45.76.130.43;
allow 45.76.129.212;
allow 45.76.134.198;
allow 45.76.134.237;
allow 45.76.135.14;
allow 217.78.0.117;
allow 217.78.0.171;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment