-->

Best solution to anti-spam in PHP?

2020-06-26 19:48发布

问题:

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