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

[REQ] Need GEO Script!

Discussion in 'FaceBook' started by KHalnay4k, Jul 6, 2011.

  1. KHalnay4k

    KHalnay4k Junior Member

    Joined:
    Mar 11, 2011
    Messages:
    167
    Likes Received:
    38
    Location:
    . .. -_- Owl City -_- .. .
    Hello Mates! =)

    am in Damn need of GEO Script to Target traffic on different gateways .. .


    could u People please Help me .. .


    or tell me from where can i get it ? =)

    Regards,
    KHalnay4k
     
  2. RootShellvb

    RootShellvb Junior Member

    Joined:
    Jan 29, 2009
    Messages:
    188
    Likes Received:
    211
    Occupation:
    CEO
    Location:
    Casablanca, Morocco
    Home Page:
    Hello,

    If you want a limited and free one :
    Code:
    http://www.blackhatworld.com/blackhat-seo/cloaking-content-generators/175546-free-geo-redirect-cloaking.html
    If you want a script with premium features, Shoot me a PM, I can code it for you
     
  3. auuuu

    auuuu Elite Member

    Joined:
    Jul 10, 2010
    Messages:
    1,534
    Likes Received:
    349
    Occupation:
    Social Influencer
    Location:
    England
  4. sirgold

    sirgold Supreme Member

    Joined:
    Jun 25, 2010
    Messages:
    1,260
    Likes Received:
    645
    Occupation:
    Busy proving the Pareto principle right
    Location:
    A hot one
    You'll find the geoIP.dat database file and a bunch other includes on the maxmind website, get the free version for php, extract it, place it where the php file is and you're good to go with this little snippet ;)


    Add as many country codes / cases as you see fit and enjoy!

    Code:
    <?php
    
    include("geoip.inc");
    $ip=$_SERVER['REMOTE_ADDR'];
    $gi = geoip_open("GeoIP.dat",GEOIP_STANDARD);
    
    $country_code = geoip_country_code_by_addr($gi, "$ip");
    
    // Country name is not used so commented
    // Get Country Name based on source IP
    //$country = geoip_country_name_by_addr($gi, "$ip");
    
    geoip_close($gi);
    
    switch($country_code) {
      case "US": header("Location: http://Your_American_page"); break;
      case "CA": header("Location: http://Your_Canadian_Page"); break;
      case "UK": header("Location: http://Your_U.K._Page"); break;
      case "AU": header("Location: http://Your_Australian_Page"); break;
      default: header("Location: http://Where_the_rest_of_the_visitors_go");
    }
    ?>
    
     
  5. RootShellvb

    RootShellvb Junior Member

    Joined:
    Jan 29, 2009
    Messages:
    188
    Likes Received:
    211
    Occupation:
    CEO
    Location:
    Casablanca, Morocco
    Home Page:
    You said to download geoIP.dat and to include in php code geoip.inc :confused: ???
     
  6. KHalnay4k

    KHalnay4k Junior Member

    Joined:
    Mar 11, 2011
    Messages:
    167
    Likes Received:
    38
    Location:
    . .. -_- Owl City -_- .. .
    ^^ +1

    where is .inc file ??
     
  7. goines

    goines Newbie

    Joined:
    Jan 30, 2011
    Messages:
    48
    Likes Received:
    13
    there you go
    Code:
    hxxp://geolite.maxmind.c0m/download/geoip/api/php/geoip.inc
     
  8. sirgold

    sirgold Supreme Member

    Joined:
    Jun 25, 2010
    Messages:
    1,260
    Likes Received:
    645
    Occupation:
    Busy proving the Pareto principle right
    Location:
    A hot one
    Maybe if you guys take at least the little action it takes to download the actual package I suggested and -kindly- take the time to unzip it, chances are you'll find it, right? ;)

    This is a BH forum not kindergarten... lol
     
  9. KHalnay4k

    KHalnay4k Junior Member

    Joined:
    Mar 11, 2011
    Messages:
    167
    Likes Received:
    38
    Location:
    . .. -_- Owl City -_- .. .

    Yeah , True ;)

    This is BHW Not Kindergarten :)

    PLease reply Full post .. .

    Never copy half a way :p

    Prim &&. Proper =) Btw. thanks For getting into .. .