Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vbStopForumSpam - known spammer lookup for new registrations Details »
vbStopForumSpam - known spammer lookup for new registrations
Mod Version: 0.61, by pedigree (Coder) pedigree is offline
Developer Last Online: Nov 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.1 Rating: (180 votes - 4.84 average) Installs: 1985
Released: 17 Apr 2008 Last Update: 27 Jan 2010 Downloads: 6810
Not Supported DB Changes Uses Plugins Auto-Template Additional Files Translations External Content Is in Beta Stage  

vbStopForumSpam

This provides access to a RBL type system for forum admins, listing known spam IP / email / usernames. The RBL database is provided by www.stopforumspam.com. You do NOT need an API key from the website in order to access the database. only to submit data if you should wish to do so.

At the point of user registration, the mod checks if the IP number / provided username / email addresses appear on a block list and can block the registration.

Whilst this isnt the most perfect way to stop all forum spam, its another step that spammers have to overcome.

VB4 here http://www.vbulletin.org/forum/showt...hreadid=230921
Its the same code, it works in 3.54 to 4.0


What it does

It checks with a remote database of known forum spammers. Their IP number, email address and forum username are tested and based on your configuration, you can reject / log / accept user registrations based on what you get back.

This version doesnt have
- whitelisting or the ability to submit users to the database but it will within the next week.
- automatic user deletion / post / PM purging. There are good tools out there already, this does something else.

Instructions are included in the installation.txt file - PLEASE read it first and dont forget to actually upload the files in the upload folder, otherwise it WILL kill your registration progress and you wont see the log file options in admincp. You do not need to download the product-vbstopforumspam-3.54.xml file unless you are using a vBulletin version older than 3.6.0

Changes to vB
- 3 new database tables
- 2 database table alternations
- No new templates.
- 2 Hook (register_addmember_process & register_addmember_complete)

Ive tested it but had feedback that it works with versions as old as 3.6.2... Support should go back to older versions, as long as they have hook support for register_addmember_process / register_addmember_complete

Known to work - tested by me
- vBulletin 3.6.8 on Apache 2.2 / PHP 5.1.2 on Linux using cUrl
- vBulletin 3.7 Gold on Apache 2.0 / PHP 4.4.3 on Windows without cUrl (template changes wont work on 3.7 - thats in the next version with auto template changes)

For code to submit spammers to the database, check this post for code changes
http://www.vbulletin.org/forum/showp...&postcount=288

Reported in the thread to work
- 3.6.1, 3.6.2, 3.6.9, 3.6.10, 3.7.0, 3.7.1, 3.7.2, 3.7.3, 3.74, 3.80, 3.81, 3.82, 3.83, 3.8.4, 4.0beta3


If you have 3.54, then you can use the product-vbstopforumspam-3.54.xml file attached instead of the one in the ZIP file, which will allow older vBulletin versions to access this mods' features. I personally havent tested this version, its a user contribution, thanks to Darrell Mobley, that changes the way the XML works when imported into older versions.

Installers should remember to refresh their ACP navigation window when they first install it so they can see the new log file menu item.

REQUIRES MySQL 4.1.1+

Future versions
- Automatic integration into vBulletin to add users to the stopForumSpam.com database from a form
- Whitelisting of username / IP / email addresses
- AJAX integration to allow for lookups from within the users profile
- Decreased remote query count from three per user to one per user.

Versions / Changes

0.1 Initial Release

0.2 pedigrees special brew birthday release.
- Small security update. If you have 0.1 installed, download 0.2 and replace your existing functions_vbsfs.php with the one in the archive. It just tests to see if its running inside the VB framework before anything else. This is what happens when you code at 2am after drinking wine

0.3
- stopped it processing valid registrations twice
- moved all non-function code into the plugin. Not a big one as 0.2 basically did that
- fixed a typo in the log pruner that stopped it working (404)
- removed unused fields from the database for people with mysql that doesnt support varchar > 255 (ie mySQL4). If you have 0.2 installed and dont need to prune your logs just yet, you dont really need to install this version but can instead wait for 1.0 unless of a massive security update.

0.4
- logs registrations that arent/wouldnt be blocked
- fixed XML errors when username has a space it in
- tightened up the cache so that it doesnt test a username against an email name to give a bypass result (for when a username is an email address that isnt banned where the email address is)
- fixed some basic logic errors in the PHP

0.6
- Should work on PHP 4.4 now - rewrote the XML with PHP4 in mind (tested on Apache2.0/PHP 4.4.3)
- Fixed a caching system where data wasnt being updated correctly which could cause a remote query when one wasnt needed
- Possible false negative situation when a spammer was blocked due to SFS.com being down who then visited again when it was up but within the cache expiry time
- Remote query failure when the result page isnt XML should work a bit better now. It does a very basic test for valid XML results.
- Fixed log purging (again) and it should actually work properly now.
- No longer requires PHP5
- The log viewer now links to a user profile when registration is allowed.

