remotes/1693045480750635534/spooky-22
Aevann1 2022-05-20 20:32:36 +02:00
parent 8ced6bee9e
commit 4f9df8c5bf
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ def before_request():
with open('site_settings.json', 'r') as f:
app.config['SETTINGS'] = json.load(f)
if request.host != 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)