???
parent
65d85c5991
commit
4b1fa4f935
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue