summaryrefslogtreecommitdiff
path: root/fhost.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-06-26 11:57:20 +0200
committerAnton Khirnov <anton@khirnov.net>2022-06-26 11:57:20 +0200
commit1a7e5ef560e7347cb057b9a30864edaec2c61480 (patch)
tree97640b5d15d475777c348e313208e48eff6b04c7 /fhost.py
parent03dda1eb13b8aec22a1a7a69fae56f1acf7dfa87 (diff)
Clear the GET page.
My instance is private.
Diffstat (limited to 'fhost.py')
-rwxr-xr-xfhost.py68
1 files changed, 1 insertions, 67 deletions
diff --git a/fhost.py b/fhost.py
index 1fd24d0..f12b63f 100755
--- a/fhost.py
+++ b/fhost.py
@@ -327,73 +327,7 @@ def fhost():
abort(400)
else:
- fmts = list(app.config["FHOST_EXT_OVERRIDE"])
- fmts.sort()
- maxsize = naturalsize(app.config["MAX_CONTENT_LENGTH"], binary=True)
- maxsizenum, maxsizeunit = maxsize.split(" ")
- maxsizenum = float(maxsizenum)
- maxsizehalf = maxsizenum / 2
-
- if maxsizenum.is_integer():
- maxsizenum = int(maxsizenum)
- if maxsizehalf.is_integer():
- maxsizehalf = int(maxsizehalf)
-
- return """<pre>
-THE NULL POINTER
-================
-
-HTTP POST files here:
- curl -F'file=@yourfile.png' {0}
-You can also POST remote URLs:
- curl -F'url=http://example.com/image.jpg' {0}
-
-File URLs are valid for at least 30 days and up to a year (see below).
-
-Maximum file size: {1}
-Not allowed: {5}
-
-
-FILE RETENTION PERIOD
----------------------
-
-retention = min_age + (-max_age + min_age) * pow((file_size / max_size - 1), 3)
-
- days
- 365 | \\
- | \\
- | \\
- | \\
- | \\
- | \\
- | ..
- | \\
- 197.5 | ----------..-------------------------------------------
- | ..
- | \\
- | ..
- | ...
- | ..
- | ...
- | ....
- | ......
- 30 | ....................
- 0{2}{3}
- {4}
-
-
-ABUSE
------
-
-If you would like to request permanent deletion, please contact lachs0r via
-IRC on Freenode, or send an email to lachs0r@(this domain).
-
-Please allow up to 24 hours for a response.
-</pre>
-""".format(fhost_url(),
- maxsize, str(maxsizehalf).rjust(27), str(maxsizenum).rjust(27),
- maxsizeunit.rjust(54),
- ", ".join(app.config["FHOST_MIME_BLACKLIST"]))
+ return "Nothing to see here"
@app.route("/robots.txt")
def robots():