mirror of https://gitlab.com/bashrc2/epicyon
Filter for obviously hostile domains
parent
a2c09cb267
commit
76671bae89
12
utils.py
12
utils.py
|
@ -494,10 +494,20 @@ def evilIncarnate() -> []:
|
||||||
|
|
||||||
|
|
||||||
def isEvil(domain: str) -> bool:
|
def isEvil(domain: str) -> bool:
|
||||||
|
# https://www.youtube.com/watch?v=5qw1hcevmdU
|
||||||
if not isinstance(domain, str):
|
if not isinstance(domain, str):
|
||||||
print('WARN: Malformed domain ' + str(domain))
|
print('WARN: Malformed domain ' + str(domain))
|
||||||
return True
|
return True
|
||||||
# https://www.youtube.com/watch?v=5qw1hcevmdU
|
# if a domain contains any of these strings then it is
|
||||||
|
# declaring itself to be hostile
|
||||||
|
evilEmporium = (
|
||||||
|
'nazi', 'extremis', 'extreemis', 'gendercritic',
|
||||||
|
'kiwifarm', 'illegal', 'raplst', 'rapist',
|
||||||
|
'antivax', 'plandemic'
|
||||||
|
)
|
||||||
|
for hostileStr in evilEmporium:
|
||||||
|
if hostileStr in domain:
|
||||||
|
return True
|
||||||
evilDomains = evilIncarnate()
|
evilDomains = evilIncarnate()
|
||||||
for concentratedEvil in evilDomains:
|
for concentratedEvil in evilDomains:
|
||||||
if domain.endswith(concentratedEvil):
|
if domain.endswith(concentratedEvil):
|
||||||
|
|
Loading…
Reference in New Issue