marsey.world

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-10-21 16:32:23 +02:00
parent 824cc1ba81
commit 26e2143514
1 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,9 @@ if not path.isfile(f'/site_settings.json'):
@app.before_request
def before_request():
if SITE == 'marsey.world' and request.path != '/kofi':
abort(404)
g.agent = request.headers.get("User-Agent")
if not g.agent and request.path != '/kofi':
return 'Please use a "User-Agent" header!', 403