Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Possible Duplicate:
How can I prevent spam on sites which I control?

I am running a phpBB forum where the requirements were that users shouldn't have to sign up in order to post. They could just give a name and post as long as they used recapcha before posting.

Problem is that there are like 30 pages of spam in some threads. The software is up to date. The forum gets very little legitimate traffic. If I can't fix this I will either have to require registration or remove the forum all together.

share|improve this question

marked as duplicate by danlefree Feb 15 '12 at 20:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Are you doing anything on the back end to block spam? There are a number of phpBB mods to filter spam. –  mellowsoon Oct 24 '10 at 7:30
    
@mellowsoon: can you name some, perhaps together with experiences you had with them? –  0xC0000022L Jun 25 '11 at 15:45
add comment

3 Answers 3

CAPTCHAs are not bot-proof. There are bot algorithms out there that are perfectly capable of breaking CAPTCHAs, and they're getting better and more widespread with each passing day (while CAPTCHAs have basically reached their maximum opacity). Though in my experience CAPTCHAs can still keep 98% of bots out, so it's unfortunate that your site has been particularly hard hit.

One of the things with CAPTCHA-reading algorithms is that (the last I read about them) the best algorithms only had a 50% accuracy, and the typical algorithm was more around 20%. That's not particularly high compared to the average human, but if you only need to solve the CAPTCHA once and can make as many attempts as you need, then it's plenty high to break the CAPTCHA authentication.

If you're faced with bots that can break CAPTCHAs, then you might consider putting a delay between re-issuing CAPTCHAs. E.g. if they fail the first attempt, then they need to wait 5 seconds before trying again. If they fail a second time, then they have to wait 10 seconds. If they fail a third time, then they have to wait 30 seconds. And if they fail that, then their IP is banned for 24 hours. And if a particular IP address is failing two or more times on almost every post attempt and continues to post regularly, then you can be pretty sure that it's a bot, since most people would be fed up with having to solve that many CAPTCHAs to make a forum post.

Also, you should check the strength of your CAPTCHAs, i.e.

  • Never reissue the same CAPTCHA twice (even with randomized noise).
  • Never use a fixed pattern answer (e.g letter, number, letter, number).
  • Similarly, don't use math problem CAPTCHAs with a predictable format.*
  • Make your CAPTCHA adequately long (at least 5-8 characters).
  • Never use a fixed-width font. The most problematic step in the CAPTCHA-solving process for bots is segmentation. This is where bots have the lowest success rate. By using a fixed width font, you're basically getting rid of this step for them.

*One possible exception to the math problem CAPTCHA rule is if you make the CAPTCHA really long by spelling out all parts.

Additionally, you could try using word riddles (so long as they can be generated randomly) and adding accent marks to the letters in your CAPTCHAs. You'll probably also want to use other anti-bot techniques like including hidden fields to trap bots or clever JavaScript to set cookies.

Given the volume of spam you're getting, I assume your site must be very popular. So you could also enlist the help of users to help de-spam the site. If you employ a peer-moderation system in addition to a dedicated team of moderators, that should help keep spam levels to a minimum.

Though you should still consider requiring sign-up in order to post. Any serious forum poster is gonna want to sign up so they can be notified of replies. It's also more convenient to do a quick sign-up than to have to fill out a CAPTCHA every time you want to post a message. Right now you're basically catering your forum to users who are more likely to be trolls who don't want any long-term commitment to the community than serious participants.

share|improve this answer
1  
"adding accent marks to the letters in your CAPTCHAs" <-- Just don't make users enter those or they'll HATE you :P +1 –  Billy ONeal Oct 23 '10 at 1:39
    
Yea, I mean adding accent marks but accepting both accented and non-accented answers (like reCAPTCHA does). =P –  Lèse majesté Oct 23 '10 at 11:20
add comment

I had major captcha issues on two of my sites. On one of them I used hidden fields at first and worked wonders. On the other one I used a captcha system that failed in the first two months. It wasn't even a popular site but it got 50k spam comments in less than a week. Crazy! I tried putting hidden fields and known captcha systems in place as the one I first used was "home-made" but spam still went through. I closed the site down since, but I suppose somewhere I must've made a coding mistake, otherwise I can't explain how I could get so much spam such a short time after launching. The other website, that only relied on hidden links, was doing well for over an year, but started getting spammed as well after a while, but much more rarely than the other one, around 100 spam comments a week. I managed to stop it putting in a captcha system.

For a while now I don't use captcha or hidden fields anymore and I rely purely on Javascipt methods. I know that many will say "what about users with Js disabled", well.. it's 2010, let's all get used to it the same way we got rid of IE6. The best Js options in my opinion are either hovering over an image/object, either dragging a slider or anything like that. I know that some bots can run js, but still, I find it as a good addition, I didn't have problems for a while now...

share|improve this answer
    
There are as many users with JavaScript turned off as ever thanks to browser extensions like noscript. The Internet has become so unsafe people are being more cautious then ever. –  John Conde Oct 22 '10 at 18:49
1  
There might be, but then again, most of the good stuff out there won't be available to them as it is with Js enabled. It will be available as raw content, but that's about as far as you can go in terms of "failing gracefully". Also, I forgot to mention, I ussually build websites for more IT-oriented people, so disabled Js would almost never be an issue. –  Claudiu Oct 22 '10 at 19:35
add comment

Try the VIP code mod: http://www.phpbb.com/community/viewtopic.php?t=435702

That works fantastic!

share|improve this answer
    
Yea, that's a common anti-spam technique. But the problem with these human-crafted question challenges is that they can't be randomly generated. So it might be effective on smaller sites or sites catering to niche audiences (e.g. I registered for a skateboarder forum that used a skateboard trivia question), but once you get to a certain volume of traffic it stops being effective. You just can't use a static challenge-response test on large sites. –  Lèse majesté Oct 23 '10 at 11:34
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.