2023-02-25 15:42:59 +01:00
|
|
|
{% extends "base.txt" %}
|
|
|
|
{% import "helpers.html" as helper %}
|
2023-02-25 18:00:42 +01:00
|
|
|
{% import "links.html" as links %}
|
2023-02-25 15:42:59 +01:00
|
|
|
|
|
|
|
{% block path %}ip/{{ data.result.address }}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% set r = data.result -%}
|
|
|
|
# {% block title %}Lookup {{ data.result.address }}{% endblock %}
|
|
|
|
|
|
|
|
## Network information
|
|
|
|
|
|
|
|
* Type of Address: {{ helper::ip_info(ip_info=r.ip_info) }}
|
|
|
|
{% if r.hostname -%}
|
|
|
|
* Hostname: {{ r.hostname }}
|
2024-04-21 00:00:04 +02:00
|
|
|
{%- elif r.reverse_dns_disabled_for_privacy %}
|
|
|
|
* Hostname: Lookup disabled by default
|
2023-02-25 15:42:59 +01:00
|
|
|
{%- endif %}
|
|
|
|
{% if r.asn -%}
|
|
|
|
* ASN: AS{{ r.asn.asn }}
|
|
|
|
* AS Name: {{r.asn.name}}
|
|
|
|
{%- endif -%}
|
|
|
|
|
2024-04-21 00:00:04 +02:00
|
|
|
{%- if r.reverse_dns_disabled_for_privacy %}
|
|
|
|
|
|
|
|
=> /ip/{{ data.result.address }}?dns_self_lookup=true Do a reverse DNS lookup
|
|
|
|
{% endif %}
|
|
|
|
|
2023-02-25 18:32:09 +01:00
|
|
|
{%- if r.location %}
|
|
|
|
|
2023-02-25 15:42:59 +01:00
|
|
|
## Geolocation
|
|
|
|
|
2023-02-25 18:32:09 +01:00
|
|
|
{{ helper::place_dl(place=r.location.continent, label="Continent") -}}
|
|
|
|
{{ helper::place_dl(place=r.location.country, label="Country") -}}
|
|
|
|
{%- 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-25 18:32:09 +01:00
|
|
|
{%- endif -%}
|
|
|
|
{%- if r.location.country.iso_code | default(value="") != r.location.represented_country.iso_code | default(value="") -%}
|
|
|
|
{{- helper::place_dl(place=r.location.represented_country, label="Represents") -}}
|
|
|
|
{%- endif -%}
|
|
|
|
{%- if r.location.subdivisions -%}
|
2023-02-25 15:42:59 +01:00
|
|
|
{%- for sd in r.location.subdivisions -%}
|
2023-02-25 18:32:09 +01:00
|
|
|
{{- helper::place_dl(place=sd, label="Subdivision", iso_code_prefix=r.location.country.iso_code|default(value="")) -}}
|
2023-02-25 15:42:59 +01:00
|
|
|
{%- endfor -%}
|
|
|
|
{%- endif %}
|
2023-02-25 18:32:09 +01:00
|
|
|
{{- helper::place_dl(place=r.location.city, label="City") -}}
|
|
|
|
{%- if r.location.postal_code -%}
|
2023-02-25 15:42:59 +01:00
|
|
|
* Postal Code: {{r.location.postal_code}}
|
2023-02-25 18:32:09 +01:00
|
|
|
{% endif %}
|
|
|
|
{%- if r.location.time_zone -%}
|
2023-02-25 15:42:59 +01:00
|
|
|
* Timezone: {{r.location.time_zone}}
|
|
|
|
{% endif -%}
|
2023-02-25 18:32:09 +01:00
|
|
|
{%- if r.location.accuracy -%}
|
2023-04-29 13:05:48 +02:00
|
|
|
* Accuracy: ~{{r.location.accuracy}}km
|
2023-02-25 18:32:09 +01:00
|
|
|
{% endif %}
|
|
|
|
{%- if r.location.coordinates %}
|
2023-02-25 15:42:59 +01:00
|
|
|
### Coordinates
|
|
|
|
lat: {{r.location.coordinates.lat}}, lon: {{r.location.coordinates.lon}}
|
2023-02-25 18:04:31 +01:00
|
|
|
=> {{ links::map_link(lat=r.location.coordinates.lat, lon=r.location.coordinates.lon)}}
|
2023-02-25 18:32:09 +01:00
|
|
|
{%- endif %}
|
2023-02-25 15:42:59 +01:00
|
|
|
|
2023-04-29 13:05:48 +02:00
|
|
|
The GeoIP and ASN information is provided by the GeoLite2 database created by MaxMind.
|
2023-02-25 15:42:59 +01:00
|
|
|
{% endif -%}
|
|
|
|
|
|
|
|
{%- block extra_content %}{% endblock -%}
|
|
|
|
|
|
|
|
{%- endblock %}
|
|
|
|
|