mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 12:36:20 -04:00
new 403 page that's nicer on bandwidth
This commit is contained in:
parent
d9fb3ff9b9
commit
77f3233702
@ -3,6 +3,7 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
{{ hugo.Generator }}
|
||||
<meta name="robots" content="noindex">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Page Not Found – {{ .Site.Title }}</title>
|
||||
<style>
|
||||
@ -21,20 +22,20 @@
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 1px 3px #e0e0e0, 0 1px 2px #888888;
|
||||
}
|
||||
div#message h1 {
|
||||
h1 {
|
||||
margin: 16px 0;
|
||||
font-size: 24px;
|
||||
font-weight: 300;
|
||||
}
|
||||
div#message p {
|
||||
p {
|
||||
margin: 16px 0;
|
||||
font-size: 15px;
|
||||
line-height: 140%;
|
||||
}
|
||||
div#message a {
|
||||
a {
|
||||
color: #0e6dc2;
|
||||
}
|
||||
div#message a:hover {
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
@ -46,7 +47,7 @@
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body id="error">
|
||||
<body>
|
||||
<div id="message">
|
||||
<h1>Welp, this is awkward... 😳</h1>
|
||||
<p>The file you asked for wasn't found in this neck of the woods. Please check the URL for mistakes and try again, or take your ball and <a href="{{ .Site.BaseURL }}">go home</a>.</p>
|
||||
|
@ -1,5 +1,8 @@
|
||||
User-Agent: *
|
||||
{{- if eq hugo.Environment "production" }}
|
||||
Disallow: /403.html
|
||||
Disallow: /404.html
|
||||
|
||||
Disallow: /y2k/
|
||||
Disallow: /scrabble/
|
||||
Disallow: /comp20/
|
||||
|
28
netlify.toml
28
netlify.toml
@ -80,17 +80,27 @@
|
||||
# H A C K E R M A N ( ͡° ͜ʖ ͡°)
|
||||
[[redirects]]
|
||||
from = "*/wp-login.php"
|
||||
to = "/h4x0rz.gif"
|
||||
status = 200
|
||||
to = "/403.html"
|
||||
status = 403
|
||||
force = true
|
||||
[[redirects]]
|
||||
from = "*/wp-admin/*"
|
||||
to = "/h4x0rz.gif"
|
||||
status = 200
|
||||
to = "/403.html"
|
||||
status = 403
|
||||
force = true
|
||||
[[redirects]]
|
||||
from = "/login"
|
||||
to = "/h4x0rz.gif"
|
||||
status = 200
|
||||
to = "/403.html"
|
||||
status = 403
|
||||
force = true
|
||||
[[redirects]]
|
||||
from = "/login.php"
|
||||
to = "/h4x0rz.gif"
|
||||
status = 200
|
||||
from = "*/login.php"
|
||||
to = "/403.html"
|
||||
status = 403
|
||||
force = true
|
||||
# no clue what these requests are? but there are a lot...
|
||||
[[redirects]]
|
||||
from = "/plus/*.php"
|
||||
to = "/403.html"
|
||||
status = 403
|
||||
force = true
|
||||
|
76
static/403.html
Normal file
76
static/403.html
Normal file
@ -0,0 +1,76 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>403 Forbidden</title>
|
||||
<meta name="robots" content="noindex">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style>
|
||||
body {
|
||||
background: #4f4f4f;
|
||||
color: #d9d9d9;
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
text-align: center;
|
||||
margin-top: 50px;
|
||||
}
|
||||
a {
|
||||
color: #d9d9d9;
|
||||
}
|
||||
a:hover {
|
||||
color: #a5a5a5;
|
||||
}
|
||||
h1, h2 {
|
||||
margin: 1.5rem 0;
|
||||
}
|
||||
h1 {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
h2 {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Artwork credit: https://kyivstar.ua/en/bugbounty -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 229 232" width="229" height="232">
|
||||
<!-- Generator: Sketch 49.3 (51167) - http://www.bohemiancoding.com/sketch -->
|
||||
<g fill="none" fill-rule="evenodd">
|
||||
<path fill="#FDDA24" d="M229 115a114 114 0 11-229 0 114 114 0 01229 0"/>
|
||||
<path fill="#161515" d="M36 144c2-19 51-45 84-41s63 25 71 41-3 74-3 74H49s-18-40-13-74"/>
|
||||
<path fill="#161515" d="M63 102s-4-7 5-18 53-21 76-4c23 16 26 17 24 22-1 5-35 28-38 38-2 10-14 27-15 27 0 0-10-20-18-30-7-10-34-35-34-35"/>
|
||||
<path fill="#FFB18F" d="M80 75c-1 7 6 30 13 40s18 16 24 16c6 1 16-6 23-19 6-14 12-38 12-38l-72 1"/>
|
||||
<path fill="#DB826A" d="M151 77l-2-3-69 1c-1 6 3 20 8 31l21-7c4-2 2-6 6-7s3 6 6 7l21 8 9-30"/>
|
||||
<path fill="#90CED6" d="M64 100s12-15 48-14c35 0 53 14 53 14s-31-12-56-11c-20 1-45 11-45 11"/>
|
||||
<path fill="#353535" d="M59 102c-1 0 15-54 37-69 12-9 34-8 46 1 14 12 30 67 29 69 0 2-19-14-56-15-39-1-53 15-56 14"/>
|
||||
<path fill="#353535" d="M59 102s2-4 4-3c14 6 45 35 50 50 6 21 3 32 3 32s-9-26-24-44c-11-14-33-35-33-35"/>
|
||||
<path fill="#353535" d="M171 103s-2-5-4-4c-13 7-45 35-49 51-6 20-2 31-2 31s8-25 22-43c11-14 33-35 33-35"/>
|
||||
<path fill="#DB826A" d="M109 104l5-2 6 3c-1 1-11 0-11-1"/>
|
||||
<path fill="#7C4639" d="M106 116c-1-1 4-2 10-2h7l-7 1c-3 0-10 3-10 1"/>
|
||||
<path fill="#DB826A" d="M105 113c1 1-2 3-1 4l4 2s-3 1-5-2c-1-1 1-5 2-4"/>
|
||||
<path fill="#444444" d="M118 32c-14 0-25 43-28 58a112 112 0 0151 1c-2-15-5-59-23-59"/>
|
||||
<path fill="#90CED6" d="M115 179c-1-12-5-29-20-44-8-9-16-15-22-19a186 186 0 0142 63"/>
|
||||
<path fill="#353535" d="M45 130c-17 13-37 63-40 79-3 17 53 22 63 17s-6-73-12-81c-5-8-8-18-11-15"/>
|
||||
<path fill="#474747" d="M138 138l18-20c-6 4-12 10-19 17a78 78 0 00-19 43c2-8 9-26 20-40"/>
|
||||
<path fill="#232323" d="M50 159s-7 17-11 21c-3 4-11 1-15 4s-5 13-5 13 10-7 19-4c10 4 17-3 17-3l-5-31"/>
|
||||
<path fill="#2B2B2B" d="M51 198s-15-4-20 1c-4 4-4 8-4 8s3-4 7-5c7-2 21 7 15-1l2-3"/>
|
||||
<path fill="#353535" d="M180 130c16 13 36 63 39 79 3 17-53 22-63 17s6-73 12-81 8-18 12-15"/>
|
||||
<path fill="#232323" d="M175 159s6 17 10 21 11 1 16 4c4 3 5 13 5 13s-10-7-20-4c-10 4-17-3-17-3l6-31"/>
|
||||
<path fill="#2B2B2B" d="M174 198s14-4 20 1c4 4 4 8 4 8s-4-4-8-5c-6-2-21 7-15-1l-1-3"/>
|
||||
<path fill="#2B2B2B" d="M199 179s-2-7-7-8l-11-7s3 12 5 13c6 2 13 2 13 2"/>
|
||||
<path fill="#2B2B2B" d="M26 179s2-7 6-8l11-7s-2 12-5 13c-5 2-12 2-12 2"/>
|
||||
<polygon fill="#AAAAAA" points="48.105165 228.092039 187.147495 228.092039 187.147495 147.475417 48.105165 147.475417"/>
|
||||
<polygon fill="#8C8C8C" points="48.105165 231.972971 187.147495 231.972971 187.147495 228.004194 48.105165 228.004194"/>
|
||||
<polygon fill="#CECECE" points="73.055301 228.303767 87.8447379 228.303767 87.8447379 226.927534 73.055301 226.927534"/>
|
||||
<polygon fill="#CECECE" points="147.40567 228.303767 162.199612 228.303767 162.199612 226.927534 147.40567 226.927534"/>
|
||||
<polygon fill="#CECECE" points="48.105165 149.540893 187.147495 149.540893 187.147495 147.666874 48.105165 147.666874"/>
|
||||
<polyline fill="#474747" points="114.936932 176.946175 108.936466 176.946175 108.936466 182.674097 110.702369 182.674097 110.702369 178.531883 114.936932 178.531883 114.936932 176.946175"/>
|
||||
<polyline fill="#474747" points="120.317981 176.946175 126.318447 176.946175 126.318447 182.674097 124.554796 182.674097 124.554796 178.531883 120.317981 178.531883 120.317981 176.946175"/>
|
||||
<polyline fill="#474747" points="120.317981 193.251495 126.318447 193.251495 126.318447 187.525825 124.554796 187.525825 124.554796 191.668039 120.317981 191.668039 120.317981 193.251495"/>
|
||||
<polyline fill="#474747" points="114.936932 193.251495 108.936466 193.251495 108.936466 187.525825 110.702369 187.525825 110.702369 191.668039 114.936932 191.668039 114.936932 193.251495"/>
|
||||
</g>
|
||||
</svg>
|
||||
<br><br>
|
||||
<h1>Fancy meeting you here...</h1>
|
||||
<h2>Nice try, though! <a href="https://jarv.is/">Shall we go back home?</a> 😊</h2>
|
||||
</body>
|
||||
</html>
|
Binary file not shown.
Before Width: | Height: | Size: 2.4 MiB |
Loading…
x
Reference in New Issue
Block a user