@ipToMapUrl(IP)

Creates URL to show location of host name or IP address on a map using a Internet based service.

The following parameters are recognized:

IP

The IP address or host name to show on a map.

This macro is used to create a URL which will plot the physical location associated with a public IP address or host name on a map.

Example of using the macro:

<a @htmlAttr("href","@ipToMapUrl("www.networksecuritytoolkit.org")")
>www.networksecuritytoolkit.org</a>

Assuming the com.ccg.macros.at.All class is within your CLASSPATH and the config/html.at macros file has been generated (Hint: run make atmacros in the wui directory), a developer should be able to run the above example by copy/pasting from below:

[root@probe root]# java com.ccg.macros.at.All <<EOF
@include("config/html.at",,"d")

<a @htmlAttr("href","@ipToMapUrl("www.networksecuritytoolkit.org")")
>www.networksecuritytoolkit.org</a>

EOF

This macro is defined as:

https://www.geoiptool.com/en/?IP=@param(0)