Update boykisser, fix nginx version stuff

This commit is contained in:
askiiart 2023-11-20 10:54:02 -06:00
parent 9abad91402
commit 0b8b990da3
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67
24 changed files with 154 additions and 143 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

BIN
boykisser.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View file

@ -1,10 +1,14 @@
import requests
import os
import json
from subprocess import getoutput
# Replaces nginx version with actual version, provide URL to site to find nginx version
url = 'https://askiiart.net'
with open('stock-404.html', 'r') as html_404:
html_404 = html_404.read()
html_404 = html_404.replace('nginx/0.0.0', requests.get(url).headers['Server'])
# Replace with a known-404 page for whatever you want. Doing this so the nginx version is accurate.
url_404 = 'https://askiiart.net/sdlfjsadljfs'
html_404 = str(requests.get(url_404).text)
boykisser_url = '/boykisser.png'
gandalf_url = '/you.gif'

View file

@ -1,7 +1,7 @@
<html>
<head><title>404 You Made A Typo In The URL, Didn't You?</title></head>
<body>
<center><h1>404 You Made A Typo In The URL, Didn't You?</h1><br><img src=https://askiiart.net/assets/boykisser.png alt="boykisser" width="350"</center>
<center><h1>404 You Made A Typo In The URL, Didn't You?</h1><br><img src=/boykisser.png alt="boykisser" width="350"</center>
<hr><center>nginx/1.25.3</center>
</body>
</html>

7
stock-404.html Normal file
View file

@ -0,0 +1,7 @@
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/0.0.0</center>
</body>
</html>