1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Script that determines a visitors country and then displays a link paged on his/her locati

Discussion in 'Black Hat SEO' started by spillsplash, Mar 30, 2010.

  1. spillsplash

    spillsplash Junior Member

    Joined:
    Feb 14, 2010
    Messages:
    121
    Likes Received:
    53
    Need something to do this. I'm losing a lot of conversions do to international redirects, etc. I'd like to find a script that shows a certain link based on the visitors location.

    If nothing like this exists, I will need to find a way to send certain countries to page a, others to page b and so on.

    Any one have any knowledge in this area?:D
     
  2. LightHouse

    LightHouse Junior Member

    Joined:
    Apr 9, 2009
    Messages:
    100
    Likes Received:
    47
    It's called geo targetting, you could even do it with .htaccess. look up blocking countries with .htaccess, and you could manually redo the entries per country. There is also scripts that do this. All easily googled for.
     
    • Thanks Thanks x 1
  3. spillsplash

    spillsplash Junior Member

    Joined:
    Feb 14, 2010
    Messages:
    121
    Likes Received:
    53
    wasn't sure what it was called. Going to look up on it now. Thanks:cool:
     
  4. spillsplash

    spillsplash Junior Member

    Joined:
    Feb 14, 2010
    Messages:
    121
    Likes Received:
    53
    found this one but I'm not sure how to get the little country abbreviations for the countries I need to redirect. I need to do this for the following countries:

    Germany
    Netherlands
    Canada
    Saudi Arabia
    Ukraine

    this the script I found:

    Code:
    [INDENT] [FONT=Verdana][COLOR=#0000ff]<head>
    <script language[/COLOR][/FONT][FONT=Verdana]="Javascript"[/FONT][FONT=Verdana][COLOR=#800000] [/COLOR][/FONT][FONT=Verdana][COLOR=#0000ff]src[/COLOR][/FONT][FONT=Verdana]="http://gd.geobytes.com/Gd?[B]after[/B]=-1"[/FONT][FONT=Verdana][COLOR=#0000ff]></script>
    <script language[/COLOR][/FONT][FONT=Verdana]="javascript"[/FONT][FONT=Verdana][COLOR=#0000ff]>
    [/COLOR][/FONT][FONT=Verdana][COLOR=#800000]var sSpanishLocations="ES,MX,GT,SV,HN,NI,CR,EC,PE,CU,DO,PR,PA,VE,CO,BO,AR,CL,PY,UY";
    var sGermanLocations="DE,AT,CH";
    var sFrenchLocations="FR,BE";
    var sPhilippineLocations="PH";
    var sKoreanLocations="KP,KR";
    var sChineseLocations="CN";
    if(typeof(sGeobytesLocationCode)!="undefined")
    {
       var sCountryCode=sGeobytesLocationCode.substring(0,2);
       if(sCountryCode!="US"&&sCountryCode!="CA")
       {
          if(sSpanishLocations.indexOf(sCountryCode)>=0)
          {
             // Spanish Visitors would go here
             document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=Spanish.htm'>");
          }else if(sGermanLocations.indexOf(sCountryCode)>=0)
          {
             // German Visitors would go here
             document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=German.htm'>");
          }else if(sFrenchLocations.indexOf(sCountryCode)>=0)
          {
             // French Visitors would go here
             document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=French.htm'>");
          }else if(sPhilippineLocations.indexOf(sCountryCode)>=0)
          {
             // Philippine Visitors would go here
             document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=Philippine.htm'>");
          }else if(sKoreanLocations.indexOf(sCountryCode)>=0)
          {
             // Korean Visitors would go here
             document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=Korean.htm'>");
          }else if(sChineseLocations.indexOf(sCountryCode)>=0)
          {
             // Chinese Visitors would go here
             document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=Chinese.htm'>");
          }else
          {
             // World Visitors would go here
             document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=World.htm'>");
          }
       }
    }
    [/COLOR][/FONT][FONT=Verdana][COLOR=#0000ff]</script>
    </head>[/COLOR][/FONT] [/INDENT]
     
  5. showboytridin

    showboytridin Regular Member

    Joined:
    Sep 5, 2009
    Messages:
    348
    Likes Received:
    714
    Location:
    127.0.0.1
    Get a free database with ip's based on countries and then redirect properly. It's easy code.
    Posted via Mobile Device