forked from indymedia/epicyon
Improve handling of evil
parent
d55be4d497
commit
52ba22e7ad
6
utils.py
6
utils.py
|
@ -51,8 +51,10 @@ def domainPermitted(domain: str, federationList: []):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def urlPermitted(url: str, federationList: [],capability: str):
|
def urlPermitted(url: str, federationList: [],capability: str):
|
||||||
if url.endswith('gab.com') or url.endswith('gabfed.com'):
|
evilDomains=['gab.com','gabfed.com','spinster.xyz']
|
||||||
return False
|
for concentratedEvil in evilDomains:
|
||||||
|
if url.endswith(concentratedEvil):
|
||||||
|
return False
|
||||||
if len(federationList)==0:
|
if len(federationList)==0:
|
||||||
return True
|
return True
|
||||||
for domain in federationList:
|
for domain in federationList:
|
||||||
|
|
Loading…
Reference in New Issue