remotes/1722233799945163191/master
Aevann 2024-02-01 21:50:48 +02:00
parent 65d85c5991
commit 4b1fa4f935
1 changed files with 2 additions and 1 deletions

View File

@ -437,8 +437,9 @@ if SITE == 'watchpeopledie.tv':
@app.get("/1706708037797343.mp4")
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
@auth_required
def geoblock(v):
print('wtf', flush=True)
print(request.headers.get("Cf-Ipcountry"), flush=True)
if request.headers.get("Cf-Ipcountry") == 'AU':
abort(403)
return send_file('/videos/1706708037797343.mp4')