Ip2countryProv_name(ip)
Returns the GEO information (country name + possible province name) of an IP address.
Syntax
ip2countryProv_name(ip);
Arguments
| Name | Description |
|---|---|
|
ip |
A string which specifies the IP address. |
Events
Applicable in all events.
Example
when HTTP_REQUEST {
cip = IP:client_addr()
cnm = ip2countryProv_name(cip)
debug(“cname %s\n”, cnm)
}
Supported Version
FortiADC version 5.2.x and later.