Modification Description::
Complements phpBB3's current banning system by checking a users username/email/ip against the StopForumSpam.com listing using its API. It will automatically ban current users and prevent registration.

Modification Version: 0.1

Requirements: phpBB 3.0.xFeatures:

Can ban and prevent forum registration based on users IP, email, or username and enforce a ban on already registered users (each check is optional).

Can set your own tolerance (i.e. only ban username if it's been reported on StopForumSpam.com 5 or more times)

Can set your own ban end (i.e. allow an IP if it hasn't been reported for more than 10 days).

Logs identified spammers so you can track how well the system is working

Installation:
Sorry, I've never written a mod for distribution, and the system seems to complicated to be make the effort at this very moment. In any case, if you don't know how to follow what I write here then you shouldn't be using it anyway.

Extract the files into a folder on your host.

Open /includes/session.php

In the function check_ban() find $db->sql_freeresult($result); (should be line 1117)

I finally got around to putting this on my live site. In the last hour 40 log entries have been recorded from 24 spammers. All of them were identified by their IP bar one who was identified by email address. One spammer was blocked from registration based on the chosen username--unfortunately the code I've uploaded here doesn't correctly log that event (doh!) so I don't know what username was supplied but he didn't come back.

I don't get that many spam posts, but I didn't realise spammers were hanging around so much. The captcha's would probably have blocked most of these guys anyway, but it's nice to have that second level of defense.

I think I need to extend the log to include what topics or forums they are looking at. I was tempted to log these into the user logs but I think there will be too many.

Just like to say this works brilliantly! I have been constantly fighting with spammers registering themselves on my forum, I have been getting as much as 15 a day! This is only from the ones who don't give a valid address and my default inbox gets bombarded with failed delivery status. The ones that do have a valid address, I get just as many!

This stops the spammers from even getting a chance to register, although I had to remove the username from the ban trigger as some smart cookie decided to use the 'Anonymous' username!

i have this installed and had the 'PM me when spam registers' and well it says i had new PM's but when i went to the inbox i had 0, now i have 2 messages (so it says) but i dont have any. how the heck can i get that back to 0?

PurpleOne wrote:This stops the spammers from even getting a chance to register, although I had to remove the username from the ban trigger as some smart cookie decided to use the 'Anonymous' username!

It's worse than that, it can trigger already-registered users who have logged out. They go to the front page, see the "you have been permanently banned" message and assume their IP has been blacklisted. It hasn't. It's because they had no valid login cookie and the current username defaults to 'Anonymous'. These users could have continued reading/posting if they had ignored the message and logged in, but understandably they assume they cannot log in and walk away.

For my installation I modified the code so that if the current username is 'Anonymous' it ignores it but any other username will be looked up in the database.

PurpleOne wrote:This stops the spammers from even getting a chance to register, although I had to remove the username from the ban trigger as some smart cookie decided to use the 'Anonymous' username!

It's worse than that, it can trigger already-registered users who have logged out. They go to the front page, see the "you have been permanently banned" message and assume their IP has been blacklisted. It hasn't. It's because they had no valid login cookie and the current username defaults to 'Anonymous'. These users could have continued reading/posting if they had ignored the message and logged in, but understandably they assume they cannot log in and walk away.

For my installation I modified the code so that if the current username is 'Anonymous' it ignores it but any other username will be looked up in the database.

hello - please tell me how you modified the code to allow Anonymous users to view forum?
I have problem because all of my guests are banned.
Please answer thx