echoip-slatecave/templates/index.html

42 lines
2.0 KiB
HTML
Raw Permalink Normal View History

2023-02-23 21:24:35 +01:00
{% extends "ip.html" %}
2023-02-18 13:09:22 +01:00
{% import "helpers.html" as helper %}
2023-02-23 21:24:35 +01:00
{% block robots_meta %}{# Allow indexing for landing page #}{% endblock %}
2023-02-23 21:24:35 +01:00
{% block title %}Your IP: {{ data.result.address }}{% endblock %}
{% block og_title %}What is my IP-Address?{% endblock %}
{% block h1 %}Your IPv{% if data.result.ip_info.is_v6_address %}6{% else %}4{% endif %}: <code>{{ data.result.address }}</code>{% endblock %}
{% block description %}
2023-04-29 13:05:48 +02:00
Look up Your and others public IP-Addresses. - {{ data.result.address }}
2023-02-23 21:24:35 +01:00
{% endblock %}
{% block og_path %}/{% endblock %}
{% block other_ip_button %}
2023-02-25 17:58:13 +01:00
{% if data.result.ip_info.is_v6_address %}
{% if extra.v4_url %}
<p class="button-paragraph"><a href="{{extra.v4_url}}">Look up your IPv4 address instead <small>(You'll get an error if you live in the future)</small></a></p>
{% endif %}
{% else %}
{% if extra.v6_url %}
<p class="button-paragraph"><a href="{{extra.v6_url}}">Look up your IPv6 address instead <small>(You'll get an error if you live in the past)</small></a></p>
{% endif %}
{% endif %}
2023-02-23 21:24:35 +01:00
{% endblock %}
{% block extra_content %}
<section>
<h2>Your User Agent</h2>
<p>The program you were using to download this page <a href="https://en.wikipedia.org/wiki/User_agent">identified itself</a> as <code>{{ data.user_agent }}</code></p>
2023-04-29 13:05:48 +02:00
<p>While this doesn't have to do anything with your public IP-Address this might be useful information.</p>
2023-02-24 20:17:25 +01:00
<p>You can use the <code><a href="{{ extra.base_url}}/ua">/ua</a></code> endpoint to fetch this information with any client.</p>
2023-02-23 21:24:35 +01:00
</section>
<section>
<h2>Did you know?</h2>
2023-02-24 20:17:25 +01:00
<p>If you share this site and the Link gets a preview. The IP-Address after the dash is the one of the machine that generated that preview.</p>
2023-08-06 02:08:54 +02:00
<p>This service exports a <a href="{{ extra.base_url }}/dns_resolver">list of dns resolvers it supports</a>, with configuration.</p>
<p>Every query that can output html can also output json or plain text using the <code>?format=json</code> or <code>?format=text</code> url parameters?</p>
2023-02-23 21:24:35 +01:00
</section>
{% endblock %}