• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Locate a geographical customer position

Guest
Apr 05, 2014 Apr 05, 2014

Copy link to clipboard

Copied

I would like to geographically locate the position of the customer who logging-in my web application: is it possible? My web application is Coldfusion 8 developed.

Views

305

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 05, 2014 Apr 05, 2014

Copy link to clipboard

Copied

LATEST

Yes, it is possible. The code will usually be based on the CGI variable for the customer's IP address, CGI.REMOTE_ADDR.

You will find a good example, together with the ColdFusion source code and usage instructions, on http://code.google.com/p/iptocountrycomponents/. You will be glad to know that this is open source and the contact details of the author are on the site.

You should use the code together with the latest data file for IP-to-country conversion. To get this data file, go to http://software77.net/geo-ip/ . In the "Download" section on the right-hand side of the page, select IPV4 CSV (zip) from the drop-down list and click on the Download button. The file is available as IpToCountry.csv.zip.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation