As phpBB 3.0.6 contains many new spam prevention features, a new spam prevention topic has been created here. Please direct all discussion regarding spam prevent in phpBB 3.0.6 to that topic.

I am going to close this topic as only the latest phpBB release (at the time of this writing is phpBB 3.0.6) is supported. At this time, any spam prevention posts will be met with a suggestion to upgrade to phpBB 3.0.6.

Though phpBB 3.0.5 does include various changes to the CAPTCHA that help deter spambots, it is an unfortunate fact that any fix that is included in the standard software package will quickly be broken. As a result of that, your best bet is to make your board unique (relative to the standard package). The MODs and other tweaks below will aid you with this.

FAQ

What is a spam bot?
Simply put, a spam bot (with relation to phpBB) is a script that is able to register an account and/or post spam on your board.

Is spam a security threat?
No. While spammers may seem like they are breaking through your defenses, they actually don't do anything that a regular users couldn't do (register, post, etc). Spam is therefore not a vulnerability and should not be considered as such.

How do they work?
Spam bots do what they are programmed to do; nothing more. Not having the ability to adapt on the fly puts bots at a disadvantage when put against informed administrators such as yourself. The trick for dealing with bots is to stay one step ahead of their authors. Nearly all anti-spam MODs focus on changing the registration/posting form in order to prevent bots from being able to fill out the information properly.

Do bots fill in the form the same way humans do?
No, the majority of bots submit their responses directly, without loading the form that you set up. What this means in practical terms is that changing only the HTML form will not do anything; you need to actually change how the passed information is interpreted (that means editing the .php files). If you encounter MODs that only edit HTML, they are pointless.

Should I ban bots by IP or email TLD (.ru, .info, etc.)?
If your goal is to save time, this strategy will not help. IPs are often cycled and there are thousands of available proxies that can be found just by searching. By banning IPs, you will also end up banning legitimate users. As bots use a variety of TLDs for their email accounts (including .com, .org and .net), banning international ones like .ru may help slightly, but you will once again end up banning legitimate users (and won't ban nearly every bot). In short, you should focus on preventing as many bots as possible, while not causing legitimate users too much extra hassle.

What about human spammers?
Fighting human spammers is more difficult than fighting bots. While bots will blindly attempt to register and post on every board possible, human spammers will want to make sure that their spam is actually being seen. The trick to fighting human spammers, therefore, is to remove any incentive they would have of targeting your board.

Will following this guide stop all spam?
As I said above, human spammers are difficult to stop and some bots may be adapted to work on your site. Following this guide will, however, cause a significant decrease in the amount of spam starting from the very first day

Stopping Spam - Techniques and Strategies

CAPTCHA - While some bots have been able to break the stock CAPTCHA, it does remain effective at stopping poorly written bots. The changes in 3.0.5 enable some additional settings that make the CAPTCHA slightly more effective. Do keep in mind, however, that these settings make the CAPTCHA more difficult to read, also impacting human users. Therefore, it is recommended that you tweak the CAPTCHA slightly and enable another form of spam protection to stop bots that are not stopped by the CAPTCHA. An effective CAPTCHA setup will have the CAPTCHA background X and Y axis lowered. Additionally, 3D-noise objects should be enabled and an alternate font should be selected.

Custom Profile Fields - There is an article in the Knowledge Base detailing utilising Custom Profile Fields as a spam deterrent. This seems to be effective against most bots.

Admin Activation - This is not practical on most boards, but is an excellent option on smaller, less-trafficed boards. Many spam registrations utilise Gmail addresses or .cn domains, and use a seemingly random combination of letters and numbers for their username.

Post Queueing - phpBB 3.0.3 introduced a new feature which allows admins to queue posts if the users post count is lower than a defined value.
Administration Control Panel > General > Post Settings > Enable queued posts.
This means that your users will not see the first X number of posts by spam accounts and you can remove them and deactivate the accounts without disruption to your members, but legitimate users will be free to post once that number of posts has been approved.

MODs - The best option to stop spam is to make your board somewhat unique, by using deterrents like MODs that are not implemented in a stock phpBB3 install. Below are a list of MODs that do just this. If you are a MOD Author and believe your MOD should be listed here, please PM me or another Support Team Member. Please note that many anti-spam MODs will cease functioning following the release of phpBB 3.0.6 due to changes in the CAPTCHA/registration architecture.

Advanced Visual Anti Bot by lsjames - "Advanced Visual Anti Bot is an effective solution for preventing spambot. It replace the default visual confirmation background with a random picture. So spambot can not check them out by OCR. The background pictures are replaceable. Advanced Visual Anti Bot does not require any database modifications or admin panel configuration."

Anti-Spam ACP by EXreaction - "Anti-Spam ACP adds many powerful anti-spam features to your forum such as an IP Search tool, Spam Word list, control over profile fields, flagging suspicious users (for logging their actions), and an easy one click ban link from their profile which clears out their profile and posts."

daroPL_AntiSpam by daroPL - "MOD blocks spambot registrations on board via change name of confirm code field to unique hash. In addition, it changes size of confirm code field to random."

Javascript Anti Bot by SyntaxError90 - "Adds a hidden field escaped with JavaScript to prevent non-JavaScript browsers from registering. Also adds an option for legitimate users without JavaScript on to register for your forum."

Automatic Spammer Detection by mtotheikle - "This MOD uses Stop Forums Spam and Bot Scout to check username, email and IP for potential spammer. If anything is returned, all the founders receive a PM notify them about the user. Has ACP settings to disable/enable mod and set what sites to check." *This MOD has NOT been validated by the MOD Team*

Prime Anti-bot by primehalo - "Implements a text-based human validation system in order to verify that a form submitter is human and not a SPAM robot. It will remember a successful validation so the user won't have to re-validate each time. The validation phrases/questions and responses are fully customizable; you can put as many or as few as you want (one is picked from the list at random each time it's needed). Can be configured to validate on new registrations and guest postings." *This MOD has NOT been validated by the MOD Team*

These steps, used individually or together, should work to slow or stop your spam problem. Please seek support for the MODs listed above in their respective topic, and utilize this topic only to discuss techniques.

The recent spate of spam registrations was caused by the built in captcha having been cracked. having only ever had 3 spam registrations in over 12 months, I suddenly found I was getting 6 or more per day.

I installed a new captcha and have had no further spam registrations since. I even temporarily disabled my htaccess file to test the new captcha's effectiveness and saw lots of known bots, some of which had previously registered trying to register again, with no success.

z2z wrote:In First method (drop down) is its possible have multiple acceptable or incorrect answer?

Like Last football world cup was won by : ...country list...

It appears that there are no custom profile fields that you can have more than one wrong answer. You can have multiple answers, but only one will cause an error (which can stop the bots dead in their track) You about have to set some up and check the accounts to see what the bots do and which options they always use and then make sure the wrong answer is the one they always pick. (The text and drop down work for me) If they get updated to handle that then just keep watching and change which answer is the wrong one. If the phpBB3 team would add a couple more custom Fields where you could have more than one right or wrong answer it would probably be impossible for the bots to crack it. Hint Hint Hint!

I wonder how a 3D captcha (such as seen here) would stop the bots in their tracks. Generally, OCR technology works on scanning 2D text, even fuzzy and distorted (as faxes and photocopies often are) but not on scanning 3D text.

tffnguy wrote:It appears that there are no custom profile fields that you can have more than one wrong answer. You can have multiple answers, but only one will cause an error (which can stop the bots dead in their track) You about have to set some up and check the accounts to see what the bots do and which options they always use and then make sure the wrong answer is the one they always pick. (The text and drop down work for me) If they get updated to handle that then just keep watching and change which answer is the wrong one. If the phpBB3 team would add a couple more custom Fields where you could have more than one right or wrong answer it would probably be impossible for the bots to crack it. Hint Hint Hint!

may be in 3.0.5!

This method actually has reduce human spammer registration too ..i have very specific questions + i keep changing them antispm_a antispam_b so on ..simply activate/deactivate

I too have the major spambot problem (multiple phpBB3 installs). I found the custom field at signup has helped tremendously. In fact I've thought of removing the CAPTCHA since they can crack it anyway...

Just a thought. Are you guys able to integrate Akismet somehow to detect spammers? My wordpress blog uses Akismet to identify spam comments and it's VERY effective. If you could tie the akismet in there to the main registration page it would be fantastic! http://akismet.com/

Red Prince wrote:I wonder how a 3D captcha (such as seen here) would stop the bots in their tracks. Generally, OCR technology works on scanning 2D text, even fuzzy and distorted (as faxes and photocopies often are) but not on scanning 3D text.

I'm actually working on port this 3D captcha to phpbb3 in my 'localhost'. Hopefully I'll be able to put up a package very soon to post for downloads.

I'm going there in the MODs in development forum in order to open a DEV Topic you could subscribe.

Some time ago we detected an increased number of spambot registrations on a phpBB3 board I administer.

What I did was add a custom profile field to the registration form and de-activate the captcha.
This custom profile field just asks for a word to be introduced. The word that is required appears next to the field where it needs to be entered.

Since then spam registrations dropped to almost zero instantly.

The very occasional spammer that registers must be human, meaning that they would have passed through with the captcha just as well.

In another Preventing Spam thread (which I can't seem to find...it was very lengthy) there was talk of a feature in 3.0.4 that set it so that new members had to get their first X posts approved by a moderator prior to their display on the forum.

I can't seem to find this function

Can someone point it out to me in the ACP--should it even exist? thank you!