开发者

Best solution to anti-spam in PHP?

开发者 https://www.devze.com 2022-12-25 06:51 出处:网络
How to distinguish robots from normal user? How does SO do this job? Currently I\'m met 开发者_如何学Gowith a robot which post once every 1 hour...Try akismet as your first line of defense. Bad Beha

How to distinguish robots from normal user?

How does SO do this job?

Currently I'm met 开发者_如何学Gowith a robot which post once every 1 hour...


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.


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


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.


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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号