我正在开发一个简单的 django 应用程序,它允许用户创建帖子然后对其进行评论。我想实施某种垃圾邮件过滤。目前我只做蜜罐检查和验证码。但问题是用户仍然可以发布垃圾邮件(链接/广告/等),我主要担心的是链接。
我一直在查看 SpamBayes,但目前不确定如何将其应用到我的网站。
是否有任何简单的轻量级解决方案可以过滤帖子中的大多数垃圾邮件?
我正在考虑创建一个简单的正则表达式过滤器,它将扫描每个令牌并检查它是否与网址/电子邮件等匹配。这种方法的问题是,根据正则表达式的使用方式,它可能会变得低效。
I am working on a simple django app that allows users to create posts and then comment on them. I would like to have some sort of spam filtering implemented. At the moment I am only doing honeypot checking and a captchta. But the problem is that users can still post spam (links/ads/etc), my main concern is links.
I have been looking at SpamBayes and am not sure how to apply it to my site at the moment.
Are there any simple lightweight solutions that will filter most spam from the posts?
I am thinking of creating a simple regexp filter that will scan each token and check to see if it matches urls/emails etc. The problem with this approach is that it might get ineffecient depending on how regexp's are used.
发布评论
评论(1)
您始终可以通过 Akismet 15/akismet-for-django/" rel="nofollow">Django 模块。我在我的 WordPress 博客中使用 Akismet,它在标记垃圾邮件方面的效率超过 99%。
You could always use Akismet via a Django module. I use Akismet with my WordPress blog and it's over 99% effective at flagging spam.