Redirect Users based on IP address - Geo-targeting Traffic

ip address location Products

Contact us Contact us
FAQ F.A.Q.
Purchase Purchase
Downloads Downloads
Contact us Contact us

IP Address Locator
IP Geolocation Articles & Tutorial (Free)

Install Target Country by IP Address

I would like to do is redirect US, Japanese or European and rest of the world visitors to different price pages with only the $, JPY or prices
  • Add the next line at the beginning of
    http://www.yourdomain.com/order.php
  • <?PHP $anp_path="cr/"; include($anp_path."cr.php"); ?>

    or (if cr/ directory is a level up)

    <?PHP $anp_path="../cr/"; include($anp_path."cr.php"); ?>

  • If you want Target Country by IP Address to safely redirect all visitors from country US,JP and UK and to accept all the other visitors
  • Edit cr/cr.php and set :
    $anp_default_reject_link="";
    $anp_default_redirect_link="";

  • edit the Redirection Rules file(cur_re_rules.php)
  • for country US uncomment the line and place an invalid url for it
    ($anp_rr["US"]="http://www.yourdomain.com/order_us.html") .

    for country JP uncomment the line and place an invalid url for it
    ($anp_rr["JP"]="http://www.yourdomain.com/order_jp.html") .

    Do the same for UK ($anp_rr["UK"]="http://www.yourdomain.com/order_uk.html")

  • To test and debug , poin your browser to http://www.yourdomain.com/order.php
    When you are satisfied, set _DEBUG_MODE to 0.
    You must edit cr/cr.php and modify it.
    define("_DEBUG_MODE","0");

 


Copyright ©2001-2017 Jgsoft Associates. All rights reserved.