diff --git a/utils.py b/utils.py index b34277f..7ff61a2 100644 --- a/utils.py +++ b/utils.py @@ -76,11 +76,16 @@ def comment_spam_test(**kwargs): 'Hello. And Bye.', 'http://quick-ways-to-earn-extra-cash.blogspot.com/' 'earn money online', + 'http://www.mydatelove.com', + 'best buy and loss weight', ] comment=kwargs['comment'].comment request=kwargs['request'] + if not request.user.is_authenticated(): + return False + if not comment or comment in blacklist_identical: return False