GeoIP Script Test


// Here's an example which redirects visitors to your specified URL for your targeted country code:

target['All'] = "http://www.microsoft.com"; // Redirects non-targeted/other visitors to this URL. target['US'] = "https://newsbuzz.in/2013/02/08/usa-url/"; // Redirects' "US" (United States) Visitors to this URL. target['FR'] = "https://newsbuzz.in/2013/02/08/frence-url/"; // Redirects' "GB" (United Kingdom) Visitors to this URL. target['AU'] = "https://newsbuzz.in/2013/02/08/au-url/"; // Redirects' "CA" (Canada) Visitors to this URL.

/* =============== DON'T EDIT THE BELOW CODE =============== */ var visitorCountryCode = geoip_country_code(); var redirectURL = target[visitorCountryCode]; if(redirectURL == null) redirectURL = target['All']; if(redirectURL) window.top.location.href = redirectURL; /* =============== DON'T EDIT THE ABOVE CODE =============== */ // ]]> ​

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: