2023-02-18 13:09:22 +01:00
{% import "helpers.html" as helper %}
2023-02-11 21:46:55 +01:00
<!DOCTYPE html>
< html >
< head >
2023-02-12 17:35:32 +01:00
< title > Your IP: {{ data.query.ip }}< / title >
2023-02-11 21:46:55 +01:00
< / head >
< body >
2023-02-18 13:09:22 +01:00
{% set r = data.result %}
2023-02-19 23:12:43 +01:00
< header >
< nav >
< a href = "/" class = "site-name" > {{extra.site_name|default(val="echoip")}}< / a >
< / nav >
< / header >
2023-02-12 17:35:32 +01:00
< h1 > Your IP-Address is: {{ data.query.ip }}< / h1 >
2023-02-18 13:09:22 +01:00
< section >
< h2 > Network Information< / h2 >
< dl >
{% if r.hostname %}
< dh > Hostname< / dh >
< dd > < a href = "/dig?name={{r.hostname}}" > {{r.hostname}}< / a > < / dd >
{% endif %}
{% if r.asn %}
< dh > < abbr = " Autonomous System Number " > ASN< / abbr > < / dh >
< dd > AS{{r.asn.asn}}< / dd >
< dh > AS Name< / dh >
< dd > {{ r.asn.name }}< / dd >
< / dl >
{% endif %}
< / 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") }}
{{ helper::place_dl(place=r.location.registered_country, label="Registred in") }}
{{ helper::place_dl(place=r.location.represented_country, label="Represents") }}
{% 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 %}
< dh > Postal Code< / dh >
< dd > {{r.location.postal_code}}< / dd >
{% endif %}
{% if r.location.time_zone %}
< dh > Timezone< / dh >
< dd > {{r.location.time_zone}}< / dd >
{% endif %}
< / dl >
<!-- We have to put that there to comply with maxminds licensing -->
< p > < small >
The GeopIP and ASN information is provided by the GeoLite2 database created by
< a target = "_blank" href = "https://www.maxmind.com" > MaxMind< / a > .
< / small > < / p >
< / section >
2023-02-17 18:45:37 +01:00
{% endif %}
2023-02-21 10:51:28 +01:00
{% if data.user_agent %}
< section >
< h2 > User Agent< / h2 >
< p > Independent of your IP-Address your browser sends a < a href = "https://en.wikipedia.org/wiki/User_agent" > User Agent< / a > header with each http request.< / p >
< p > Your browser sent: < code > {{data.user_agent}}< / code > < / p >
< / section >
{% endif %}
2023-02-11 21:46:55 +01:00
< / body >
< / html >