dongya3627 2014-02-27 13:43
浏览 13
已采纳

有哪些方法可以通过PHP / MySQL自动处理垃圾邮件发送者

I am currently creating a news ranking application wherein I have users connected to one another, and can post news items to a database. Users can vote on said news items within a rating of 10 - 1. 10 giving the item the highest possible vote and in turn this determines the ranking of future news items a user may see once logged in.

Currently my approach at dealing with spammers automatically, involves using a threshold whereby say the average rating of the total number of votes that a user has voted on falls below this threshold. Then the relationship between two users will be automatically deleted.

This approach is okay for individual relationships but, let's say a spammer can be identified very quickly by a number of users. How can I deal with this problem more effectively?

  • 写回答

2条回答 默认 最新

  • dongyue934001 2014-02-27 14:19
    关注

    One thing that I see happening more and more is the honeypot method. Add some fields in your form and style them in such a way that they are not visible to the end user using css. Then in you code check if the field has a changed (default) value. If so, it is a bot (because humans cannot see and thus change the fields).

    If you go this route, don't forget to change the tabstop of those fields. I always enter forms using tab button and it is annoying to tab to a field you cannot see. And even more annoying when I am recognized as a bot then too!

    Also, a nice thing to do is saving the spam comment to the database and then showing it on your site, but only to the IP address that posted it. That way, the bot will (hopefully) think that it succeeded posting and move on.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算