Will The “EU” Europe And “AP” Asia-Pacific Entries Save Me From Having To List Individual Country Codes?
Posted in FAQs
Is using the “EU” code or “AP” code like “grouping” countries together saving from having to list them individually?
MaxMind, the provider of the database that we use for our products answers this best. Here is the response pulled from MaxMind’s FAQ.
######
“EU” and “AP” codes are used in the country code field when there are no clear indications as to where the end users are located. For example, we may mark a corporate proxy located in London, GB as “EU” if we can see that the ultimate end users are connecting from various parts of Europe. Marking that IP as coming from London would not correctly represent where end users are coming from.
Please note “EU” and “AP” codes do not include all IPs covered under those respective regions. Blocking “EU” will only block IPs with the conditions described above and will not affect all the European countries with specific country codes. To block “EU”, you need to list the specific countries individually.
######
Below is a list of European country codes, including “EU” to hopefully help you save time when you are “targeting” or “blocking” European web site traffic.
The following countries are included in the list: Andorra, Albania, Austria, Bosnia-Herzegovina, Belgium, Bulgaria, Belarus, Switzerland, Cyprus, Czech Republic, Germany, Denmark, Estonia, Spain, Finland, Faroe Islands, France, Gibraltar, Greece, Croatia, Hungary, Ireland, Iceland, Italy, Liechtenstein, Lithuania, Luxembourg, Latvia, Monaco, Moldavia, Macedonia, Malta, Netherlands, Norway, Poland, Portugal, Romania, Russian Federation, Sweden, Slovenia, Svalbard and Jan Mayen Islands, Slovak Republic, San Marino, Turkey, Ukraine, Great Britain (UK), Vatican City State, Yugoslavia
European Country Code List: EU, AD, AL, AT, BA, BE, BG, BY, CH, CY, CZ, DE, DK, EE, ES, FI, FO, FR, GG, GI, GR, HR, HU, IE, IS, IT, LI, LT, LU, LV, MC, MD, MK, MT, NL, NO, PL, PT, RO, RU, SE, SI, SJ, SK, SM, TR, UA, GB, VA, YU
Here is some code that you can use for the PHP script to “target” or “block” European countries:
<?php
$geo_ctry = array("EU", "AD", "AL", "AT", "BA", "BE", "BG", "BY", "CH", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FO", "FR", "GG", "GI", "GR", "HR", "HU", "IE", "IS", "IT", "LI", "LT", "LU", "LV", "MC", "MD", "MK", "MT", "NL", "NO", "PL", "PT", "RO", "RU", "SE", "SI", "SJ", "SK", "SM", "TR", "UA", "GB", "VA", "YU");
if (in_array($GEO_COUNTRY, $geo_ctry)) {
// your conditional content here
}
?>Below is a list of Asia-Pacific country codes, including “AP” to hopefully help you save time when you are “targeting” or “blocking” Asia-Pacific web site traffic.
The following countries are included in the list: Australia, Brunei Darussalam, Cambodia, China, Hong Kong, Macau, Fiji, Indonesia, Japan, Kiribati, North Korea, South Korea, Laos, Malaysia, Marshall Islands, Micronesia, Nauru, New Zealand, Palau, Papua New Guinea, Philippines, Samoa, Singapore, Solomon Islands, Thailand, East Timor, Tonga, Taiwan, Tuvalu, Vanuatu, Vietnam, American Samoa, Guam, Northern Mariana Islands
Asia-Pacific Country Code List: AP, AU, BN, KH, CN, HK, MO, FJ, ID, JP, KI, KP, KR, LA, MY, MH, FM, NR, NZ, PW, PG, PH, WS, SG, SB, TH, TP, TO, TW, TV, VU, VN, AS, GU, MP
Here is some code that you can use for the PHP script to “target” or “block” Asia-Pacific countries:
<?php
$geo_ctry = array("AP", "AU", "BN", "KH", "CN", "HK", "MO", "FJ", "ID", "JP", "KI", "KP", "KR", "LA", "MY", "MH", "FM", "NR", "NZ", "PW", "PG", "PH", "WS", "SG", "SB", "TH", "TP", "TO", "TW", "TV", "VU", "VN", "AS", "GU", "MP");
if (in_array($GEO_COUNTRY, $geo_ctry)) {
// your conditional content here
}
?>Hope that helps. I’m not very well traveled so if I left any countries out ( or included any that do not belong ) kindly let me know and I will make the corrections as soon as possible



Payments are processed by PayPal®, therefore your credit card information is safe and will never be stored (or seen) by GeoTargetingScripts.com ( MaGiKS, Inc. ).
The "readme.html" file that comes with your download contains the steps to get your product installed, however, we understand that there are many different variables that could hinder the install process, so we are here to help!