Best solution to anti-spam in PHP?

2020-06-26 19:29发布

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...

4条回答
女痞
2楼-- · 2020-06-26 19:53

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.

查看更多
beautiful°
3楼-- · 2020-06-26 19:56

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

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

查看更多
祖国的老花朵
4楼-- · 2020-06-26 19:59

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.

查看更多
爷、活的狠高调
5楼-- · 2020-06-26 20:04

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

查看更多
登录 后发表回答