added minimal blacklist catching > 90% of current spam polls

This commit is contained in:
phear 2013-02-23 13:07:43 +00:00
parent 215495915c
commit ae791b40e5

View file

@ -590,6 +590,16 @@ def check_spam_content(text):
return True
if count_urls(text) > 2:
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
@bobo.query('/profile/logout')