forked from rDrama/rDrama
try smth
parent
e99601c0fa
commit
0563758eec
|
@ -438,7 +438,7 @@ if SITE == 'watchpeopledie.tv':
|
||||||
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)
|
@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)
|
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
|
||||||
def geoblock():
|
def geoblock():
|
||||||
ip = request.headers.get("X-Forwarded-For")
|
ip = request.remote_addr
|
||||||
print(ip, flush=True)
|
print(ip, flush=True)
|
||||||
req = requests.get(f'http://ipinfo.io/{ip}/json')
|
req = requests.get(f'http://ipinfo.io/{ip}/json')
|
||||||
country = json.loads(req.text)
|
country = json.loads(req.text)
|
||||||
|
|
Loading…
Reference in New Issue