justAnoob Posted February 1, 2010 Share Posted February 1, 2010 I've noticed on a lot of websites where users can posts comments, or even in the forum sections of some sites, that there is a ton of spam. so much that is is almost impossible to post a comment that will be seen. What is the best way to keep spam bots away from posting all that &^$@%$^! (spam i mean)? From what I understand for a spam bot to work, the bot must first have registered on your site, as long as it is setup where only registered users can post a comment. So would just having a simple php captcha on the registration do the trick. Or are ther better alternatives to acheiving a spam free comments section and/or forum section? Quote Link to comment https://forums.phpfreaks.com/topic/190589-question-about-spam-bots/ Share on other sites More sharing options...
Mchl Posted February 1, 2010 Share Posted February 1, 2010 Good captcha is usually the best way. Quote Link to comment https://forums.phpfreaks.com/topic/190589-question-about-spam-bots/#findComment-1005193 Share on other sites More sharing options...
gizmola Posted February 2, 2010 Share Posted February 2, 2010 In my experience a good captch eliminates all automated spam. If you are seen as a high profile target, then there are ways that some spammers will use to fake out real people into solving the captcha images, but that is no reason not to start with a captcha. Many many sites these days use recaptcha which is a service that not only hosts the captcha's for you, but also helps with efforts to OCR books, magazines and newspapers. If you want to host your own recaptcha there's a few decent libraries out there that use php and gd to generate the images. You have to do some research because there are plenty of weak captcha's out there that were defeated -- most notably one for phBB some years back, not to pick on them exclusively as there are plenty of other weak captchas that were defeated. Quote Link to comment https://forums.phpfreaks.com/topic/190589-question-about-spam-bots/#findComment-1005294 Share on other sites More sharing options...
justAnoob Posted February 2, 2010 Author Share Posted February 2, 2010 So what would be the best captcha to use? Quote Link to comment https://forums.phpfreaks.com/topic/190589-question-about-spam-bots/#findComment-1005727 Share on other sites More sharing options...
gizmola Posted February 2, 2010 Share Posted February 2, 2010 I already recommended implementing recaptcha, which is easy to do, as there are already php libraries that make it simple to integrate. Quote Link to comment https://forums.phpfreaks.com/topic/190589-question-about-spam-bots/#findComment-1005762 Share on other sites More sharing options...
justAnoob Posted February 2, 2010 Author Share Posted February 2, 2010 oh sorry gizmola, i will take a look at it. thanks. Quote Link to comment https://forums.phpfreaks.com/topic/190589-question-about-spam-bots/#findComment-1005777 Share on other sites More sharing options...
Daniel0 Posted February 2, 2010 Share Posted February 2, 2010 From my experience, a lot of form spam is done by humans and humans tend to pass CAPTCHAs. The only way of catching that is by manually verifying everything/everyone or applying a spam filter that uses various heuristics for determining whether or not it's spam. Machine learning is of course way more difficult than simply writing a CAPTCHA script. There are various services (e.g. akismet) you can use for this. Quote Link to comment https://forums.phpfreaks.com/topic/190589-question-about-spam-bots/#findComment-1005805 Share on other sites More sharing options...
gizmola Posted February 2, 2010 Share Posted February 2, 2010 Human generated comment spam is insignificant when compared to the spam generated by bots. I did mention that humans can be tricked into defeating captcha's, or even paid to spam, however, for most communities, captchas work fine, although akismet is a great additional form of protection. So in summary, while I don't disagree with Daniel's point, that human spam can be a huge problem that captcha's don't solve, that's not a reason not to do a captcha as your first line of defense, and in my experience, for many sites, it eliminates the majority and often the entirety of comment spam. Sites like Yahoo get a lot of human spam, but you have to be a pretty high profile target to attract that type of attention. Quote Link to comment https://forums.phpfreaks.com/topic/190589-question-about-spam-bots/#findComment-1005813 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.