Update boykisser, fix nginx version stuff
This commit is contained in:
parent
9abad91402
commit
0b8b990da3
24 changed files with 154 additions and 143 deletions
BIN
boykisser.jpg
BIN
boykisser.jpg
Binary file not shown.
Before Width: | Height: | Size: 79 KiB |
BIN
boykisser.png
Normal file
BIN
boykisser.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
|
@ -1,10 +1,14 @@
|
||||||
import requests
|
import requests
|
||||||
import os
|
import os
|
||||||
import json
|
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'
|
boykisser_url = '/boykisser.png'
|
||||||
gandalf_url = '/you.gif'
|
gandalf_url = '/you.gif'
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head><title>404 You Made A Typo In The URL, Didn't You?</title></head>
|
<head><title>404 You Made A Typo In The URL, Didn't You?</title></head>
|
||||||
<body>
|
<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>
|
<hr><center>nginx/1.25.3</center>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
7
stock-404.html
Normal file
7
stock-404.html
Normal 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>
|
Loading…
Reference in a new issue