added minimal blacklist catching > 90% of current spam polls
This commit is contained in:
parent
215495915c
commit
ae791b40e5
1 changed files with 10 additions and 0 deletions
|
@ -590,6 +590,16 @@ def check_spam_content(text):
|
||||||
return True
|
return True
|
||||||
if count_urls(text) > 2:
|
if count_urls(text) > 2:
|
||||||
return True
|
return True
|
||||||
|
blacklist = ("ativan","cialis","fioricet","Kamagra",
|
||||||
|
"levitra", "phentermine", "propecia", "semenax",
|
||||||
|
"Sildenafil", "slots", "tadalafil", "tramadol",
|
||||||
|
"vigrx", "viagra", "vimax", "xanax",
|
||||||
|
"Electronic cigarette", "online blackjack", "Online Bingo",
|
||||||
|
"Online casino", "online gambling", "Online roulette", "roulette online",
|
||||||
|
"poker online", "payday loans", "pokies", "reverse phone", "preteen", "lolitas")
|
||||||
|
for keyword in blacklist:
|
||||||
|
if keyword.lower() in text.lower):
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@bobo.query('/profile/logout')
|
@bobo.query('/profile/logout')
|
||||||
|
|
Loading…
Reference in a new issue