diff --git a/files/routes/wrappers.py b/files/routes/wrappers.py index b567b2daa..614d21330 100644 --- a/files/routes/wrappers.py +++ b/files/routes/wrappers.py @@ -73,6 +73,9 @@ def get_logged_in_user(): v.last_active = timestamp 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")) return v