0) { conf_mount_rw(); $ent = array(); if ($_POST['enable'] == 1) { //echo "enabled"; $config['installedpackages']['countryblock_settings']['config'][0]['enable'] = 1; //Process list by downloading and extracting $myFile = "countries.txt"; $fileContents = file_get_contents($myFile); $lines = explode(PHP_EOL, $fileContents); //Remove DIR lists to eliminate duplates exec("rm -R lists"); //Process each list URL, Extract, and put in DIR lists exec("mkdir lists"); foreach ($lines as $line) { //echo("fetch -o lists http://www.countryipblocks.net/e_country_data/{$line}_cidr.txt"); exec("fetch -o lists/temp http://www.countryipblocks.net/e_country_data/{$line}_cidr.txt"); exec("cat lists/temp >> lists/countries.txt"); $filename = basename($line); //Extract list //exec("gzip -d lists/$filename"); } //Prep pfctl mwexec("rm lists/temp"); //mwexec("touch lists/ipfw.ipfw"); //Now clear ipfw, and process each list to ipfw commands mwexec("sh execute.sh"); } else { //echo "disabled"; $config['installedpackages']['countryblock_settings']['config'][0]['enable'] = 0; //Clear Lists mwexec("pfctl -t countryblock -T kill"); mwexec("rm -R /usr/local/www/packages/countryblock/lists"); mwexec("sed -i -e '/countryblock/d' /tmp/rules.debug"); mwexec("pfctl -o basic -f /tmp/rules.debug"); //Clear errorOUT.txt mwexec("rm errorOUT.txt"); } write_config(); //services_dnsmasq_configure(); sleep(1); $savemsg_cb = "Country Block settings have been saved/updated. "; conf_mount_ro(); } ?>

Firewall: Country Block

\n"; } else { echo "\n"; } ?> "; exec("touch OUTBOUND"); } else { $output2 = " and Outbound access is ALLOWED."; exec("rm OUTBOUND"); } if(empty($aCountry)) { $output = "You didn't select any Countries."; exec("rm countries.txt"); } else { $N = count($aCountry); $myFile = "countries.txt"; $fh = fopen($myFile, 'w+'); $output = "You selected $N Countries"; for($i=0; $i < $N; $i++) { //echo($aCountry[$i] . " "); fwrite($fh, $aCountry[$i] . "\n"); } echo("

"); } } ?> Enable Country Block

Check the country that you would like to block completely.

Block outbound? "; } else { echo ""; } ?> select/unselect


    Korea"; else echo "
  • Korea
  • "; ob_start(); $results = exec("cat countries.txt | grep CN"); ob_end_clean(); if ($results == 'CN') echo "
  • China
  • "; else echo "
  • China
  • "; ob_start(); $results = exec("cat countries.txt | grep IN"); ob_end_clean(); if ($results == 'IN') echo "
  • India
  • "; else echo "
  • India
  • "; ob_start(); $results = exec("cat countries.txt | grep RU"); ob_end_clean(); if ($results == 'RU') echo "
  • Russia
  • "; else echo "
  • Russia
  • "; ob_start(); $results = exec("cat countries.txt | grep TR"); ob_end_clean(); if ($results == 'TR') echo "
  • Turkey
  • "; else echo "
  • Turkey
  • "; ob_start(); $results = exec("cat countries.txt | grep VN"); ob_end_clean(); if ($results == 'VN') echo "
  • Vietnam
  • "; else echo "
  • Vietnam
  • "; ob_start(); $results = exec("cat countries.txt | grep UA"); ob_end_clean(); if ($results == 'UA') echo "
  • Ukraine
  • "; else echo "
  • Ukraine
  • "; ob_start(); $results = exec("cat countries.txt | grep BR"); ob_end_clean(); if ($results == 'BR') echo "
  • Brazil
  • "; else echo "
  • Brazil
  • "; ob_start(); $results = exec("cat countries.txt | grep VE"); ob_end_clean(); if ($results == 'VE') echo "
  • Venezuela
  • "; else echo "
  • Venezuela
  • "; ob_start(); $results = exec("cat countries.txt | grep PK"); ob_end_clean(); if ($results == 'PK') echo "
  • Pakistan
  • "; else echo "
  • Pakistan
  • "; ?>
    Afghanistan"; else echo "
  • Afghanistan
  • "; ob_start(); $results = exec("cat countries.txt | grep AX"); ob_end_clean(); if ($results == 'AX') echo "
  • Aland Islands
  • "; else echo "
  • Aland Islands
  • "; ob_start(); $results = exec("cat countries.txt | grep AL"); ob_end_clean(); if ($results == 'AL') echo "
  • Albania
  • "; else echo "
  • Albania
  • "; ob_start(); $results = exec("cat countries.txt | grep DZ"); ob_end_clean(); if ($results == 'DZ') echo "
  • Algeria
  • "; else echo "
  • Algeria
  • "; ob_start(); $results = exec("cat countries.txt | grep AS"); ob_end_clean(); if ($results == 'AS') echo "
  • American Samoa
  • "; else echo "
  • American Samoa
  • "; ob_start(); $results = exec("cat countries.txt | grep AD"); ob_end_clean(); if ($results == 'AD') echo "
  • Andorra
  • "; else echo "
  • Andorra
  • "; ob_start(); $results = exec("cat countries.txt | grep AO"); ob_end_clean(); if ($results == 'AO') echo "
  • Angola
  • "; else echo "
  • Angola
  • "; ob_start(); $results = exec("cat countries.txt | grep AI"); ob_end_clean(); if ($results == 'AI') echo "
  • Anguilla
  • "; else echo "
  • Anguilla
  • "; ob_start(); $results = exec("cat countries.txt | grep AQ"); ob_end_clean(); if ($results == 'AQ') echo "
  • Antarctica
  • "; else echo "
  • Antarctica
  • "; ob_start(); $results = exec("cat countries.txt | grep AG"); ob_end_clean(); if ($results == 'AG') echo "
  • Antigua And Barbuda
  • "; else echo "
  • Antigua And Barbuda
  • "; ob_start(); $results = exec("cat countries.txt | grep AR"); ob_end_clean(); if ($results == 'AR') echo "
  • Argentia
  • "; else echo "
  • Argentia
  • "; ob_start(); $results = exec("cat countries.txt | grep AM"); ob_end_clean(); if ($results == 'AM') echo "
  • Armenia
  • "; else echo "
  • Armenia
  • "; ob_start(); $results = exec("cat countries.txt | grep AW"); ob_end_clean(); if ($results == 'AW') echo "
  • Aruba
  • "; else echo "
  • Aruba
  • "; ob_start(); $results = exec("cat countries.txt | grep AP"); ob_end_clean(); if ($results == 'AP') echo "
  • Asia Pacific
  • "; else echo "
  • Asia Pacific
  • "; ob_start(); $results = exec("cat countries.txt | grep AU"); ob_end_clean(); if ($results == 'AU') echo "
  • Australia
  • "; else echo "
  • Australia
  • "; ob_start(); $results = exec("cat countries.txt | grep AT"); ob_end_clean(); if ($results == 'AT') echo "
  • Austria
  • "; else echo "
  • Austria
  • "; ob_start(); $results = exec("cat countries.txt | grep AZ"); ob_end_clean(); if ($results == 'AZ') echo "
  • Azerbaijan
  • "; else echo "
  • Azerbaijan
  • "; ?>
    Bahamas"; else echo "
  • Bahamas
  • "; ob_start(); $results = exec("cat countries.txt | grep BH"); ob_end_clean(); if ($results == 'BH') echo "
  • Bahrain
  • "; else echo "
  • Bahrain
  • "; ob_start(); $results = exec("cat countries.txt | grep BD"); ob_end_clean(); if ($results == 'BD') echo "
  • Bangladesh
  • "; else echo "
  • Bangladesh
  • "; ob_start(); $results = exec("cat countries.txt | grep BD"); ob_end_clean(); if ($results == 'BD') echo "
  • Barbados
  • "; else echo "
  • Barbados
  • "; ob_start(); $results = exec("cat countries.txt | grep BY"); ob_end_clean(); if ($results == 'BY') echo "
  • Belarus
  • "; else echo "
  • Belarus
  • "; ob_start(); $results = exec("cat countries.txt | grep BE"); ob_end_clean(); if ($results == 'BE') echo "
  • Belgium
  • "; else echo "
  • Belgium
  • "; ob_start(); $results = exec("cat countries.txt | grep BZ"); ob_end_clean(); if ($results == 'BZ') echo "
  • Belize
  • "; else echo "
  • Belize
  • "; ob_start(); $results = exec("cat countries.txt | grep BJ"); ob_end_clean(); if ($results == 'BJ') echo "
  • Benin
  • "; else echo "
  • Benin
  • "; ob_start(); $results = exec("cat countries.txt | grep BM"); ob_end_clean(); if ($results == 'BM') echo "
  • Bermuda
  • "; else echo "
  • Bermuda
  • "; ob_start(); $results = exec("cat countries.txt | grep BT"); ob_end_clean(); if ($results == 'BT') echo "
  • Bhutan
  • "; else echo "
  • Bhutan
  • "; ob_start(); $results = exec("cat countries.txt | grep XA"); ob_end_clean(); if ($results == 'XA') echo "
  • Bogons
  • "; else echo "
  • Bogons
  • "; ob_start(); $results = exec("cat countries.txt | grep BO"); ob_end_clean(); if ($results == 'BO') echo "
  • Bolivia
  • "; else echo "
  • Bolivia
  • "; ob_start(); $results = exec("cat countries.txt | grep BA"); ob_end_clean(); if ($results == 'BA') echo "
  • Bosnia And Gerzegovia
  • "; else echo "
  • Bosnia And Gerzegovia
  • "; ob_start(); $results = exec("cat countries.txt | grep BW"); ob_end_clean(); if ($results == 'BW') echo "
  • Botswana
  • "; else echo "
  • Botswana
  • "; ob_start(); $results = exec("cat countries.txt | grep BV"); ob_end_clean(); if ($results == 'BV') echo "
  • Bouvet Island
  • "; else echo "
  • Bouvet Island
  • "; //ob_start(); //$results = exec("cat countries.txt | grep BR"); //ob_end_clean(); // if ($results == 'BR') // echo "
  • Brazil
  • "; // else // echo "
  • Brazil
  • "; ob_start(); $results = exec("cat countries.txt | grep IO"); ob_end_clean(); if ($results == 'IO') echo "
  • British India Ocean Territory
  • "; else echo "
  • British India Ocean Territory
  • "; ob_start(); $results = exec("cat countries.txt | grep BN"); ob_end_clean(); if ($results == 'BN') echo "
  • Brunei Darussalam
  • "; else echo "
  • Brunei Darussalam
  • "; ob_start(); $results = exec("cat countries.txt | grep BG"); ob_end_clean(); if ($results == 'BG') echo "
  • Bulgaria
  • "; else echo "
  • Bulgaria
  • "; ob_start(); $results = exec("cat countries.txt | grep BF"); ob_end_clean(); if ($results == 'BF') echo "
  • Burkia Faso
  • "; else echo "
  • Burkia Faso
  • "; ob_start(); $results = exec("cat countries.txt | grep BI"); ob_end_clean(); if ($results == 'BI') echo "
  • Burundi
  • "; else echo "
  • Burundi
  • "; ?>
    Cambodia"; else echo "
  • Cambodia
  • "; ob_start(); $results = exec("cat countries.txt | grep CM"); ob_end_clean(); if ($results == 'CM') echo "
  • Cameroon
  • "; else echo "
  • Cameroon
  • "; ob_start(); $results = exec("cat countries.txt | grep CA"); ob_end_clean(); if ($results == 'CA') echo "
  • Canada
  • "; else echo "
  • Canada
  • "; ob_start(); $results = exec("cat countries.txt | grep CV"); ob_end_clean(); if ($results == 'CV') echo "
  • Cape Verde
  • "; else echo "
  • Cape Verde
  • "; ob_start(); $results = exec("cat countries.txt | grep KY"); ob_end_clean(); if ($results == 'KY') echo "
  • Cayman Islands
  • "; else echo "
  • Cayman Islands
  • "; ob_start(); $results = exec("cat countries.txt | grep CF"); ob_end_clean(); if ($results == 'CF') echo "
  • Central African Republic
  • "; else echo "
  • Central African Republic
  • "; ob_start(); $results = exec("cat countries.txt | grep TD"); ob_end_clean(); if ($results == 'TD') echo "
  • Chad
  • "; else echo "
  • Chad
  • "; ob_start(); $results = exec("cat countries.txt | grep CL"); ob_end_clean(); if ($results == 'CL') echo "
  • Chile
  • "; else echo "
  • Chile
  • "; ob_start(); $results = exec("cat countries.txt | grep CX"); ob_end_clean(); if ($results == 'CX') echo "
  • Christmas Island
  • "; else echo "
  • Christmas Island
  • "; ob_start(); $results = exec("cat countries.txt | grep CC"); ob_end_clean(); if ($results == 'CC') echo "
  • Cocos (Keeling) Islands
  • "; else echo "
  • Cocos (Keeling) Islands
  • "; ob_start(); $results = exec("cat countries.txt | grep CO"); ob_end_clean(); if ($results == 'CO') echo "
  • Colombia
  • "; else echo "
  • Colombia
  • "; ob_start(); $results = exec("cat countries.txt | grep KM"); ob_end_clean(); if ($results == 'KM') echo "
  • Comoros
  • "; else echo "
  • Comoros
  • "; ob_start(); $results = exec("cat countries.txt | grep CG"); ob_end_clean(); if ($results == 'CG') echo "
  • Congo - Brazzaville
  • "; else echo "
  • Congo - Brazzaville
  • "; ob_start(); $results = exec("cat countries.txt | grep CD"); ob_end_clean(); if ($results == 'CD') echo "
  • Congo, The Democratic Republic of the
  • "; else echo "
  • Congo, The Democratic Republic of the
  • "; ob_start(); $results = exec("cat countries.txt | grep CK"); ob_end_clean(); if ($results == 'CK') echo "
  • Cook Islands
  • "; else echo "
  • Cook Islands
  • "; ob_start(); $results = exec("cat countries.txt | grep CR"); ob_end_clean(); if ($results == 'CR') echo "
  • Costa Rica
  • "; else echo "
  • Costa Rica
  • "; ob_start(); $results = exec("cat countries.txt | grep CI"); ob_end_clean(); if ($results == 'CI') echo "
  • Côte d’Ivoire
  • "; else echo "
  • Côte d’Ivoire
  • "; ob_start(); $results = exec("cat countries.txt | grep HR"); ob_end_clean(); if ($results == 'HR') echo "
  • Croatia
  • "; else echo "
  • Croatia
  • "; ob_start(); $results = exec("cat countries.txt | grep CU"); ob_end_clean(); if ($results == 'CU') echo "
  • Cuba
  • "; else echo "
  • Cuba
  • "; ob_start(); $results = exec("cat countries.txt | grep CY"); ob_end_clean(); if ($results == 'CY') echo "
  • Cyprus
  • "; else echo "
  • Cyprus
  • "; ob_start(); $results = exec("cat countries.txt | grep CZ"); ob_end_clean(); if ($results == 'CZ') echo "
  • Czech Republic
  • "; else echo "
  • Czech Republic
  • "; ?>
    Denmark"; else echo "
  • Denmark
  • "; ob_start(); $results = exec("cat countries.txt | grep DJ"); ob_end_clean(); if ($results == 'DJ') echo "
  • Djibouti
  • "; else echo "
  • Djibouti
  • "; ob_start(); $results = exec("cat countries.txt | grep DM"); ob_end_clean(); if ($results == 'DM') echo "
  • Dominica
  • "; else echo "
  • Dominica
  • "; ob_start(); $results = exec("cat countries.txt | grep DO"); ob_end_clean(); if ($results == 'DO') echo "
  • Dominican Republic
  • "; else echo "
  • Dominican Republic
  • "; ?>
    East Timor"; // else // echo "
  • East Timor
  • "; ob_start(); $results = exec("cat countries.txt | grep EC"); ob_end_clean(); if ($results == 'EC') echo "
  • Ecuador
  • "; else echo "
  • Ecuador
  • "; ob_start(); $results = exec("cat countries.txt | grep EG"); ob_end_clean(); if ($results == 'EG') echo "
  • Egypt
  • "; else echo "
  • Egypt
  • "; ob_start(); $results = exec("cat countries.txt | grep SV"); ob_end_clean(); if ($results == 'SV') echo "
  • El Salvador
  • "; else echo "
  • El Salvador
  • "; ob_start(); $results = exec("cat countries.txt | grep GQ"); ob_end_clean(); if ($results == 'GQ') echo "
  • Equatorial Guinea
  • "; else echo "
  • Equatorial Guinea
  • "; ob_start(); $results = exec("cat countries.txt | grep ER"); ob_end_clean(); if ($results == 'ER') echo "
  • Eritrea
  • "; else echo "
  • Eritrea
  • "; ob_start(); $results = exec("cat countries.txt | grep EE"); ob_end_clean(); if ($results == 'EE') echo "
  • Estonia
  • "; else echo "
  • Estonia
  • "; ob_start(); $results = exec("cat countries.txt | grep ET"); ob_end_clean(); if ($results == 'ET') echo "
  • Ethiopia
  • "; else echo "
  • Ethiopia
  • "; ob_start(); $results = exec("cat countries.txt | grep EU"); ob_end_clean(); if ($results == 'EU') echo "
  • European Union
  • "; else echo "
  • European Union
  • "; ?>
    Falkland Islands"; else echo "
  • Falkland Islands
  • "; ob_start(); $results = exec("cat countries.txt | grep FO"); ob_end_clean(); if ($results == 'FO') echo "
  • Faroe Islands
  • "; else echo "
  • Faroe Islands
  • "; ob_start(); $results = exec("cat countries.txt | grep FJ"); ob_end_clean(); if ($results == 'FJ') echo "
  • Fiji Islands
  • "; else echo "
  • Fiji Islands
  • "; ob_start(); $results = exec("cat countries.txt | grep FI"); ob_end_clean(); if ($results == 'FI') echo "
  • Finland
  • "; else echo "
  • Finland
  • "; ob_start(); $results = exec("cat countries.txt | grep FR"); ob_end_clean(); if ($results == 'FR') echo "
  • France
  • "; else echo "
  • France
  • "; ob_start(); $results = exec("cat countries.txt | grep GF"); ob_end_clean(); if ($results == 'GF') echo "
  • French Guiana
  • "; else echo "
  • French Guiana
  • "; ob_start(); $results = exec("cat countries.txt | grep PF"); ob_end_clean(); if ($results == 'PF') echo "
  • French Polynesia
  • "; else echo "
  • French Polynesia
  • "; ob_start(); $results = exec("cat countries.txt | grep TF"); ob_end_clean(); if ($results == 'TF') echo "
  • French Southern territories
  • "; else echo "
  • French Southern territories
  • "; ?>
    Gabon"; else echo "
  • Gabon
  • "; ob_start(); $results = exec("cat countries.txt | grep GM"); ob_end_clean(); if ($results == 'GM') echo "
  • Gambia
  • "; else echo "
  • Gambia
  • "; ob_start(); $results = exec("cat countries.txt | grep GE"); ob_end_clean(); if ($results == 'GE') echo "
  • Georgia
  • "; else echo "
  • Georgia
  • "; ob_start(); $results = exec("cat countries.txt | grep DE"); ob_end_clean(); if ($results == 'DE') echo "
  • Germany
  • "; else echo "
  • Germany
  • "; ob_start(); $results = exec("cat countries.txt | grep GH"); ob_end_clean(); if ($results == 'GH') echo "
  • Ghana
  • "; else echo "
  • Ghana
  • "; ob_start(); $results = exec("cat countries.txt | grep GI"); ob_end_clean(); if ($results == 'GI') echo "
  • Gibraltar
  • "; else echo "
  • Gibraltar
  • "; ob_start(); $results = exec("cat countries.txt | grep GR"); ob_end_clean(); if ($results == 'GR') echo "
  • Greece
  • "; else echo "
  • Greece
  • "; ob_start(); $results = exec("cat countries.txt | grep GL"); ob_end_clean(); if ($results == 'GL') echo "
  • Greenland
  • "; else echo "
  • Greenland
  • "; ob_start(); $results = exec("cat countries.txt | grep GD"); ob_end_clean(); if ($results == 'GD') echo "
  • Grenada
  • "; else echo "
  • Grenada
  • "; ob_start(); $results = exec("cat countries.txt | grep GP"); ob_end_clean(); if ($results == 'GP') echo "
  • Guadeloupe
  • "; else echo "
  • Guadeloupe
  • "; ob_start(); $results = exec("cat countries.txt | grep GU"); ob_end_clean(); if ($results == 'GU') echo "
  • Guam
  • "; else echo "
  • Guam
  • "; ob_start(); $results = exec("cat countries.txt | grep GT"); ob_end_clean(); if ($results == 'GT') echo "
  • Guatemala
  • "; else echo "
  • Guatemala
  • "; ob_start(); $results = exec("cat countries.txt | grep GG"); ob_end_clean(); if ($results == 'GG') echo "
  • Guernsey
  • "; else echo "
  • Guernsey
  • "; ob_start(); $results = exec("cat countries.txt | grep GN"); ob_end_clean(); if ($results == 'GN') echo "
  • Guinea
  • "; else echo "
  • Guinea
  • "; ob_start(); $results = exec("cat countries.txt | grep GW"); ob_end_clean(); if ($results == 'GW') echo "
  • Guinea-Bissau
  • "; else echo "
  • Guinea-Bissau
  • "; ob_start(); $results = exec("cat countries.txt | grep GY"); ob_end_clean(); if ($results == 'GY') echo "
  • Guyana
  • "; else echo "
  • Guyana
  • "; ?>
    Haiti"; else echo "
  • Haiti
  • "; ob_start(); $results = exec("cat countries.txt | grep HM"); ob_end_clean(); if ($results == 'HM') echo "
  • Heard Island and McDonald Islands
  • "; else echo "
  • Heard Island and McDonald Islands
  • "; ob_start(); $results = exec("cat countries.txt | grep VA"); ob_end_clean(); if ($results == 'VA') echo "
  • Holy See (Vatican City State)
  • "; else echo "
  • Holy See (Vatican City State)
  • "; ob_start(); $results = exec("cat countries.txt | grep HN"); ob_end_clean(); if ($results == 'HN') echo "
  • Honduras
  • "; else echo "
  • Honduras
  • "; ob_start(); $results = exec("cat countries.txt | grep HK"); ob_end_clean(); if ($results == 'HK') echo "
  • Hong Kong
  • "; else echo "
  • Hong Kong
  • "; ob_start(); $results = exec("cat countries.txt | grep HU"); ob_end_clean(); if ($results == 'HU') echo "
  • Hungary
  • "; else echo "
  • Hungary
  • "; ?>
    Iceland"; else echo "
  • Iceland
  • "; //ob_start(); //$results = exec("cat countries.txt | grep IN"); //ob_end_clean(); // if ($results == 'IN') // echo "
  • India
  • "; // else // echo "
  • India
  • "; ob_start(); $results = exec("cat countries.txt | grep ID"); ob_end_clean(); if ($results == 'ID') echo "
  • Indonesia
  • "; else echo "
  • Indonesia
  • "; ob_start(); $results = exec("cat countries.txt | grep IR"); ob_end_clean(); if ($results == 'IR') echo "
  • Iran
  • "; else echo "
  • Iran
  • "; ob_start(); $results = exec("cat countries.txt | grep IQ"); ob_end_clean(); if ($results == 'IQ') echo "
  • Iraq
  • "; else echo "
  • Iraq
  • "; ob_start(); $results = exec("cat countries.txt | grep IE"); ob_end_clean(); if ($results == 'IE') echo "
  • Ireland
  • "; else echo "
  • Ireland
  • "; ob_start(); $results = exec("cat countries.txt | grep IM"); ob_end_clean(); if ($results == 'IM') echo "
  • Isle of Man
  • "; else echo "
  • Isle of Man
  • "; ob_start(); $results = exec("cat countries.txt | grep IL"); ob_end_clean(); if ($results == 'IL') echo "
  • Israel
  • "; else echo "
  • Israel
  • "; ob_start(); $results = exec("cat countries.txt | grep IT"); ob_end_clean(); if ($results == 'IT') echo "
  • Italy
  • "; else echo "
  • Italy
  • "; ?>
    Jamaica"; else echo "
  • Jamaica
  • "; ob_start(); $results = exec("cat countries.txt | grep JP"); ob_end_clean(); if ($results == 'JP') echo "
  • Japan
  • "; else echo "
  • Japan
  • "; ob_start(); $results = exec("cat countries.txt | grep JO"); ob_end_clean(); if ($results == 'JO') echo "
  • Jordan
  • "; else echo "
  • Jordan
  • "; ?>
    Kazakstan"; else echo "
  • Kazakstan
  • "; ob_start(); $results = exec("cat countries.txt | grep KE"); ob_end_clean(); if ($results == 'KE') echo "
  • Kenya
  • "; else echo "
  • Kenya
  • "; ob_start(); $results = exec("cat countries.txt | grep KI"); ob_end_clean(); if ($results == 'KI') echo "
  • Kiribati
  • "; else echo "
  • Kiribati
  • "; ob_start(); $results = exec("cat countries.txt | grep KP"); ob_end_clean(); if ($results == 'KP') echo "
  • Korea, Democratic Replublic
  • "; else echo "
  • Korea, Democratic Replublic
  • "; //ob_start(); //$results = exec("cat countries.txt | grep KR"); //ob_end_clean(); // if ($results == 'KR') // echo "
  • Korea
  • "; // else // echo "
  • Korea
  • "; ob_start(); $results = exec("cat countries.txt | grep CS"); ob_end_clean(); if ($results == 'CS') echo "
  • Kosovo
  • "; else echo "
  • Kosovo
  • "; ob_start(); $results = exec("cat countries.txt | grep KW"); ob_end_clean(); if ($results == 'KW') echo "
  • Kuwait
  • "; else echo "
  • Kuwait
  • "; ob_start(); $results = exec("cat countries.txt | grep KG"); ob_end_clean(); if ($results == 'KG') echo "
  • Kyrgyzstan
  • "; else echo "
  • Kyrgyzstan
  • "; ?>
    Lao Democratic Republic"; else echo "
  • Lao Democratic Republic
  • "; ob_start(); $results = exec("cat countries.txt | grep LV"); ob_end_clean(); if ($results == 'LV') echo "
  • Latvia
  • "; else echo "
  • Latvia
  • "; ob_start(); $results = exec("cat countries.txt | grep LB"); ob_end_clean(); if ($results == 'LB') echo "
  • Lebanon
  • "; else echo "
  • Lebanon
  • "; ob_start(); $results = exec("cat countries.txt | grep LS"); ob_end_clean(); if ($results == 'LS') echo "
  • Lesotho
  • "; else echo "
  • Lesotho
  • "; ob_start(); $results = exec("cat countries.txt | grep LR"); ob_end_clean(); if ($results == 'LR') echo "
  • Liberia
  • "; else echo "
  • Liberia
  • "; ob_start(); $results = exec("cat countries.txt | grep LY"); ob_end_clean(); if ($results == 'LY') echo "
  • Libyan Arab Jamahiriya
  • "; else echo "
  • Libyan Arab Jamahiriya
  • "; ob_start(); $results = exec("cat countries.txt | grep LI"); ob_end_clean(); if ($results == 'LI') echo "
  • Liechtenstein
  • "; else echo "
  • Liechtenstein
  • "; ob_start(); $results = exec("cat countries.txt | grep LT"); ob_end_clean(); if ($results == 'LT') echo "
  • Lithuania
  • "; else echo "
  • Lithuania
  • "; ob_start(); $results = exec("cat countries.txt | grep LU"); ob_end_clean(); if ($results == 'LU') echo "
  • Luxembourg
  • "; else echo "
  • Luxembourg
  • "; ?>
    Macao"; else echo "
  • Macao
  • "; ob_start(); $results = exec("cat countries.txt | grep MK"); ob_end_clean(); if ($results == 'MK') echo "
  • Macedonia
  • "; else echo "
  • Macedonia
  • "; ob_start(); $results = exec("cat countries.txt | grep MG"); ob_end_clean(); if ($results == 'MG') echo "
  • Madagascar
  • "; else echo "
  • Madagascar
  • "; ob_start(); $results = exec("cat countries.txt | grep MW"); ob_end_clean(); if ($results == 'MW') echo "
  • Malawi
  • "; else echo "
  • Malawi
  • "; ob_start(); $results = exec("cat countries.txt | grep MY"); ob_end_clean(); if ($results == 'MY') echo "
  • Malaysia
  • "; else echo "
  • Malaysia
  • "; ob_start(); $results = exec("cat countries.txt | grep MV"); ob_end_clean(); if ($results == 'MV') echo "
  • Maldives
  • "; else echo "
  • Maldives
  • "; ob_start(); $results = exec("cat countries.txt | grep ML"); ob_end_clean(); if ($results == 'ML') echo "
  • Mali
  • "; else echo "
  • Mali
  • "; ob_start(); $results = exec("cat countries.txt | grep MT"); ob_end_clean(); if ($results == 'MT') echo "
  • Malta
  • "; else echo "
  • Malta
  • "; ob_start(); $results = exec("cat countries.txt | grep MH"); ob_end_clean(); if ($results == 'MH') echo "
  • Marshall Islands
  • "; else echo "
  • Marshall Islands
  • "; ob_start(); $results = exec("cat countries.txt | grep MQ"); ob_end_clean(); if ($results == 'MQ') echo "
  • Martinique
  • "; else echo "
  • Martinique
  • "; ob_start(); $results = exec("cat countries.txt | grep MR"); ob_end_clean(); if ($results == 'MR') echo "
  • Mauritania
  • "; else echo "
  • Mauritania
  • "; ob_start(); $results = exec("cat countries.txt | grep MU"); ob_end_clean(); if ($results == 'MU') echo "
  • Mauritius
  • "; else echo "
  • Mauritius
  • "; ob_start(); $results = exec("cat countries.txt | grep YT"); ob_end_clean(); if ($results == 'YT') echo "
  • Mayotte
  • "; else echo "
  • Mayotte
  • "; ob_start(); $results = exec("cat countries.txt | grep MX"); ob_end_clean(); if ($results == 'MX') echo "
  • Mexico
  • "; else echo "
  • Mexico
  • "; ob_start(); $results = exec("cat countries.txt | grep FM"); ob_end_clean(); if ($results == 'FM') echo "
  • Micronesia
  • "; else echo "
  • Micronesia
  • "; ob_start(); $results = exec("cat countries.txt | grep MD"); ob_end_clean(); if ($results == 'MD') echo "
  • Moldova
  • "; else echo "
  • Moldova
  • "; ob_start(); $results = exec("cat countries.txt | grep MC"); ob_end_clean(); if ($results == 'MC') echo "
  • Monaco
  • "; else echo "
  • Monaco
  • "; ob_start(); $results = exec("cat countries.txt | grep MN"); ob_end_clean(); if ($results == 'MN') echo "
  • Mongolia
  • "; else echo "
  • Mongolia
  • "; ob_start(); $results = exec("cat countries.txt | grep MS"); ob_end_clean(); if ($results == 'MS') echo "
  • Montserrat
  • "; else echo "
  • Montserrat
  • "; ob_start(); $results = exec("cat countries.txt | grep MA"); ob_end_clean(); if ($results == 'MA') echo "
  • Morocco
  • "; else echo "
  • Morocco
  • "; ob_start(); $results = exec("cat countries.txt | grep MZ"); ob_end_clean(); if ($results == 'MZ') echo "
  • Mozambique
  • "; else echo "
  • Mozambique
  • "; ob_start(); $results = exec("cat countries.txt | grep MM"); ob_end_clean(); if ($results == 'MM') echo "
  • Myanmar
  • "; else echo "
  • Myanmar
  • "; ?>
    Namibia"; else echo "
  • Namibia
  • "; ob_start(); $results = exec("cat countries.txt | grep NR"); ob_end_clean(); if ($results == 'NR') echo "
  • Nauru
  • "; else echo "
  • Nauru
  • "; ob_start(); $results = exec("cat countries.txt | grep NP"); ob_end_clean(); if ($results == 'NP') echo "
  • Nepal
  • "; else echo "
  • Nepal
  • "; ob_start(); $results = exec("cat countries.txt | grep NL"); ob_end_clean(); if ($results == 'NL') echo "
  • Netherlands
  • "; else echo "
  • Netherlands
  • "; ob_start(); $results = exec("cat countries.txt | grep AN"); ob_end_clean(); if ($results == 'AN') echo "
  • Netherlands Antilles
  • "; else echo "
  • Netherlands Antilles
  • "; ob_start(); $results = exec("cat countries.txt | grep NC"); ob_end_clean(); if ($results == 'NC') echo "
  • New Caledonia
  • "; else echo "
  • New Caledonia
  • "; ob_start(); $results = exec("cat countries.txt | grep NZ"); ob_end_clean(); if ($results == 'NZ') echo "
  • New Zealand
  • "; else echo "
  • New Zealand
  • "; ob_start(); $results = exec("cat countries.txt | grep NI"); ob_end_clean(); if ($results == 'NI') echo "
  • Nicaragua
  • "; else echo "
  • Nicaragua
  • "; ob_start(); $results = exec("cat countries.txt | grep NE"); ob_end_clean(); if ($results == 'NE') echo "
  • Niger
  • "; else echo "
  • Niger
  • "; ob_start(); $results = exec("cat countries.txt | grep NG"); ob_end_clean(); if ($results == 'NG') echo "
  • Nigeria
  • "; else echo "
  • Nigeria
  • "; ob_start(); $results = exec("cat countries.txt | grep NU"); ob_end_clean(); if ($results == 'NU') echo "
  • Niue
  • "; else echo "
  • Niue
  • "; ob_start(); $results = exec("cat countries.txt | grep NF"); ob_end_clean(); if ($results == 'NF') echo "
  • Norfolk Island
  • "; else echo "
  • Norfolk Island
  • "; //ob_start(); //$results = exec("cat countries.txt | grep XX"); //ob_end_clean(); // if ($results == 'XX') // echo "
  • North Korea
  • "; // else // echo "
  • North Korea
  • "; ob_start(); $results = exec("cat countries.txt | grep MP"); ob_end_clean(); if ($results == 'MP') echo "
  • Northern Mariana Islands
  • "; else echo "
  • Northern Mariana Islands
  • "; ob_start(); $results = exec("cat countries.txt | grep NO"); ob_end_clean(); if ($results == 'NO') echo "
  • Norway
  • "; else echo "
  • Norway
  • "; ?>
    Oman"; else echo "
  • Oman
  • "; ?>
    Pakistan"; // else // echo "
  • Pakistan
  • "; ob_start(); $results = exec("cat countries.txt | grep PW"); ob_end_clean(); if ($results == 'PW') echo "
  • Palau
  • "; else echo "
  • Palau
  • "; ob_start(); $results = exec("cat countries.txt | grep PS"); ob_end_clean(); if ($results == 'PS') echo "
  • Palestine
  • "; else echo "
  • Palestine
  • "; ob_start(); $results = exec("cat countries.txt | grep PA"); ob_end_clean(); if ($results == 'PA') echo "
  • Panama
  • "; else echo "
  • Panama
  • "; ob_start(); $results = exec("cat countries.txt | grep PG"); ob_end_clean(); if ($results == 'PG') echo "
  • Papua New Guinea
  • "; else echo "
  • Papua New Guinea
  • "; ob_start(); $results = exec("cat countries.txt | grep PY"); ob_end_clean(); if ($results == 'PY') echo "
  • Paraguay
  • "; else echo "
  • Paraguay
  • "; ob_start(); $results = exec("cat countries.txt | grep PE"); ob_end_clean(); if ($results == 'PE') echo "
  • Peru
  • "; else echo "
  • Peru
  • "; ob_start(); $results = exec("cat countries.txt | grep PH"); ob_end_clean(); if ($results == 'PH') echo "
  • Philippines
  • "; else echo "
  • Philippines
  • "; ob_start(); $results = exec("cat countries.txt | grep PN"); ob_end_clean(); if ($results == 'PN') echo "
  • Pitcairn
  • "; else echo "
  • Pitcairn
  • "; ob_start(); $results = exec("cat countries.txt | grep PL"); ob_end_clean(); if ($results == 'PL') echo "
  • Poland
  • "; else echo "
  • Poland
  • "; ob_start(); $results = exec("cat countries.txt | grep PT"); ob_end_clean(); if ($results == 'PT') echo "
  • Portugal
  • "; else echo "
  • Portugal
  • "; ob_start(); $results = exec("cat countries.txt | grep PR"); ob_end_clean(); if ($results == 'PR') echo "
  • Puerto Rico
  • "; else echo "
  • Puerto Rico
  • "; ?>
    Qatar"; else echo "
  • Qatar
  • "; ?>
    Réunion"; else echo "
  • Réunion
  • "; ob_start(); $results = exec("cat countries.txt | grep RO"); ob_end_clean(); if ($results == 'RO') echo "
  • Romania
  • "; else echo "
  • Romania
  • "; //ob_start(); //$results = exec("cat countries.txt | grep RU"); //ob_end_clean(); // if ($results == 'RU') // echo "
  • Russian Federation
  • "; // else // echo "
  • Russian Federation
  • "; ob_start(); $results = exec("cat countries.txt | grep RW"); ob_end_clean(); if ($results == 'RW') echo "
  • Rwanda
  • "; else echo "
  • Rwanda
  • "; ?>
    Saint Helena"; else echo "
  • Saint Helena
  • "; ob_start(); $results = exec("cat countries.txt | grep KN"); ob_end_clean(); if ($results == 'KN') echo "
  • Saint Kitts and Nevis
  • "; else echo "
  • Saint Kitts and Nevis
  • "; ob_start(); $results = exec("cat countries.txt | grep LC"); ob_end_clean(); if ($results == 'LC') echo "
  • Saint Lucia
  • "; else echo "
  • Saint Lucia
  • "; ob_start(); $results = exec("cat countries.txt | grep PM"); ob_end_clean(); if ($results == 'PM') echo "
  • Saint Pierre and Miquelon
  • "; else echo "
  • Saint Pierre and Miquelon
  • "; ob_start(); $results = exec("cat countries.txt | grep VC"); ob_end_clean(); if ($results == 'VC') echo "
  • Saint Vincent and the Grenadines
  • "; else echo "
  • Saint Vincent and the Grenadines
  • "; ob_start(); $results = exec("cat countries.txt | grep WS"); ob_end_clean(); if ($results == 'WS') echo "
  • Samoa
  • "; else echo "
  • Samoa
  • "; ob_start(); $results = exec("cat countries.txt | grep SM"); ob_end_clean(); if ($results == 'SM') echo "
  • San Marino
  • "; else echo "
  • San Marino
  • "; ob_start(); $results = exec("cat countries.txt | grep ST"); ob_end_clean(); if ($results == 'ST') echo "
  • Sao Tome and Principe
  • "; else echo "
  • Sao Tome and Principe
  • "; ob_start(); $results = exec("cat countries.txt | grep SA"); ob_end_clean(); if ($results == 'SA') echo "
  • Saudi Arabia
  • "; else echo "
  • Saudi Arabia
  • "; ob_start(); $results = exec("cat countries.txt | grep SN"); ob_end_clean(); if ($results == 'SN') echo "
  • Senegal
  • "; else echo "
  • Senegal
  • "; ob_start(); $results = exec("cat countries.txt | grep RS"); ob_end_clean(); if ($results == 'RS') echo "
  • Serbia
  • "; else echo "
  • Serbia
  • "; ob_start(); $results = exec("cat countries.txt | grep SC"); ob_end_clean(); if ($results == 'SC') echo "
  • Seychelles
  • "; else echo "
  • Seychelles
  • "; ob_start(); $results = exec("cat countries.txt | grep SL"); ob_end_clean(); if ($results == 'SL') echo "
  • Sierra Leone
  • "; else echo "
  • Sierra Leone
  • "; ob_start(); $results = exec("cat countries.txt | grep SG"); ob_end_clean(); if ($results == 'SG') echo "
  • Singapore
  • "; else echo "
  • Singapore
  • "; ob_start(); $results = exec("cat countries.txt | grep SK"); ob_end_clean(); if ($results == 'SK') echo "
  • Slovakia
  • "; else echo "
  • Slovakia
  • "; ob_start(); $results = exec("cat countries.txt | grep SI"); ob_end_clean(); if ($results == 'SI') echo "
  • Slovenia
  • "; else echo "
  • Slovenia
  • "; ob_start(); $results = exec("cat countries.txt | grep SB"); ob_end_clean(); if ($results == 'SB') echo "
  • Solomon Islands
  • "; else echo "
  • Solomon Islands
  • "; ob_start(); $results = exec("cat countries.txt | grep SO"); ob_end_clean(); if ($results == 'SO') echo "
  • Somalia
  • "; else echo "
  • Somalia
  • "; ob_start(); $results = exec("cat countries.txt | grep ZA"); ob_end_clean(); if ($results == 'ZA') echo "
  • South Africa
  • "; else echo "
  • South Africa
  • "; ob_start(); $results = exec("cat countries.txt | grep GS"); ob_end_clean(); if ($results == 'GS') echo "
  • South Georgia and the South Sandwich Islands
  • "; else echo "
  • South Georgia and the South Sandwich Islands
  • "; //ob_start(); //$results = exec("cat countries.txt | grep XX"); //ob_end_clean(); // if ($results == 'XX') // echo "
  • South Korea
  • "; // else // echo "
  • South Korea
  • "; ob_start(); $results = exec("cat countries.txt | grep ES"); ob_end_clean(); if ($results == 'ES') echo "
  • Spain
  • "; else echo "
  • Spain
  • "; ob_start(); $results = exec("cat countries.txt | grep LK"); ob_end_clean(); if ($results == 'LK') echo "
  • Sri Lanka
  • "; else echo "
  • Sri Lanka
  • "; ob_start(); $results = exec("cat countries.txt | grep SD"); ob_end_clean(); if ($results == 'SD') echo "
  • Sudan
  • "; else echo "
  • Sudan
  • "; ob_start(); $results = exec("cat countries.txt | grep SR"); ob_end_clean(); if ($results == 'SR') echo "
  • Suriname
  • "; else echo "
  • Suriname
  • "; ob_start(); $results = exec("cat countries.txt | grep SJ"); ob_end_clean(); if ($results == 'SJ') echo "
  • Svalbard and Jan Mayen
  • "; else echo "
  • Svalbard and Jan Mayen
  • "; ob_start(); $results = exec("cat countries.txt | grep SZ"); ob_end_clean(); if ($results == 'SZ') echo "
  • Swaziland
  • "; else echo "
  • Swaziland
  • "; ob_start(); $results = exec("cat countries.txt | grep SE"); ob_end_clean(); if ($results == 'SE') echo "
  • Sweden
  • "; else echo "
  • Sweden
  • "; ob_start(); $results = exec("cat countries.txt | grep CH"); ob_end_clean(); if ($results == 'CH') echo "
  • Switzerland
  • "; else echo "
  • Switzerland
  • "; ob_start(); $results = exec("cat countries.txt | grep SY"); ob_end_clean(); if ($results == 'SY') echo "
  • Syria
  • "; else echo "
  • Syria
  • "; ?>
    Taiwan"; else echo "
  • Taiwan
  • "; ob_start(); $results = exec("cat countries.txt | grep TJ"); ob_end_clean(); if ($results == 'TJ') echo "
  • Tajikistan
  • "; else echo "
  • Tajikistan
  • "; ob_start(); $results = exec("cat countries.txt | grep TZ"); ob_end_clean(); if ($results == 'TZ') echo "
  • Tanzania
  • "; else echo "
  • Tanzania
  • "; ob_start(); $results = exec("cat countries.txt | grep TH"); ob_end_clean(); if ($results == 'TH') echo "
  • Thailand
  • "; else echo "
  • Thailand
  • "; ob_start(); $results = exec("cat countries.txt | grep TL"); ob_end_clean(); if ($results == 'TL') echo "
  • Timor-Leste
  • "; else echo "
  • Timor-Leste
  • "; ob_start(); $results = exec("cat countries.txt | grep TG"); ob_end_clean(); if ($results == 'TG') echo "
  • Togo
  • "; else echo "
  • Togo
  • "; ob_start(); $results = exec("cat countries.txt | grep TK"); ob_end_clean(); if ($results == 'TK') echo "
  • Tokelau
  • "; else echo "
  • Tokelau
  • "; ob_start(); $results = exec("cat countries.txt | grep TO"); ob_end_clean(); if ($results == 'TO') echo "
  • Tonga
  • "; else echo "
  • Tonga
  • "; ob_start(); $results = exec("cat countries.txt | grep TT"); ob_end_clean(); if ($results == 'TT') echo "
  • Trinidad and Tobago
  • "; else echo "
  • Trinidad and Tobago
  • "; ob_start(); $results = exec("cat countries.txt | grep TN"); ob_end_clean(); if ($results == 'TN') echo "
  • Tunisia
  • "; else echo "
  • Tunisia
  • "; //ob_start(); //$results = exec("cat countries.txt | grep TR"); //ob_end_clean(); // if ($results == 'TR') // echo "
  • Turkey
  • "; // else // echo "
  • Turkey
  • "; ob_start(); $results = exec("cat countries.txt | grep TM"); ob_end_clean(); if ($results == 'TM') echo "
  • Turkmenistan
  • "; else echo "
  • Turkmenistan
  • "; ob_start(); $results = exec("cat countries.txt | grep TC"); ob_end_clean(); if ($results == 'TC') echo "
  • Turks and Caicos Islands
  • "; else echo "
  • Turks and Caicos Islands
  • "; ob_start(); $results = exec("cat countries.txt | grep TV"); ob_end_clean(); if ($results == 'TV') echo "
  • Tuvalu
  • "; else echo "
  • Tuvalu
  • "; ?>
    Uganda"; else echo "
  • Uganda
  • "; //ob_start(); //$results = exec("cat countries.txt | grep UA"); //ob_end_clean(); // if ($results == 'UA') // echo "
  • Ukraine
  • "; // else // echo "
  • Ukraine
  • "; ob_start(); $results = exec("cat countries.txt | grep AE"); ob_end_clean(); if ($results == 'AE') echo "
  • United Arab Emirates
  • "; else echo "
  • United Arab Emirates
  • "; ob_start(); $results = exec("cat countries.txt | grep GB"); ob_end_clean(); if ($results == 'GB') echo "
  • United Kingdom
  • "; else echo "
  • United Kingdom
  • "; ob_start(); $results = exec("cat countries.txt | grep US"); ob_end_clean(); if ($results == 'US') echo "
  • United States
  • "; else echo "
  • United States
  • "; ob_start(); $results = exec("cat countries.txt | grep UM"); ob_end_clean(); if ($results == 'UM') echo "
  • United States Minor Outlying Islands
  • "; else echo "
  • United States Minor Outlying Islands
  • "; ob_start(); $results = exec("cat countries.txt | grep UY"); ob_end_clean(); if ($results == 'UY') echo "
  • Uruguay
  • "; else echo "
  • Uruguay
  • "; ob_start(); $results = exec("cat countries.txt | grep UZ"); ob_end_clean(); if ($results == 'UZ') echo "
  • Uzbekistan
  • "; else echo "
  • Uzbekistan
  • "; ?>
    Vanuatu"; else echo "
  • Vanuatu
  • "; //ob_start(); //$results = exec("cat countries.txt | grep VE"); //ob_end_clean(); // if ($results == 'VE') // echo "
  • Venezuela
  • "; // else // echo "
  • Venezuela
  • "; //ob_start(); //$results = exec("cat countries.txt | grep VN"); //ob_end_clean(); // if ($results == 'VN') // echo "
  • Vietnam
  • "; // else // echo "
  • Vietnam
  • "; ob_start(); $results = exec("cat countries.txt | grep VG"); ob_end_clean(); if ($results == 'VG') echo "
  • Virgin Islands, British
  • "; else echo "
  • Virgin Islands, British
  • "; ob_start(); $results = exec("cat countries.txt | grep VI"); ob_end_clean(); if ($results == 'VI') echo "
  • Virgin Islands, U.S.
  • "; else echo "
  • Virgin Islands, U.S.
  • "; ?>
    Wallis and Futuna Islands"; else echo "
  • Wallis and Futuna Islands
  • "; ob_start(); $results = exec("cat countries.txt | grep EH"); ob_end_clean(); if ($results == 'EH') echo "
  • Western Sahara
  • "; else echo "
  • Western Sahara
  • "; ?>
  • <insert easter egg>
    Yemen"; else echo "
  • Yemen
  • "; //ob_start(); //$results = exec("cat countries.txt | grep XX"); //ob_end_clean(); // if ($results == 'XX') // echo "
  • Yugoslavia
  • "; // else // echo "
  • Yugoslavia
  • "; ?>
    Zambia"; else echo "
  • Zambia
  • "; ob_start(); $results = exec("cat countries.txt | grep ZW"); ob_end_clean(); if ($results == 'ZW') echo "
  • Zimbabwe
  • "; else echo "
  • Zimbabwe
  • "; ?>
Usage
Check the country that you would like to block completely. Affects in & out traffic.
Warning! - Apply after every firewall change or state reset. Use at your own risk.


'0') echo "Running"; else echo "NOT running"; //Get Errors if exists ob_start(); $results = exec("tail -r errorOUT.txt"); ob_end_clean(); echo "
"; echo $results; echo ""; ?> "; ?>