GetGeoIPCountryForIP (open)

Quickly look up just the GeoIP country for an IP address

Syntax

LOADLIB "mod::publisher/lib/analytics.whlib";

STRING FUNCTION GetGeoIPCountryForIP(STRING ip_addr)

Parameters

STRING ip_addr

IP address to look up

Return value

STRING

Country code, in uppercase, eg "NL"