From cdb897f1ddb4b59ede9f24a19e9528563f009bc2 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 26 Oct 2024 23:43:19 +0300 Subject: [PATCH] fix route --- files/routes/allroutes.py | 4 ++-- files/routes/users.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/allroutes.py b/files/routes/allroutes.py index f6c115050..031169579 100644 --- a/files/routes/allroutes.py +++ b/files/routes/allroutes.py @@ -17,14 +17,14 @@ def before_request(): if request.host != SITE: stop(403, "Unauthorized host provided!") - if SITE == 'marsey.world' and request.path not in {'/kofi','/bm'}: + if SITE == 'marsey.world' and request.path not in {'/kofi','/bm','/av'}: stop(404) if request.headers.get("CF-Worker"): stop(403, "Cloudflare workers are not allowed to access this website!") g.agent = request.headers.get("User-Agent", "") - if not g.agent and request.path not in {'/kofi', '/bm'}: + if not g.agent and request.path not in {'/kofi','/bm','/av'}: stop(403, 'Please use a "User-Agent" header!') if not get_setting('bots') and request.headers.get("Authorization"): diff --git a/files/routes/users.py b/files/routes/users.py index 4357c58bb..3590ab100 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -1519,7 +1519,7 @@ def av(): print(ip, flush=True) # if ip not in {'54.187.174.169','54.187.205.235','54.187.216.72'}: # print(STARS, flush=True) - # print(f'/bm fail: {ip}') + # print(f'/av fail: {ip}') # print(STARS, flush=True) # stop(400)