Forum Discussion
nicgutierrez
11 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