forked from rDrama/rDrama
1
0
Fork 0

fix earlier bad replace-all

master
Aevann1 2022-09-06 22:31:31 +02:00
parent 833a74749e
commit 79ee12252d
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ def before_request():
with open('/site_settings.json', 'r', encoding='utf_8') as f:
app.config['SETTINGS'] = json.load(f)
if SITE != app.config["SERVER_NAME"]: return {"error":"Unauthorized host provided."}, 401
if request.host != app.config["SERVER_NAME"]: return {"error":"Unauthorized host provided."}, 401
if request.headers.get("CF-Worker"): return {"error":"Cloudflare workers are not allowed to access this website."}, 401
if not app.config['SETTINGS']['Bots'] and request.headers.get("Authorization"): abort(503)