From 0733925af024d54f7f050f9e0b85250fbe8e0755 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 2 Feb 2019 21:15:15 +0100 Subject: [PATCH] Add content of the page --- .../templates/no_ipv4_here/index.html | 52 +++++++++++++++---- no_ipv4_here/views.py | 2 - 2 files changed, 43 insertions(+), 11 deletions(-) diff --git a/no_ipv4_here/templates/no_ipv4_here/index.html b/no_ipv4_here/templates/no_ipv4_here/index.html index b0be2cd..05b737c 100644 --- a/no_ipv4_here/templates/no_ipv4_here/index.html +++ b/no_ipv4_here/templates/no_ipv4_here/index.html @@ -18,9 +18,15 @@ .center { text-align: center; - padding-top: 15px; + margin: 20px 15%; + } + body { + font-family: Helvetica, sans-serif; + font-size: 15pt; + color: black; } + {{ domain|default:"This part of the Internet" }} is not reachable by IPv4 @@ -32,15 +38,43 @@

- {% if domain != "" %} - Sorry, this part of {{ domain }} is not reachable by IPv4. Please - upgrade to IPv6 and try to reach {{ domain }} again. - {% else %} - Sorry, this part of the Internet is not reachable by IPv4. Please - upgrade to IPv6 and try again. - {% endif %} + Welcome to the end of the IPv4 Internet. Unfortunately the site you tried reach is not reachable by IPv4. To access {{ domain|default:"this part of the Internet" }}, you need to enable IPv6 on your computer.

+
+
How to enable IPv6 ?
+
+ Your Internet provider (ISP) should support IPv6. If you haven't, you should first contact your ISP and ask them for IPv6 addresses.
+ If your ISP does not support IPv6, you can use an IPv6 tunnel to get IPv6 connectivity. + +
+
+
+
How to create an IPv6 only website
+
+ If you want your website to be only available by IPv6, you can do the following: +
    +
  • Create an AAAA DNS entry that points to the IPv6 address of your website.
  • +
  • Create an A DNS entry that points to 185.203.114.115 (that is this site).
  • +
  • From now on visitors that use IPv4 and try to reach your site will be shown this page.
  • +
+
+
+
+
How to make some content only accessible by IPv6?
+
+
    +
  • If parts of your website should only be reachable by IPv6, you can redirect the user to https://no-ipv4-here.ungleich.ch/?back_to=YOUR_URL
  • +
  • Replace YOUR_URL with the URL that you want the user to come back to, when they have IPv6 enabled
  • +
  • We suggest to use a HTTP 302 (temporary location changed) for this
  • +
+
+
+ \ No newline at end of file diff --git a/no_ipv4_here/views.py b/no_ipv4_here/views.py index 5059129..b83ba53 100644 --- a/no_ipv4_here/views.py +++ b/no_ipv4_here/views.py @@ -18,6 +18,4 @@ class IndexView(TemplateView): context['back_to_url'] = back_to_url if back_to_url != "": context['domain'] = (urlsplit(back_to_url)).netloc - else: - context['domain'] = "the domain" return context