I have a CSV file with 6 fields IP_FROM, IP_TO, COUNTRY_CODE, COUNTRY_NAME, CONTINENT_CODE, CONTINENT_NAME. Fields 1 and 2 consist of an IP address range run together as a multi digit number ie 2162545168 to 2162545407 (no leading zeros). The other important field is the country name which for the purposes of this code needs to distinguish between UNITED STATES, UNITED KINGDOM and neither.
Basically I need to pull the IP address of the visitor to my site, send a search to the CSV file, and if a UK visitor has visted .com, send them to .com/uk so I can give them the option of going to the UK site and vice versa send a US visitor to .co.uk/us. If neither country is identified send them to .com/unidentifiedcountry.
CSV file (Zipped) is available from
http://www.ipligence.com/freetools/ipligence-community-200701.zip
Please can someone code something for me either using this or something similar (must be free with no limits on searches etc.) Thank you
2007-02-16
10:55:57
·
4 answers
·
asked by
Status: Paranoia
4