monetizer expertmobi
Dismiss Notice
Welcome to Our Community
Wanting to join the rest of our members? Feel free to sign up today.

How do I redirect Specific Countries?

Discussion in 'General Affiliate Marketing Forum' started by skypigeon, Nov 8, 2012.

  1. skypigeon

    skypigeon Affiliate affiliate

    43
    1
    0
    How do I redirect Specific Countries? and other countries would not be redirected I tried googling it for hours. Unfortunately I did not find any... One even didnt work at all... thanks for your reply
     
  2. monetizer
  3. Blue

    Blue Affiliate affiliate

    10
    0
    0
    Well you can use a Geo IP script and filter your traffic and redirect to various landing pages.
     
  4. JohnCPAAlpha

    JohnCPAAlpha Affiliate Manager Affiliate Manager affiliate

    310
    0
    0
    Here is a lesson on GEO Redirection. I found it and thought I would share it with you. GEO Redirection
     
  5. java

    java Affiliate affiliate

    195
    25
    18
    You can target more then just the country with bevo. like the state or down to the city and tracking them all from one platform.

    This is one of the feature i use daily
    [​IMG]


    you get one link to give to your traffic source and it does all the work.
     
  6. skypigeon

    skypigeon Affiliate affiliate

    43
    1
    0
    what webiste is it sir?
     
  7. skypigeon

    skypigeon Affiliate affiliate

    43
    1
    0
    GEO Redirection..............


    <?php
    // Next two lines are for HostGator
    require_once 'Net/GeoIP.php';
    $geoip = Net_GeoIP::getInstance('GeoIP.dat');

    try {
    $country = $geoip->lookupCountryCode($_SERVER['REMOTE_ADDR']);

    switch((string)$country) {
    case 'GR':
    $url = "http://xxx.html";
    break;
    case 'PH':
    $url = "http://xxx.html";
    break;

    }

    header('Location: '.$url);
    } catch (Exception $e) {
    // Handle exception
    }
    ?>



    HOw do i put this inside the html file??? I tried pasting it and it didnt work
     
  8. astonishin

    astonishin Affiliate Manager Affiliate Manager affiliate

    95
    54
    18
    You need to put in a php file
     
  9. skypigeon

    skypigeon Affiliate affiliate

    43
    1
    0
    I did this i puti t on a php file... index.php but it does not work
     
  10. java

    java Affiliate affiliate

    195
    25
    18
    what you could also do if you don't want to play with code. Just use bevomedia
    its free and target and track what you want.
    geo redirect Specific Countries.

    [​IMG]


    then grab your destination url from bevo
    [​IMG]

    then if you want it on your site, put it in a index.php

    Code:
    <?php
    
       header( 'Location: http://affportal-lb.bevomedia.com/direct_link/direct-link/id/VUDNIFLWUZR/adVar/a1' ) ;
    
    ?>
    Change the code on the redirect page to be simply this. You need to replace the URL above with the URL you wish to direct to.

    then it would redirect to the right geo country.
     
  11. skypigeon

    skypigeon Affiliate affiliate

    43
    1
    0
    error:



    Warning: require_once(/home/your-domain/php/Net/GeoIP.php) [function.require-once]: failed to open stream: No such file or directory in /home/utmdiftr/public_html/redir.php on line 4

    Fatal error: require_once() [function.require]: Failed opening required '/home/your-domain/php/Net/GeoIP.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/utmdiftr/public_html/redir.php on line 4
     
  12. IMsights

    IMsights Affiliate affiliate

    112
    2
    18
    Looks like you haven't installed the required Net_GeoIP package? These first 2 lines are looking for the Net_GeoIP files:
    What hosting are you using? Try to show them the website and ask if they can help you to install it.
     

Featured Resources (View All)

MI