Skip to content

Instantly share code, notes, and snippets.

@astrataro
Created February 20, 2017 19:03
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save astrataro/bbf1b8dfa3d2e5efda470efbc5a7a269 to your computer and use it in GitHub Desktop.
Save astrataro/bbf1b8dfa3d2e5efda470efbc5a7a269 to your computer and use it in GitHub Desktop.
Surge GEOIP ruleset
# According to [ISO 3166 Country Codes](https://dev.maxmind.com/geoip/legacy/codes/iso3166/) and [ISO 3166 Country Codes with Associated Continent](https://dev.maxmind.com/geoip/legacy/codes/country_continent/)
# Official documents can be found [here](https://www.iso.org/iso/home/standards/country_codes.htm) and [here](https://www.iso.org/obp/ui/#search)
# China
GEOIP, CN, 🇨🇳CNProxy
# Africa
GEOIP, AO, 🇿🇦AFProxy // Angola, AF
GEOIP, BF, 🇿🇦AFProxy // Burkina Faso, AF
GEOIP, BI, 🇿🇦AFProxy // Burundi, AF
GEOIP, BJ, 🇿🇦AFProxy // Benin, AF
GEOIP, BW, 🇿🇦AFProxy // Botswana, AF
GEOIP, CD, 🇿🇦AFProxy // Congo, The Democratic Republic of the, AF
GEOIP, CF, 🇿🇦AFProxy // Central African Republic, AF
GEOIP, CG, 🇿🇦AFProxy // Congo, AF
GEOIP, CI, 🇿🇦AFProxy // Cote d'Ivoire, AF
GEOIP, CM, 🇿🇦AFProxy // Cameroon, AF
GEOIP, CV, 🇿🇦AFProxy // Cape Verde, AF
GEOIP, DJ, 🇿🇦AFProxy // Djibouti, AF
GEOIP, DZ, 🇿🇦AFProxy // Algeria, AF
GEOIP, EG, 🇿🇦AFProxy // Egypt, AF
GEOIP, EH, 🇿🇦AFProxy // Western Sahara, AF
GEOIP, ER, 🇿🇦AFProxy // Eritrea, AF
GEOIP, ET, 🇿🇦AFProxy // Ethiopia, AF
GEOIP, GA, 🇿🇦AFProxy // Gabon, AF
GEOIP, GH, 🇿🇦AFProxy // Ghana, AF
GEOIP, GM, 🇿🇦AFProxy // Gambia, AF
GEOIP, GN, 🇿🇦AFProxy // Guinea, AF
GEOIP, GQ, 🇿🇦AFProxy // Equatorial Guinea, AF
GEOIP, GW, 🇿🇦AFProxy // Guinea-Bissau, AF
GEOIP, KE, 🇿🇦AFProxy // Kenya, AF
GEOIP, KM, 🇿🇦AFProxy // Comoros, AF
GEOIP, LR, 🇿🇦AFProxy // Liberia, AF
GEOIP, LS, 🇿🇦AFProxy // Lesotho, AF
GEOIP, LY, 🇿🇦AFProxy // Libyan Arab Jamahiriya, AF
GEOIP, MA, 🇿🇦AFProxy // Morocco, AF
GEOIP, MG, 🇿🇦AFProxy // Madagascar, AF
GEOIP, ML, 🇿🇦AFProxy // Mali, AF
GEOIP, MR, 🇿🇦AFProxy // Mauritania, AF
GEOIP, MU, 🇿🇦AFProxy // Mauritius, AF
GEOIP, MW, 🇿🇦AFProxy // Malawi, AF
GEOIP, MZ, 🇿🇦AFProxy // Mozambique, AF
GEOIP, NA, 🇿🇦AFProxy // Namibia, AF
GEOIP, NE, 🇿🇦AFProxy // Niger, AF
GEOIP, NG, 🇿🇦AFProxy // Nigeria, AF
GEOIP, RE, 🇿🇦AFProxy // Reunion, AF
GEOIP, RW, 🇿🇦AFProxy // Rwanda, AF
GEOIP, SC, 🇿🇦AFProxy // Seychelles, AF
GEOIP, SD, 🇿🇦AFProxy // Sudan, AF
GEOIP, SH, 🇿🇦AFProxy // Saint Helena, AF
GEOIP, SL, 🇿🇦AFProxy // Sierra Leone, AF
GEOIP, SN, 🇿🇦AFProxy // Senegal, AF
GEOIP, SO, 🇿🇦AFProxy // Somalia, AF
GEOIP, ST, 🇿🇦AFProxy // Sao Tome and Principe, AF
GEOIP, SZ, 🇿🇦AFProxy // Swaziland, AF
GEOIP, TD, 🇿🇦AFProxy // Chad, AF
GEOIP, TG, 🇿🇦AFProxy // Togo, AF
GEOIP, TN, 🇿🇦AFProxy // Tunisia, AF
GEOIP, TZ, 🇿🇦AFProxy // Tanzania, United Republic of, AF
GEOIP, UG, 🇿🇦AFProxy // Uganda, AF
GEOIP, YT, 🇿🇦AFProxy // Mayotte, AF
GEOIP, ZA, 🇿🇦AFProxy // South Africa, AF
GEOIP, ZM, 🇿🇦AFProxy // Zambia, AF
GEOIP, ZW, 🇿🇦AFProxy // Zimbabwe, AF
GEOIP, SS, 🇿🇦AFProxy // South Sudan, AF
# Antarctica
GEOIP, AQ, 🇦🇺AUProxy // Antarctica, AN
GEOIP, BV, 🇦🇺AUProxy // Bouvet Island, AN
GEOIP, GS, 🇦🇺AUProxy // South Georgia and the South Sandwich Islands, AN
GEOIP, HM, 🇦🇺AUProxy // Heard Island and McDonald Islands, AN
GEOIP, TF, 🇦🇺AUProxy // French Southern Territories, AN
# Asia
GEOIP, AE, 🇯🇵JPProxy // United Arab Emirates, AS
GEOIP, AF, 🇯🇵JPProxy // Afghanistan, AS
GEOIP, AM, 🇯🇵JPProxy // Armenia, AS
GEOIP, AP, 🇯🇵JPProxy // Asia/Pacific Region, AS
GEOIP, AZ, 🇯🇵JPProxy // Azerbaijan, AS
GEOIP, BD, 🇯🇵JPProxy // Bangladesh, AS
GEOIP, BH, 🇯🇵JPProxy // Bahrain, AS
GEOIP, BN, 🇯🇵JPProxy // Brunei Darussalam, AS
GEOIP, BT, 🇯🇵JPProxy // Bhutan, AS
GEOIP, CC, 🇯🇵JPProxy // Cocos (Keeling) Islands, AS
# GEOIP, CN, 🇯🇵JPProxy // China, AS
GEOIP, CX, 🇯🇵JPProxy // Christmas Island, AS
GEOIP, CY, 🇯🇵JPProxy // Cyprus, AS
GEOIP, GE, 🇯🇵JPProxy // Georgia, AS
GEOIP, HK, 🇯🇵JPProxy // Hong Kong, AS
GEOIP, ID, 🇯🇵JPProxy // Indonesia, AS
GEOIP, IL, 🇯🇵JPProxy // Israel, AS
GEOIP, IN, 🇯🇵JPProxy // India, AS
GEOIP, IO, 🇯🇵JPProxy // British Indian Ocean Territory, AS
GEOIP, IQ, 🇯🇵JPProxy // Iraq, AS
GEOIP, IR, 🇯🇵JPProxy // Iran, Islamic Republic of, AS
GEOIP, JO, 🇯🇵JPProxy // Jordan, AS
GEOIP, JP, 🇯🇵JPProxy // Japan, AS
GEOIP, KG, 🇯🇵JPProxy // Kyrgyzstan, AS
GEOIP, KH, 🇯🇵JPProxy // Cambodia, AS
GEOIP, KP, 🇯🇵JPProxy // Korea, Democratic People's Republic of, AS
GEOIP, KR, 🇯🇵JPProxy // Korea, Republic of, AS
GEOIP, KW, 🇯🇵JPProxy // Kuwait, AS
GEOIP, KZ, 🇯🇵JPProxy // Kazakhstan, AS
GEOIP, LA, 🇯🇵JPProxy // Lao People's Democratic Republic, AS
GEOIP, LB, 🇯🇵JPProxy // Lebanon, AS
GEOIP, LK, 🇯🇵JPProxy // Sri Lanka, AS
GEOIP, MM, 🇯🇵JPProxy // Myanmar, AS
GEOIP, MN, 🇯🇵JPProxy // Mongolia, AS
GEOIP, MO, 🇯🇵JPProxy // Macao, AS
GEOIP, MV, 🇯🇵JPProxy // Maldives, AS
GEOIP, MY, 🇯🇵JPProxy // Malaysia, AS
GEOIP, NP, 🇯🇵JPProxy // Nepal, AS
GEOIP, OM, 🇯🇵JPProxy // Oman, AS
GEOIP, PH, 🇯🇵JPProxy // Philippines, AS
GEOIP, PK, 🇯🇵JPProxy // Pakistan, AS
GEOIP, PS, 🇯🇵JPProxy // Palestinian Territory, AS
GEOIP, QA, 🇯🇵JPProxy // Qatar, AS
GEOIP, SA, 🇯🇵JPProxy // Saudi Arabia, AS
GEOIP, SG, 🇯🇵JPProxy // Singapore, AS
GEOIP, SY, 🇯🇵JPProxy // Syrian Arab Republic, AS
GEOIP, TH, 🇯🇵JPProxy // Thailand, AS
GEOIP, TJ, 🇯🇵JPProxy // Tajikistan, AS
GEOIP, TL, 🇯🇵JPProxy // Timor-Leste, AS
GEOIP, TM, 🇯🇵JPProxy // Turkmenistan, AS
GEOIP, TW, 🇯🇵JPProxy // Taiwan, AS
GEOIP, UZ, 🇯🇵JPProxy // Uzbekistan, AS
GEOIP, VN, 🇯🇵JPProxy // Vietnam, AS
GEOIP, YE, 🇯🇵JPProxy // Yemen, AS
# Europe
GEOIP, AD, 🇪🇺EUProxy // Andorra, EU
GEOIP, AL, 🇪🇺EUProxy // Albania, EU
GEOIP, AT, 🇪🇺EUProxy // Austria, EU
GEOIP, AX, 🇪🇺EUProxy // Aland Islands, EU
GEOIP, BA, 🇪🇺EUProxy // Bosnia and Herzegovina, EU
GEOIP, BE, 🇪🇺EUProxy // Belgium, EU
GEOIP, BG, 🇪🇺EUProxy // Bulgaria, EU
GEOIP, BY, 🇪🇺EUProxy // Belarus, EU
GEOIP, CH, 🇪🇺EUProxy // Switzerland, EU
GEOIP, CZ, 🇪🇺EUProxy // Czech Republic, EU
GEOIP, DE, 🇪🇺EUProxy // Germany, EU
GEOIP, DK, 🇪🇺EUProxy // Denmark, EU
GEOIP, EE, 🇪🇺EUProxy // Estonia, EU
GEOIP, ES, 🇪🇺EUProxy // Spain, EU
GEOIP, EU, 🇪🇺EUProxy // Europe, EU
GEOIP, FI, 🇪🇺EUProxy // Finland, EU
GEOIP, FO, 🇪🇺EUProxy // Faroe Islands, EU
GEOIP, FR, 🇪🇺EUProxy // France, EU
GEOIP, GB, 🇪🇺EUProxy // United Kingdom, EU
GEOIP, GG, 🇪🇺EUProxy // Guernsey, EU
GEOIP, GI, 🇪🇺EUProxy // Gibraltar, EU
GEOIP, GR, 🇪🇺EUProxy // Greece, EU
GEOIP, HR, 🇪🇺EUProxy // Croatia, EU
GEOIP, HU, 🇪🇺EUProxy // Hungary, EU
GEOIP, IE, 🇪🇺EUProxy // Ireland, EU
GEOIP, IM, 🇪🇺EUProxy // Isle of Man, EU
GEOIP, IS, 🇪🇺EUProxy // Iceland, EU
GEOIP, IT, 🇪🇺EUProxy // Italy, EU
GEOIP, JE, 🇪🇺EUProxy // Jersey, EU
GEOIP, LI, 🇪🇺EUProxy // Liechtenstein, EU
GEOIP, LT, 🇪🇺EUProxy // Lithuania, EU
GEOIP, LU, 🇪🇺EUProxy // Luxembourg, EU
GEOIP, LV, 🇪🇺EUProxy // Latvia, EU
GEOIP, MC, 🇪🇺EUProxy // Monaco, EU
GEOIP, MD, 🇪🇺EUProxy // Moldova, Republic of, EU
GEOIP, ME, 🇪🇺EUProxy // Montenegro, EU
GEOIP, MK, 🇪🇺EUProxy // Macedonia, EU
GEOIP, MT, 🇪🇺EUProxy // Malta, EU
GEOIP, NL, 🇪🇺EUProxy // Netherlands, EU
GEOIP, NO, 🇪🇺EUProxy // Norway, EU
GEOIP, PL, 🇪🇺EUProxy // Poland, EU
GEOIP, PT, 🇪🇺EUProxy // Portugal, EU
GEOIP, RO, 🇪🇺EUProxy // Romania, EU
GEOIP, RS, 🇪🇺EUProxy // Serbia, EU
GEOIP, RU, 🇪🇺EUProxy // Russian Federation, EU
GEOIP, SE, 🇪🇺EUProxy // Sweden, EU
GEOIP, SI, 🇪🇺EUProxy // Slovenia, EU
GEOIP, SJ, 🇪🇺EUProxy // Svalbard and Jan Mayen, EU
GEOIP, SK, 🇪🇺EUProxy // Slovakia, EU
GEOIP, SM, 🇪🇺EUProxy // San Marino, EU
GEOIP, TR, 🇪🇺EUProxy // Turkey, EU
GEOIP, UA, 🇪🇺EUProxy // Ukraine, EU
GEOIP, VA, 🇪🇺EUProxy // Holy See (Vatican City State), EU
GEOIP, FX, 🇪🇺EUProxy // France, Metropolitan, EU
# North America
GEOIP, AG, 🇺🇸USProxy // Antigua and Barbuda, NA
GEOIP, AI, 🇺🇸USProxy // Anguilla, NA
GEOIP, AW, 🇺🇸USProxy // Aruba, NA
GEOIP, BB, 🇺🇸USProxy // Barbados, NA
GEOIP, BL, 🇺🇸USProxy // Saint Bartelemey, NA
GEOIP, BM, 🇺🇸USProxy // Bermuda, NA
GEOIP, BS, 🇺🇸USProxy // Bahamas, NA
GEOIP, BZ, 🇺🇸USProxy // Belize, NA
GEOIP, CA, 🇺🇸USProxy // Canada, NA
GEOIP, CR, 🇺🇸USProxy // Costa Rica, NA
GEOIP, CU, 🇺🇸USProxy // Cuba, NA
GEOIP, DM, 🇺🇸USProxy // Dominica, NA
GEOIP, DO, 🇺🇸USProxy // Dominican Republic, NA
GEOIP, GD, 🇺🇸USProxy // Grenada, NA
GEOIP, GL, 🇺🇸USProxy // Greenland, NA
GEOIP, GP, 🇺🇸USProxy // Guadeloupe, NA
GEOIP, GT, 🇺🇸USProxy // Guatemala, NA
GEOIP, HN, 🇺🇸USProxy // Honduras, NA
GEOIP, HT, 🇺🇸USProxy // Haiti, NA
GEOIP, JM, 🇺🇸USProxy // Jamaica, NA
GEOIP, KN, 🇺🇸USProxy // Saint Kitts and Nevis, NA
GEOIP, KY, 🇺🇸USProxy // Cayman Islands, NA
GEOIP, LC, 🇺🇸USProxy // Saint Lucia, NA
GEOIP, MF, 🇺🇸USProxy // Saint Martin, NA
GEOIP, MQ, 🇺🇸USProxy // Martinique, NA
GEOIP, MS, 🇺🇸USProxy // Montserrat, NA
GEOIP, MX, 🇺🇸USProxy // Mexico, NA
GEOIP, NI, 🇺🇸USProxy // Nicaragua, NA
GEOIP, PA, 🇺🇸USProxy // Panama, NA
GEOIP, PM, 🇺🇸USProxy // Saint Pierre and Miquelon, NA
GEOIP, PR, 🇺🇸USProxy // Puerto Rico, NA
GEOIP, SV, 🇺🇸USProxy // El Salvador, NA
GEOIP, TC, 🇺🇸USProxy // Turks and Caicos Islands, NA
GEOIP, TT, 🇺🇸USProxy // Trinidad and Tobago, NA
GEOIP, US, 🇺🇸USProxy // United States, NA
GEOIP, VC, 🇺🇸USProxy // Saint Vincent and the Grenadines, NA
GEOIP, VG, 🇺🇸USProxy // Virgin Islands, British, NA
GEOIP, VI, 🇺🇸USProxy // Virgin Islands, U.S., NA
GEOIP, AN, 🇺🇸USProxy // Netherlands Antilles, NA
GEOIP, BQ, 🇺🇸USProxy // Bonaire, Saint Eustatius and Saba, NA
GEOIP, SX, 🇺🇸USProxy // Sint Maarten, NA
# Australia
GEOIP, AS, 🇦🇺AUProxy // American Samoa, OC
GEOIP, AU, 🇦🇺AUProxy // Australia, OC
GEOIP, CK, 🇦🇺AUProxy // Cook Islands, OC
GEOIP, FJ, 🇦🇺AUProxy // Fiji, OC
GEOIP, FM, 🇦🇺AUProxy // Micronesia, Federated States of, OC
GEOIP, GU, 🇦🇺AUProxy // Guam, OC
GEOIP, KI, 🇦🇺AUProxy // Kiribati, OC
GEOIP, MH, 🇦🇺AUProxy // Marshall Islands, OC
GEOIP, MP, 🇦🇺AUProxy // Northern Mariana Islands, OC
GEOIP, NC, 🇦🇺AUProxy // New Caledonia, OC
GEOIP, NF, 🇦🇺AUProxy // Norfolk Island, OC
GEOIP, NR, 🇦🇺AUProxy // Nauru, OC
GEOIP, NU, 🇦🇺AUProxy // Niue, OC
GEOIP, NZ, 🇦🇺AUProxy // New Zealand, OC
GEOIP, PF, 🇦🇺AUProxy // French Polynesia, OC
GEOIP, PG, 🇦🇺AUProxy // Papua New Guinea, OC
GEOIP, PN, 🇦🇺AUProxy // Pitcairn, OC
GEOIP, PW, 🇦🇺AUProxy // Palau, OC
GEOIP, SB, 🇦🇺AUProxy // Solomon Islands, OC
GEOIP, TK, 🇦🇺AUProxy // Tokelau, OC
GEOIP, TO, 🇦🇺AUProxy // Tonga, OC
GEOIP, TV, 🇦🇺AUProxy // Tuvalu, OC
GEOIP, UM, 🇦🇺AUProxy // United States Minor Outlying Islands, OC
GEOIP, VU, 🇦🇺AUProxy // Vanuatu, OC
GEOIP, WF, 🇦🇺AUProxy // Wallis and Futuna, OC
GEOIP, WS, 🇦🇺AUProxy // Samoa, OC
# South America
GEOIP, AR, 🇧🇷SAProxy // Argentina, SA
GEOIP, BO, 🇧🇷SAProxy // Bolivia, SA
GEOIP, BR, 🇧🇷SAProxy // Brazil, SA
GEOIP, CL, 🇧🇷SAProxy // Chile, SA
GEOIP, CO, 🇧🇷SAProxy // Colombia, SA
GEOIP, EC, 🇧🇷SAProxy // Ecuador, SA
GEOIP, FK, 🇧🇷SAProxy // Falkland Islands (Malvinas), SA
GEOIP, GF, 🇧🇷SAProxy // French Guiana, SA
GEOIP, GY, 🇧🇷SAProxy // Guyana, SA
GEOIP, PE, 🇧🇷SAProxy // Peru, SA
GEOIP, PY, 🇧🇷SAProxy // Paraguay, SA
GEOIP, SR, 🇧🇷SAProxy // Suriname, SA
GEOIP, UY, 🇧🇷SAProxy // Uruguay, SA
GEOIP, VE, 🇧🇷SAProxy // Venezuela, SA
GEOIP, CW, 🇧🇷SAProxy // Curacao, SA
# Others
GEOIP, A1, Proxy // Anonymous Proxy, --
GEOIP, A2, Proxy // Satellite Provider, --
GEOIP, O1, Proxy // Other Country, --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment