Best solution to anti-spam in PHP?

青春壹個敷衍的年華 提交于 2019-12-05 06:45:13

问题


How to distinguish robots from normal user?

How does SO do this job?

Currently I'm met with a robot which post once every 1 hour...


回答1:


Try akismet as your first line of defense. Bad Behaviour is efficient too, perhaps too efficient, as i had issues with false positives. Akismet on the other hand serves me well. Then, if necessary, add other layers not impeding on the user experience, (like using empty fields that should remain empty) and then if you really have to, other techniques involving turing test of some sorts (captcha being the worst in terms of user friendliness: try simple questions instead). Here is a good read.




回答2:


There are multiple approaches to this problem and it's a good idea to use several that overlap. One of those that SO uses is reCAPTCHA




回答3:


Make sure you've got a valid email address for anyone who posts (as per S.O.) and implement a CAPCHA on registration and when you think someone might be behaving oddly. Keep a well-trained copy of spamassassin around and feed the posts through that.

C.




回答4:


* QUICK, IMPLEMENT EASILY TO EXISTING FORM, SIMPLE INTERACTION FOR USERS *

http://www.codegravity.com/projects/mathguard



来源:https://stackoverflow.com/questions/2570367/best-solution-to-anti-spam-in-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!