Redirect Users based on IP address - Geo-targeting Traffic

ip address location Products

Contact us Contact us
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
  • <?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 :

  • 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"]="") .

    for country JP uncomment the line and place an invalid url for it
    ($anp_rr["JP"]="") .

    Do the same for UK ($anp_rr["UK"]="")

  • To test and debug , poin your browser to
    When you are satisfied, set _DEBUG_MODE to 0.
    You must edit cr/cr.php and modify it.


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