Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vbStopForumSpam Details »»
vbStopForumSpam
Version: 0.61, by pedigree pedigree is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Category: Anti-Spam Options - Version: 4.0.0 Rating:
Released: 12-22-2009 Last Update: 12-26-2009 Installs: 1201
DB Changes Uses Plugins
Re-useable Code Additional Files  
No support by the author.

vbStopForumSpam

Mod of the month winner October 2009.... That cant be bad :up:


Apologies in advance, this is a copy of the 3.6/3.7/3.8 mod that has been verified to work in 4.0 (its so that I dont get a billion PMs asking if it works in 4.0)

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.

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.

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

For code to submit spammers to the database, check this post for code changes
https://vborg.vbsupport.ru/showpost....&postcount=288

Reported 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, 4.0 Gold
, 4.2pl1,2

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+

There is a small mod, coded by Wired1 that will allow you to submit spammer details to the database from the admin control panel, here https://vborg.vbsupport.ru/showpost....&postcount=289 This relies 100% on javascript being enabled and makes no tests that it is enabled.

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 the file upload the correct folders.

Please click Installed

The original thread is at https://vborg.vbsupport.ru/showthread.php?t=176481 where there is a wealth of knowledge about the mod, please ask questions in there.

Download Now

File Type: zip vbStopForumSpam_v0.61.zip (10.7 KB, 6715 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #182  
Old 05-18-2010, 01:21 AM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tommac3 View Post
I found a bug ... if you have the facebook turned on it wont let you register as it thinks you are a spammer.
Easy fix: Disable Facebook connect. It causes more problems than it's worth anyway. As far as I'm concerned. it's just a backdoor waiting for hackers.
Reply With Quote
  #183  
Old 05-20-2010, 10:16 PM
MichaelDance MichaelDance is offline
 
Join Date: Dec 2009
Location: Warwickshire, UK
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks very useful Mod I installed and i LOVE IT
Reply With Quote
  #184  
Old 05-25-2010, 11:23 PM
Louva-Deus Louva-Deus is offline
 
Join Date: Jan 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by radmoose View Post
One question.. is anyone getting valid usernames and/or email addresses in their log?
Code:
Unregistered	2009-12-24 08:32:14	EMAIL	202.116.160.89	Result on field ip - 202.116.160.89 - Spammer and rejected by policy
Unregistered	2009-12-24 07:40:14		64.191.50.99	Result on field ip - 64.191.50.99 - Spammer and rejected by policy
etc...
Quote:
Originally Posted by pedigree View Post
The "Unregistered" username could be a misconfigured bot

http://www.stopforumspam.com/search?q=unregistered
Quote:
Originally Posted by Lore Master View Post
The Unregistered displays when the username field is left blank when the form is sent. The REMOTERR dislays when the email field is left blank. For some reason these started showing up in vB 4.0.

My workaround: to check for a blank username and email fields and if either are empty bypass the stopforumspam check, as vB will send the user back to complete these fields anyways. Just a work-around, I tested it and it seemed to work correctly.

Go to plugins and open the vbstopformspam plugin for register_addmember_process. Select edit, and highlight the code. Paste this over it:

Code:
if (!empty($vbulletin->GPC['username']) AND !empty($vbulletin->GPC['email']))
{
				$sfsPurged = false;
				require_once('includes/functions_vbsfs.php');
				sfsProcess();
}

In case anyone is still having this problem I have a bit of code that will prevent quite a few invalid submission problems. Lore Master made a great contribution with his code suggestion but it needs to go one step further to deal with all the strange things being submitted to the Stop Forum Spam database. For instance, it isn't overly helpful to the community for a slew of 'Unregistered' submissions to be posted on the website. They are invalid and never should have been submitted.

To stop this from happening we need to do more than check for empty username and email fields. So instead we need to let vBulletin handle the invalid form data and only run the vbStopForumSpam check if a valid registration is submitted. The forum software checks to make sure all the required fields are filled in, that the email address submitted is valid, and various other things, so we don't need to repeat work that has already been done.

To accomplish this input the following code into the 'register_addmember_process' hook for the vbStopForumSpam plugin and replace what is already there.

Code:
// $errors = vb 3.0.0+ support
// $userdata->errors = vb 3.6.1-4.0.x support
if (empty($errors) AND empty($userdata->errors))
{
				$sfsPurged = false;
				require_once('includes/functions_vbsfs.php');
				sfsProcess();
}

This allows vB to operate like it normally would when handling registration attempts and only passes data on to the vbStopForumSpam mod if the registration form has been filled out properly. This clears a lot of nonsense from the log records and it saves lookup time and server resources. It might even save the Stop Forum Spam website a little bandwidth.

Finally, this helps to reduce any accidental blocking of legitimate users from registering on your site, either locally or through being mistakenly added to the Stop Forum Spam database, which lists email as well as IP addresses. Remember that virtually none of the people added by mistake will know to come to the Stop Forum Spam website to get their information removed so they can register on a forum they want to join.

HTH

LD
Reply With Quote
  #185  
Old 05-26-2010, 02:16 PM
howard007 howard007 is offline
 
Join Date: Oct 2006
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you whitelist a person when they are not spam? I don't see this in the file docs.

Thanks!
Reply With Quote
  #186  
Old 05-27-2010, 08:24 AM
MagiKelly MagiKelly is offline
 
Join Date: Jan 2006
Location: Scotland
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just get their details and create the account manually. A bit of a faff but so rare in my experience that it is not a problem.
Reply With Quote
  #187  
Old 06-02-2010, 07:29 PM
BrightStar's Avatar
BrightStar BrightStar is offline
 
Join Date: Nov 2008
Location: UK
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Some of my users are trying to register via facebook and get this error?

Quote:
Result on field email - [REMOTEERR] Unverfied and rejected by policy
Reply With Quote
  #188  
Old 06-02-2010, 08:57 PM
Charlie98902 Charlie98902 is offline
 
Join Date: Dec 2006
Posts: 1,156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was getting more than a few users via email stating they were marked as a spammer and did manually register them but I don't have time to do this always so I went with the other mod like this - https://vborg.vbsupport.ru/showthread.php?t=239307 This is a great add-on but a headache right now.
Reply With Quote
  #189  
Old 06-04-2010, 12:51 AM
pzet pzet is offline
 
Join Date: Jul 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for this excellent mod

Absolutely fantastic, a must for every serious forum admin.
Helped me to get rid of some of the "bad guys".

Nominated
Reply With Quote
  #190  
Old 06-04-2010, 03:47 AM
howard007 howard007 is offline
 
Join Date: Oct 2006
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really don't get it. Why wouldn't the programmer for this awesome mod. at least allow one to whitelite an ip? This is such a good mod and is really missing this vital option.
Reply With Quote
  #191  
Old 06-04-2010, 10:29 AM
KProjects KProjects is offline
 
Join Date: Feb 2006
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone noticed this on their vbstopforumspam logs?

This is the user and email:
#file_links[C:\Documents and Settings\Administrator\Desktop\Base\MarlboroKey\Ma rlboroKey.txt,3,S] [url=#file_links[C:\Documents and Settings\Administrator\Desktop\Base\MarlboroURL\Ma rlboroUrl.txt,1,L]]#file_links[C:\Documents and Settings\Administrator\De

It allowed registration for a couple of them and blocked a couple based on ip. I'm not showing any new users however..
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 02:16 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05749 seconds
  • Memory Usage 2,352KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (10)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete