105 lines
3.0 KiB
Plaintext
105 lines
3.0 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<style>
|
|
:root {
|
|
--font-size: 16px;
|
|
--line-height: 1.6;
|
|
--content-margin: 40px 10% 0;
|
|
}
|
|
|
|
.responsive {
|
|
width: 100%;
|
|
max-width: 496px;
|
|
height: auto;
|
|
}
|
|
|
|
img {
|
|
display: block;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.center {
|
|
text-align: center;
|
|
}
|
|
|
|
.content-margin {
|
|
margin: var(--content-margin);
|
|
padding: 15px;
|
|
}
|
|
body {
|
|
font-family: Helvetica, sans-serif;
|
|
font-size: var(--font-size);
|
|
line-height: var(--line-height);
|
|
letter-spacing: 0.3px;
|
|
color: black;
|
|
text-shadow: 0 1px 1px rgba(0,0,0,0.1);
|
|
}
|
|
.para-title{
|
|
font-weight: 600;
|
|
}
|
|
footer{
|
|
margin: 60px 0 25px;
|
|
}
|
|
</style>
|
|
<title><%= it.domain ? it.domain + " is not reachable by IPv4" : "This part of the Internet is not reachable by IPv4" %></title>
|
|
<meta name="keywords" content="IPv6, IPv4, End of IPv4, IPv6 only">
|
|
<meta name="description" content="The end of the IPv4 Internet">
|
|
</head>
|
|
<body>
|
|
|
|
<img src="/img/ipv6onlyhosting-ungleich-deadend.jpg"
|
|
alt="ipv6onlyhosting-ungleich-deadend"
|
|
class="responsive" width="600" height="400">
|
|
|
|
<div class="center content-margin">
|
|
<p>
|
|
You have reached the end of the IPv4 Internet.
|
|
|
|
<% if (it.back_to_url) {
|
|
let normalizedUrl = it.back_to_url;
|
|
let displayDomain = it.domain;
|
|
|
|
try {
|
|
if (it.back_to_url) {
|
|
// Normalize URL by adding protocol if missing
|
|
if (!it.back_to_url.startsWith('http')) {
|
|
normalizedUrl = `http://${it.back_to_url}`;
|
|
}
|
|
|
|
const url = new URL(normalizedUrl);
|
|
displayDomain = url.hostname;
|
|
}
|
|
} catch (e) {
|
|
// Fall back to original values if parsing fails
|
|
normalizedUrl = it.back_to_url;
|
|
displayDomain = it.domain || it.back_to_url;
|
|
}
|
|
%>
|
|
<p>
|
|
The site <%= displayDomain %> is not reachable by IPv4.
|
|
To access
|
|
<a href="<%= normalizedUrl %>" target="_blank"><%= displayDomain %></a>,
|
|
you need to enable IPv6 on your computer.
|
|
</p>
|
|
<% } %>
|
|
|
|
<br>
|
|
Find out
|
|
<a href="/guide">
|
|
how to enable IPv6</a>.
|
|
<br>
|
|
<% /* <a href="https://redmine.ungleich.ch/projects/open-infrastructure/wiki/How_to_disable_IPv4_on_your_website">How
|
|
to use this service</a> for your IPv6 only service. */ %>
|
|
</p>
|
|
</div>
|
|
<footer class="center">
|
|
<p>This service is provided to you by <a href="https://git.kyun.li/gunter/deno-no-ipv4-here" target="_blank">deno-no-ipv4-here</a>.</p>
|
|
|
|
<p><i>Inspired by <a href="https://ungleich.ch" target="_blank">ungleich</a>.</i></p>
|
|
</footer>
|
|
</body>
|
|
</html>
|