Forum Discussion
nicgutierrez
10 years agoAce
Hi vishwajeet_hol.
One of our developers ended up calling an external php application that uses the GEOIP module and returns the country code for a given IP address.
The code looks something like this:
<#assign response = http.client.request( "http", "example.com", "/geoip.php?ip=${http.request.remoteAddr}").get() /> <#if response.content??> <#assign country = response.content> </#if>
Hope this helps.
Nic
Related Content
- 10 months ago
- 8 years ago
- 12 years ago