v0.61 - Removed a template change that was invalid vBulletin code. The package you download will still say its 0.60 however

NB : When upgrading from any version to 0.6, you must remove and then add the plugin due to changes in one of the database tables

You need to have an API key from www.stopforumspam.com in order to submit data, its free and easy to get... You DONT need an API key in order to use this mod however, only to submit spammer data.

Issues are
- The usergroup permissions / view details etc DONT work. I jumped the gun and put the permissions controls in there before I put the code in. Please delete the includes/xml/bitfield_vbstopforumspam.xml file and rebuild your postbit

Installation
- Follow the instructions in the zip file, that includes upload the correct folders
- ONLY download the 3.54 xml file if youre using a vbulletin version prior to 3.6.0. use this file to install the mod instead of the xml file in the zip file.

Please click Installed

Download Now

Only licensed members can download files, Click Here for more information.

Addons

Screenshots

Click image for larger version

Name:	error.gif
Views:	4824
Size:	9.8 KB
ID:	78900   Click image for larger version

Name:	admin.gif
Views:	4520
Size:	19.0 KB
ID:	78901   Click image for larger version

Name:	logs.gif
Views:	4589
Size:	33.6 KB
ID:	78902  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Validate email by MX lookup fastforward vBulletin 2.x Full Releases 28 22 Oct 2007 11:29

  #31  
Old 22 May 2008, 10:38
pedigree pedigree is offline
 
Join Date: Jul 2005
Originally Posted by skippybosco View Post
Thanks pedigree, left it over at the SF Forum, but to echo it here:

Couple more suggestions:

1) Make the usernames in the VBStopForumSpam Log linkable to the user record so that when reviewing the log we can easily click to open that user and delete / ban

2) When adding the ability to "Add user to StopForum" I would love to see it in 2 places: a) the thread/post itself for deleting thread/post, deleting (or banning?) user and reporting to StopForum in one click b) the user drop down within a thread/post to delete and report user c) in the User record in Admin to select delete and report as a drop down option.

I had 10 or so slip by this morning and was looking high and low for the submit to SF option only to come back here and see it has not been added yet, doh!
#1 - not a problem, that can be easily added. Its going to POST a form to the user search function as the user is assigned an ID after vbSFS has completed its processing. I would have to add another plugin to link to a user id directly. You shouldnt really notice any difference unless you click a user that was blocked and then the search would return no results.

#2 - I can add that with a two forms. I emailed russ about remote form submitting and never got a reply. If he changes the way the form is submitted (ie hidden input values, cookie verification etc) on his site, then any form I make will instantly be broken. I was hopnig that he would finalise a submit API. Until then, I guess we can work around those
__________________
My mods vbRosterMaster | Ajax New PM Notifier | vbStopForumSpam

Last edited by pedigree; 22 May 2008 at 10:55.
Reply With Quote
  #32  
Old 22 May 2008, 10:41
pedigree pedigree is offline
 
Join Date: Jul 2005
Originally Posted by KidCharlemane View Post
Doesnt seem to work on 3.7 RC1.. just hangs up after you fill out the registration form.
I dont have a license for 3.7 Im sorry so there is no way that I can even update the script. Unless vbulletin.com let people run a copy on a private network, Im sprry but a LOT of mods will never get ported beyond 3.6.x

I *might* be able to use a friends board but hes not purchased any upgrades.. Hes thinking about it.

Ive just had an email back from vbulletin.com who specifically said that if I wanted to write mods for 3.7, then I would have to pay to upgrade my license. Im not willing to pay a lot of cash to upgrade my forum (thats not used anymore) just in order to write free, non-paid mods Im sorry.
__________________
My mods vbRosterMaster | Ajax New PM Notifier | vbStopForumSpam

Last edited by pedigree; 22 May 2008 at 14:32.
Reply With Quote
  #33  
Old 22 May 2008, 11:49
pedigree pedigree is offline
 
Join Date: Jul 2005
#1 is done and is with someone for testing, will be in v0.5

#2 As I mentioned in the original mod post, there are plenty of ban/delete/clean up mods out there, all linking from thread/post/forum pages. Ill see how I can add the report to the website without breaking any of the 1-click ban/delete mods... if I did, I would be very unpopular. This will require template changes so Ill try my best.

ive looked at th one-stop clean/ban plugin and it looks like I can add a "submit to stopformspam" in much the same way, in the same places. its not a small piece of code change so it might take me a little while Im afraid.
__________________
My mods vbRosterMaster | Ajax New PM Notifier | vbStopForumSpam

Last edited by pedigree; 22 May 2008 at 16:15.
Reply With Quote
  #34  
Old 22 May 2008, 20:14
steadicamop's Avatar
steadicamop steadicamop is offline
 
Join Date: Jul 2004
Real name: Jason Williams
Anyone confirm whether this works on 3.6.2? I know I'm a little behind on upgrades.... but this would invaluable!!!

Just used the Stop Forum Spam site to remove one today, would be great to have it automated!
Reply With Quote
  #35  
