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

Anyone heard of Geo-Rotating webpage??

Discussion in 'Making Money' started by anagfan, Feb 28, 2009.

  1. anagfan

    anagfan Junior Member

    Joined:
    Dec 25, 2008
    Messages:
    103
    Likes Received:
    5
    Occupation:
    Student
    Location:
    Singapore
    Hiye frds,

    Just heard Geo-Rotating could increase affiliate conversions as we can target our offers to specific countries..

    If some know this...I would be helpful to you to see the code for that..

    Thank you in advance :)
     
  2. Ramage

    Ramage Registered Member

    Joined:
    Apr 9, 2008
    Messages:
    94
    Likes Received:
    82
    Location:
    New Zealand
    Download:

    http://www.download3k.com/Install-GeoLite-Country.html
    http://www.maxmind.com/download/geoip/api/php/geoip.inc

    Then have index.php (or whatever) with:

    Code:
    <?php
    include("geoip.inc");
    $gi = geoip_open("GeoIP.dat",GEOIP_STANDARD);
    $country = geoip_country_code_by_addr($gi, $REMOTE_ADDR);
    geoip_close($gi);
    
    switch($country)
        {
            case 'US':
                header( 'Location: http://www.yourUSoffer.com' ) ;
                break;
            case 'CA':
                header( 'Location: http://www.yourCAoffer.com' ) ;     
                break;
            default:
                //default redirect
                header( 'Location: http://www.youINToffer' ) ;  
        }
    
    
    ?>
     
    • Thanks Thanks x 4
  3. anagfan

    anagfan Junior Member

    Joined:
    Dec 25, 2008
    Messages:
    103
    Likes Received:
    5
    Occupation:
    Student
    Location:
    Singapore
    Thankyou Very much..