Target Country by IP Address allows you to redirect your traffic based on country

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

If you want to use Target Country by IP Address to safely reject all visitors from country XX and YY and to accept all the other visitors
  • Add the next line at the beginning of EVERY PAGE YOU NEED TO REDIRECT VISITORS
  • <?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"); ?>

  • Edit cr/cr.php ,You must set :
    $anp_default_reject_link="";
    $anp_default_redirect_link="";

  • edit the Redirection Rules file(cur_re_rules.php), for country XX uncomment the line and place an invalid url for it (XX=error.php) . Do the same for YY.
  • $anp_rr["XX"]="http://www.google.com"

    $anp_rr["YY"]="http://www.google.ca"

  • To test and debug , poin your browser to http://www.yourdomain.com
    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.