My site has suffered from comment spam with over 2,500 comments coming in from bots or low paid workers adding links and random garbage since I last looked.
I quickly cleared it with Django's elegant ORM:
In : from mezzanine.generic.models import ThreadedComment In : import datetime In : cutoff = datetime.datetime.now() - datetime.timedelta(weeks=8) In : ThreadedComment.objects.filter(submit_date__gt=cutoff).delete()
Apologies to the few genuine comments I've lost but filtering 2.5k by hand would have taken more coding or effort than I have time for right now.
I've set my comments to require a login which should deal with the problem in the short term and I'll update this post with akismet integration or perhaps disqus integration when I next get some time to work on my own site. They both look interesting.
Australia: 07 3103 2894
International: +61 410 545 357