Old 22 May 2008, 23:45
pedigree pedigree is offline
 
Join Date: Jul 2005
edit register.php and search for register_addmember_process and register_addmember_complete - if you find them in something that says hook on the same line, then it should work.
__________________
My mods vbRosterMaster | Ajax New PM Notifier | vbStopForumSpam
Reply With Quote
  #36  
Old 23 May 2008, 06:16
abrecher abrecher is offline
 
Join Date: Jan 2004
This is a great mod. Can you pretty pretty please port it to 3.7 ?
Reply With Quote
  #37  
Old 23 May 2008, 11:52
skippybosco skippybosco is offline
 
Join Date: Sep 2007
So StopForumSpam.com has stopped responding (5/23 4amPST) for the last 30 min or so (DOS??). The result is that registrations are failing with a blank white screen.

Errors being thrown are:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Tried adjusting time out settings with no success.. bummer.
Reply With Quote
  #38  
Old 23 May 2008, 17:56
steadicamop's Avatar
steadicamop steadicamop is offline
 
Join Date: Jul 2004
Real name: Jason Williams
Originally Posted by pedigree View Post
edit register.php and search for register_addmember_process and register_addmember_complete - if you find them in something that says hook on the same line, then it should work.
Thanks will give this a bash ... if and when the site comes back up!
Reply With Quote
  #39  
Old 24 May 2008, 00:35
skippybosco skippybosco is offline
 
Join Date: Sep 2007
Site is back up, albeit a bit slow at the moment.

No mention of what happened on the SFS forum.

Denial of service?
Reply With Quote
  #40  
Old 24 May 2008, 01:45
Twin_Turbo Twin_Turbo is offline
 
Join Date: Mar 2008
Since installing this I wasn't getting any new registrants where I had multiple eaach day. I tested it and when any of the checking features is enabled I get this error:

Fatal error: Cannot instantiate non-existent class: simplexmlelement in /home/content/XXXXXXX/html/forum/includes/functions_vbsfs.php on line 47

What gives?

Last edited by Twin_Turbo; 24 May 2008 at 02:00.
Reply With Quote
  #41  
Old 24 May 2008, 09:13
steadicamop's Avatar
steadicamop steadicamop is offline
 
Join Date: Jul 2004
Real name: Jason Williams
Originally Posted by pedigree View Post
edit register.php and search for register_addmember_process and register_addmember_complete - if you find them in something that says hook on the same line, then it should work.
I checked and both hooks are present, although I had to edit the xml file to change the version from 3.6.5 to 3.6.2 - but installed ok, after a quick text using an email address off the stop spam site ... I got the same error as above -

Fatal error: Cannot instantiate non-existent class: simplexmlelement in /homepages/13/d103069509/htdocs/includes/functions_vbsfs.php on line 47
After a quick check it would appear that the class simplexmlelement is only in PHP 5 upwards ... I'm on 4.4.8 -- so this isn't compatible.
Reply With Quote
  #42  
Old 25 May 2008, 13:06
pedigree pedigree is offline
 
Join Date: Jul 2005
Ill add a test in the code for the php5 function, if it doesnt exist, then it will have to skip. Php4 is end of live. If I get the time, Ill right a replacement for it but it seems pointless in doing that when php provides a perfectly good function
__________________
My mods vbRosterMaster | Ajax New PM Notifier | vbStopForumSpam

Last edited by pedigree; 25 May 2008 at 13:33.
Reply With Quote
  #43  
Old 25 May 2008, 13:07
pedigree pedigree is offline
 
Join Date: Jul 2005
Originally Posted by skippybosco View Post
So StopForumSpam.com has stopped responding (5/23 4amPST) for the last 30 min or so (DOS??). The result is that registrations are failing with a blank white screen.

Errors being thrown are:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Tried adjusting time out settings with no success.. bummer.
Hmm, strange. I setup my firewall to drop all connections to SFS to test connection errors. Are you usign curl?
__________________
My mods vbRosterMaster | Ajax New PM Notifier | vbStopForumSpam
Reply With Quote
  #44  
Old 25 May 2008, 13:33
skippybosco skippybosco is offline
 
Join Date: Sep 2007
I suspect dropping connections (immediate failure) is probably exhibiting different behavior than a request stalling out from a delayed response?

I'm using default settings, so CURL if available.

My server is configured:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #45  
Old 25 May 2008, 15:29
Twin_Turbo Twin_Turbo is offline
 
Join Date: Mar 2008
Originally Posted by pedigree View Post
Ill add a test in the code for the php5 function, if it doesnt exist, then it will have to skip. Php4 is end of live. If I get the time, Ill right a replacement for it but it seems pointless in doing that when php provides a perfectly good function
I'm not sure I understand what you mean, are you going to write a fix? I'd love to use this mod. I've got some pensy pests from germany and china, they were being blocked but otehrs couldn't register because of the error.

Thanks

Marck
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 20:58.

Layout Options | Width: Wide Color: