1 Reply Latest reply on Apr 5, 2014 1:27 PM by BKBK

    Locate a geographical customer position


      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.

        • 1. Re: Locate a geographical customer position
          BKBK Adobe Community Professional & MVP

          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.