|
@@ -11,26 +11,25 @@
|
|
<!-- Module User's Guide -->
|
|
<!-- Module User's Guide -->
|
|
|
|
|
|
<chapter>
|
|
<chapter>
|
|
-
|
|
|
|
|
|
+
|
|
<title>&adminguide;</title>
|
|
<title>&adminguide;</title>
|
|
-
|
|
|
|
|
|
+
|
|
<section>
|
|
<section>
|
|
<title>Overview</title>
|
|
<title>Overview</title>
|
|
<para>
|
|
<para>
|
|
- This module allows real-time queries against the Max Mind GeoIP2
|
|
|
|
- database to be performed from the config script.
|
|
|
|
|
|
+ This module allows real-time queries against the Max Mind GeoIP2
|
|
|
|
+ database to be performed from the config script.
|
|
</para>
|
|
</para>
|
|
<para>
|
|
<para>
|
|
- The Max Mind GeoIP2 database is a map of IP network address assignments
|
|
|
|
|
|
+ The Max Mind GeoIP2 database is a map of IP network address assignments
|
|
to geographical locales that can be useful -- though approximate --
|
|
to geographical locales that can be useful -- though approximate --
|
|
in identifying the physical location with which an IP host address
|
|
in identifying the physical location with which an IP host address
|
|
is associated on a relatively granular level.
|
|
is associated on a relatively granular level.
|
|
</para>
|
|
</para>
|
|
<para>
|
|
<para>
|
|
- This database itself can be obtained on a free or commercial basis
|
|
|
|
|
|
+ This database itself can be obtained on a free or commercial basis
|
|
from <ulink url="http://dev.maxmind.com/geoip/">
|
|
from <ulink url="http://dev.maxmind.com/geoip/">
|
|
- http://dev.maxmind.com/geoip/</ulink>. The
|
|
|
|
- library libmaxminddb
|
|
|
|
|
|
+ http://dev.maxmind.com/geoip/</ulink>. The library libmaxminddb
|
|
that interfaces with the Max Mind API, as well as scripts to
|
|
that interfaces with the Max Mind API, as well as scripts to
|
|
automate downloading of the on-disk version are available at
|
|
automate downloading of the on-disk version are available at
|
|
<ulink url="http://dev.maxmind.com/geoip/geoip2/downloadable/">
|
|
<ulink url="http://dev.maxmind.com/geoip/geoip2/downloadable/">
|
|
@@ -126,10 +125,10 @@ if(geoip2_match("$si", "src")) {
|
|
</example>
|
|
</example>
|
|
</section>
|
|
</section>
|
|
</section>
|
|
</section>
|
|
-
|
|
|
|
|
|
+
|
|
<section>
|
|
<section>
|
|
<title>Functions</title>
|
|
<title>Functions</title>
|
|
- <section>
|
|
|
|
|
|
+ <section id="geoip.f.geoip2_match">
|
|
<title>
|
|
<title>
|
|
<function moreinfo="none">geoip2_match(ipaddr, pvc)</function>
|
|
<function moreinfo="none">geoip2_match(ipaddr, pvc)</function>
|
|
</title>
|
|
</title>
|
|
@@ -149,7 +148,7 @@ if(geoip2_match("$si", "src"))
|
|
</programlisting>
|
|
</programlisting>
|
|
</example>
|
|
</example>
|
|
</section>
|
|
</section>
|
|
- <section>
|
|
|
|
|
|
+ <section id="geoip.f.geoip2_distance">
|
|
<title>
|
|
<title>
|
|
<function moreinfo="none">geoip2_distance(ip_addr, latitude, longitude)</function>
|
|
<function moreinfo="none">geoip2_distance(ip_addr, latitude, longitude)</function>
|
|
</title>
|
|
</title>
|
|
@@ -172,7 +171,7 @@ if(geoip2_match("$si", "src"))
|
|
</programlisting>
|
|
</programlisting>
|
|
</example>
|
|
</example>
|
|
</section>
|
|
</section>
|
|
-
|
|
|
|
|
|
+
|
|
</section>
|
|
</section>
|
|
|
|
|
|
<section>
|
|
<section>
|
|
@@ -195,13 +194,13 @@ if(geoip2_match("$si", "src"))
|
|
</example>
|
|
</example>
|
|
</section>
|
|
</section>
|
|
</section>
|
|
</section>
|
|
-
|
|
|
|
- <section>
|
|
|
|
|
|
+
|
|
|
|
+ <section id="geoip.pvs">
|
|
<title>Exported pseudo-variables</title>
|
|
<title>Exported pseudo-variables</title>
|
|
<itemizedlist>
|
|
<itemizedlist>
|
|
<listitem><para>
|
|
<listitem><para>
|
|
- <emphasis>$gip2(pvc=>key)</emphasis> - <emphasis>pvc</emphasis> is an
|
|
|
|
- identifier for this query result; it is designated by the second
|
|
|
|
|
|
+ <emphasis>$gip2(pvc=>key)</emphasis> - <emphasis>pvc</emphasis> is an
|
|
|
|
+ identifier for this query result; it is designated by the second
|
|
parameter of geoip2_match(). The <emphasis>key</emphasis> can be one of
|
|
parameter of geoip2_match(). The <emphasis>key</emphasis> can be one of
|
|
the following:
|
|
the following:
|
|
</para>
|
|
</para>
|