django 博客/评论的良好垃圾邮件过滤器选项

发布于 2024-10-08 05:52:39 字数 282 浏览 0 评论 0 原文

我正在开发一个简单的 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小嗲 2024-10-15 05:52:39

您始终可以通过 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文