From 52ba22e7ad11745ee801aa7ddd693fcf8115a3ec Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 31 Aug 2019 14:26:59 +0100 Subject: [PATCH] Improve handling of evil --- utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils.py b/utils.py index 38d4be8a..83aa0b69 100644 --- a/utils.py +++ b/utils.py @@ -51,8 +51,10 @@ def domainPermitted(domain: str, federationList: []): return False def urlPermitted(url: str, federationList: [],capability: str): - if url.endswith('gab.com') or url.endswith('gabfed.com'): - return False + evilDomains=['gab.com','gabfed.com','spinster.xyz'] + for concentratedEvil in evilDomains: + if url.endswith(concentratedEvil): + return False if len(federationList)==0: return True for domain in federationList: