2023-02-23 21:24:35 +01:00
|
|
|
{% extends "base.html" %}
|
2023-02-18 22:16:09 +01:00
|
|
|
{% import "helpers.html" as helper %}
|
2023-02-24 00:01:51 +01:00
|
|
|
{% import "links.html" as links %}
|
2023-02-23 21:24:35 +01:00
|
|
|
|
|
|
|
{% block title %}{{ data.result.address }}{% endblock %}
|
|
|
|
{% block og_title %}Lookup {{ data.result.address }}{% endblock %}
|
|
|
|
{% block h1 %}Lookup <code>{{ data.result.address }}</code>{% endblock %}
|
|
|
|
|
|
|
|
{% block og_path %}/ip/{{ data.result.address }}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2023-02-18 22:16:09 +01:00
|
|
|
{% set r = data.result %}
|
|
|
|
<section>
|
|
|
|
<h2>Network Information</h2>
|
|
|
|
<dl>
|
2023-02-24 00:42:15 +01:00
|
|
|
<dt>Type of Address</dt>
|
2023-02-25 16:17:34 +01:00
|
|
|
<dd>{{ helper::ip_info(ip_info=r.ip_info) }}</dd>
|
2023-02-18 22:16:09 +01:00
|
|
|
{% if r.hostname %}
|
2023-02-24 00:42:15 +01:00
|
|
|
<dt>Hostname</dt>
|
2023-02-23 21:24:35 +01:00
|
|
|
<dd>{{ helper::dig(extra=extra, name=r.hostname) }}</dd>
|
2023-02-18 22:16:09 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if r.asn %}
|
2023-02-24 00:42:15 +01:00
|
|
|
<dt><abbr="Autonomous System Number">ASN</abbr></dt>
|
2023-02-18 22:16:09 +01:00
|
|
|
<dd>AS{{r.asn.asn}}</dd>
|
2023-02-24 00:42:15 +01:00
|
|
|
<dt>AS Name</dt>
|
2023-02-18 22:16:09 +01:00
|
|
|
<dd>{{ r.asn.name }}</dd>
|
|
|
|
{% endif %}
|
2023-02-25 16:41:36 +01:00
|
|
|
</dl>
|
2023-02-24 00:01:51 +01:00
|
|
|
{% block other_ip_button %}{% endblock %}
|
2023-02-18 22:16:09 +01:00
|
|
|
</section>
|
|
|
|
{% if r.location %}
|
|
|
|
<section>
|
|
|
|
<h2>Geolocation</h2>
|
|
|
|
<dl>
|
|
|
|
{{ helper::place_dl(place=r.location.continent, label="Continent") }}
|
|
|
|
{{ helper::place_dl(place=r.location.country, label="Country") }}
|
2023-02-24 00:01:51 +01:00
|
|
|
{% if r.location.country.iso_code | default(value="") != r.location.registered_country.iso_code | default(value="") %}
|
2023-04-29 13:05:48 +02:00
|
|
|
{{ helper::place_dl(place=r.location.registered_country, label="Registered in") }}
|
2023-02-24 00:01:51 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if r.location.country.iso_code | default(value="") != r.location.represented_country.iso_code | default(value="")%}
|
2023-02-18 22:16:09 +01:00
|
|
|
{{ helper::place_dl(place=r.location.represented_country, label="Represents") }}
|
2023-02-24 00:01:51 +01:00
|
|
|
{% endif %}
|
2023-02-18 22:16:09 +01:00
|
|
|
{% if r.location.subdivisions %}
|
|
|
|
{% for sd in r.location.subdivisions %}
|
|
|
|
{{ helper::place_dl(place=sd, label="Subdivision", iso_code_prefix=r.location.country.iso_code|default(value="")) }}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{{ helper::place_dl(place=r.location.city, label="City") }}
|
|
|
|
{% if r.location.postal_code %}
|
2023-02-24 00:42:15 +01:00
|
|
|
<dt>Postal Code</dt>
|
2023-02-18 22:16:09 +01:00
|
|
|
<dd>{{r.location.postal_code}}</dd>
|
|
|
|
{% endif %}
|
|
|
|
{% if r.location.time_zone %}
|
2023-02-24 00:42:15 +01:00
|
|
|
<dt>Timezone</dt>
|
2023-02-18 22:16:09 +01:00
|
|
|
<dd>{{r.location.time_zone}}</dd>
|
|
|
|
{% endif %}
|
2023-02-24 00:42:15 +01:00
|
|
|
{% if r.location.accuracy %}
|
2023-04-29 13:05:48 +02:00
|
|
|
<dt>Accuracy</dt>
|
2023-02-24 00:42:15 +01:00
|
|
|
<dd>~{{r.location.accuracy}}km</dd>
|
|
|
|
{% endif %}
|
|
|
|
{% if r.location.coordinates %}
|
|
|
|
<dt>Coordinates</dt>
|
2023-03-25 21:39:45 +01:00
|
|
|
<dd><a target="_blank" href="{{ links::map_link(lat=r.location.coordinates.lat, lon=r.location.coordinates.lon)}}">lat: {{r.location.coordinates.lat}}, lon: {{r.location.coordinates.lon}}</a></dd>
|
2023-02-24 00:42:15 +01:00
|
|
|
{% endif %}
|
2023-02-18 22:16:09 +01:00
|
|
|
</dl>
|
|
|
|
<!--We have to put that there to comply with maxminds licensing-->
|
|
|
|
<p><small>
|
2023-04-29 13:05:48 +02:00
|
|
|
The GeoIP and ASN information is provided by the GeoLite2 database created by
|
2023-02-18 22:16:09 +01:00
|
|
|
<a target="_blank" href="https://www.maxmind.com">MaxMind</a>.
|
|
|
|
</small></p>
|
|
|
|
</section>
|
|
|
|
{% endif %}
|
2023-02-23 21:24:35 +01:00
|
|
|
{% block extra_content %}{% endblock %}
|
2023-02-24 00:01:51 +01:00
|
|
|
<section>
|
|
|
|
<h2>Other Services</h2>
|
|
|
|
{{ links::ip_address_links(address=r.address)}}
|
|
|
|
{% if r.asn %}
|
|
|
|
{{ links::asn_links(asn=r.asn.asn, org_name=r.asn.name) }}
|
|
|
|
{% endif %}
|
|
|
|
</section>
|
2023-02-25 16:17:34 +01:00
|
|
|
|
|
|
|
<section>
|
2023-04-29 13:05:48 +02:00
|
|
|
<h2>Programmatic Lookup</h2>
|
2023-02-25 16:17:34 +01:00
|
|
|
<p>If you want to look up this IP-Address Information in another program that is okay as long as you are civil about it … (ratelimit)</p>
|
|
|
|
<h3>How?</h3>
|
|
|
|
<p>You can choose between the <code>html</code>, <code>text</code> and <code>json</code> format.</p>
|
2023-04-29 13:05:48 +02:00
|
|
|
<p>An example of an URL could be: <code>{{ extra.base_url }}/ip/1.2.3.4?format=json</code></p>
|
2023-02-25 16:17:34 +01:00
|
|
|
<p>To look up your IP-Address as json: <code>{{ extra.base_url }}/?format=json</code></p>
|
|
|
|
</section>
|
|
|
|
|
2023-02-23 21:24:35 +01:00
|
|
|
{% endblock %}
|
2023-02-18 22:16:09 +01:00
|
|
|
|