如何保护我的论坛免受垃圾邮件的侵害? [英] How do I protect my forum against spam?

查看:93
本文介绍了如何保护我的论坛免受垃圾邮件的侵害?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我精通的网站上有一个论坛,每天都会收到大量的垃圾邮件.目前,我删除了垃圾邮件并阻止了IP.但这不是很好.被阻止IP的列表正在迅速增长,但论坛中的垃圾邮件数量也在迅速增加.

I have a forum on a website I master, which gets a daily dose of pron spam. Currently I delete the spam and block the IP. But this does not work very well. The list of blocked IP's is growing quickly, but so is the number of spam posts in the forum.

论坛完全是我自己的代码.它是用PHP和MySQL构建的.

The forum is entirely my own code. It is built in PHP and MySQL.

阻止垃圾邮件的一些具体方法是什么?

What are some concrete ways of stopping the spam?

修改 我忘记提及的是,该论坛需要开放以供未注册的用户发布.有点像博客评论.

Edit The thing I forgot to mention is that the forum needs to be open for unregistered users to post. Kinda like a blog comment.

推荐答案

在我编写的留言簿应用程序中,我实现了两个功能,可防止大多数垃圾邮件的出现:

In a guestbook app I wrote, I implemented two features which prevent most of the spam:

  • 不允许POST作为会话中的第一个请求

  • Don't allow POST as the first request in a session

发布时需要有效的HTTP Referrer

Require a valid HTTP Refer(r)er when posting

这篇关于如何保护我的论坛免受垃圾邮件的侵害?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