reblock rdrama in egypt

master
Aevann 2023-06-01 16:05:07 +03:00
parent 79a17f8b53
commit 2457fddc0c
1 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,9 @@ def get_logged_in_user():
v.last_active = timestamp v.last_active = timestamp
g.db.add(v) g.db.add(v)
if not v and SITE == 'rdrama.net' and request.headers.get("Cf-Ipcountry") == 'EG':
abort(404)
g.is_api_or_xhr = bool((v and v.client) or request.headers.get("xhr")) g.is_api_or_xhr = bool((v and v.client) or request.headers.get("xhr"))
return v return v