echoip-slatecave/templates/index.html

38 lines
1.6 KiB
HTML
Raw 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 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 %}
Look up Your and others public IP-Adresses. - {{ data.result.address }}
{% endblock %}
{% block og_path %}/{% endblock %}
{% block other_ip_button %}
{% if data.ressult.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>
<p>While this doesn't have to do anything with your public IP-Adress 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-02-23 21:24:35 +01:00
</section>
{% endblock %}