Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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
  #232  
Old 10-28-2010, 03:21 PM
vortodox vortodox is offline
 
Join Date: Oct 2009
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Recently this plug-in started seeing anyone as a spammer... :S
Is there some problem with plug-in or what?
I mean even I can't register on my own forum... O.o
Reply With Quote
  #233  
Old 10-31-2010, 09:54 PM
edshuck edshuck is offline
 
Join Date: Feb 2003
Location: San Francisco
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am misunderstanding something about the install process.
I unzip the package and get the upload, the xml and the install.
The install says to upload the upload "contents" to the root of the forum.

Does this mean that I should upload the file from the admincp and the file from the includes into the forum folder OR should I move the file from upload > admincp to the forum > admincp and upload > includes to the forum > includes.

If I upload the admincp and the includes on top of the ones already in the forum, won't that destroy the forum.

Like I say, i'm just confused.

I think that I am confused about what is root. Is that like this:

public_html > forum

public_html > admincp (from upload)

public_html > includes (from upload)

If it is, that would answer the question.

thanks

ed
Reply With Quote
  #234  
Old 11-04-2010, 01:00 PM
RTWAP RTWAP is offline
 
Join Date: Apr 2009
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would it be possible to have the blocked ips automatically added to the Banned IP Addresses list?

Works perfect on VB 4.0.7.
Reply With Quote
  #235  
Old 11-04-2010, 03:09 PM
RTWAP RTWAP is offline
 
Join Date: Apr 2009
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Found a bug when sorting the logs by ip address:
Quote:
Invalid SQL:

SELECT * FROM vbstopforumspam_log AS logs

ORDER BY ip ASC, date DESC
LIMIT 0, 15;

MySQL Error : Unknown column 'ip' in 'order clause'
Here's the fix:

Inside /admincp/vbstopforumspam.php:

Find:

Quote:
switch($vbulletin->GPC['orderby'])
{
case 'ip':
$order = 'ip ASC, date DESC';

break;
case 'email':
$order = 'email ASC, date DESC';
break;
case 'username':
$order = 'username ASC, date DESC';
break;
case 'date':
default:
$order = 'date DESC';
}
and change like this:

Quote:
switch($vbulletin->GPC['orderby'])
{
case 'ipaddress':
$order = 'ipaddress ASC, date DESC';

break;
case 'email':
$order = 'email ASC, date DESC';
break;
case 'username':
$order = 'username ASC, date DESC';
break;
case 'date':
default:
$order = 'date DESC';
}
Then find this line:

Quote:
$headings[] = "<a href=\"vbstopforumspam.php?" . $vbulletin->session->vars['sessionurl'] . "do=view&pp=" . $vbulletin->GPC['perpage'] . "&orderby=ip&page=" . $vbulletin->GPC['pagenumber'] . "\">IP Address</a>";
and change it to this:

Quote:
$headings[] = "<a href=\"vbstopforumspam.php?" . $vbulletin->session->vars['sessionurl'] . "do=view&pp=" . $vbulletin->GPC['perpage'] . "&orderby=ipaddress&page=" . $vbulletin->GPC['pagenumber'] . "\">IP Address</a>";
Works perfect now. Great add on by the way.
Reply With Quote
  #236  
Old 11-19-2010, 08:08 AM
BarelyHangingOn BarelyHangingOn is offline
 
Join Date: Feb 2003
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anybody help me? I just did a fresh install.

I don't have a link in the profiles any longer to submit data and I do have an api key.
Reply With Quote
  #237  
Old 11-19-2010, 02:20 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KW802 View Post
Quote:
Originally Posted by Kevin
After upgrading my vB 3.x sites to vB 3.8.5 it meant, of course, that I lost the manual edits to submit the user to StopForumSpam.com from directly in the ACP.

So... I came up with a very quick & very dirty plugin to add an option in the postbit. That way if a spammer does make it through and posts something, I can view the post, click on their name in the postbit, hit the 'Submit' button from the drop-down list (which then takes my browser window to the StopForumSpam.com site and shows me the result of submitting the info), hit the browser 'Back' button, and then continue BAU on cleaning up the spam.

Only Super Mods & above should be able to see the 'Submit' button but, for your own sanity, test it out on your site.

Attached is the plugin XML and a screen shot of how it'll look. Notice this is a plugin and not a product! That means you import via ACP => Plugins & Products => Download/Upload Plugins and *not* through the Manage Products screen.

Yes, it's quick & dirty but it serves my purposes.
Attached is the vB4 version....
Attached is an updated copy of the postbit plugin. This will now open up the StopForumSpam.com site in a new window and you should now also see a confirmation screen instead of just "Data Submitted".

Plugin was done with vB 4.0.8, follow the instructions above for installing.
Attached Images
File Type: jpg PLUGIN-Submit-to-StopForumSpam_vB4.jpg (53.0 KB, 0 views)
Attached Files
File Type: xml PLUGIN-Submit-to-StopForumSpam_vB4.xml (1.8 KB, 21 views)
Reply With Quote
  #238  
Old 11-24-2010, 04:32 PM
BarelyHangingOn BarelyHangingOn is offline
 
Join Date: Feb 2003
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KW802 View Post
Attached is an updated copy of the postbit plugin. This will now open up the StopForumSpam.com site in a new window and you should now also see a confirmation screen instead of just "Data Submitted".

Plugin was done with vB 4.0.8, follow the instructions above for installing.

That works fine but only if the spammer has made a post. It doesn't show up in user profiles of sig spammers etc.

Anyway to make it show up in their profile?
Reply With Quote
  #239  
Old 12-04-2010, 05:19 AM
tomarsyd tomarsyd is offline
 
Join Date: Dec 2009
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pedigree,
I had your mod on my 3.8 installation running great for the last year.
Over the past 2 weeks I've been doing my upgrade to the 4.0.8 release of vB and have been trying to get this mod to work. It is rejecting EVERYBODY, but seems to be doing so because of a communication error.

Result on field username - Unregistered [REMOTEERR] Unverfied and rejected by policy

I initially looked back at my 3.8 install and saw the same error so I thought nothing of it. But tonight I did a test registration myself and got the rejection message.
Result on field username - FlaFishin [REMOTEERR] Unverfied and rejected by policy

I then went to your site and checked my test username seen above and of course it is not listed there. So I guess it's simply rejecting based on that REMOTEERR, not the actual username.

I went back to my 3.8 logs and looked deeper and see that the StopForumSpam was working fine up until 11/17/2010 and then every inquiry since then fails with the above error message.

Please respond with some help!!!
Reply With Quote
  #240  
Old 12-04-2010, 07:09 AM
GlowHost.com's Avatar
GlowHost.com GlowHost.com is offline
 
Join Date: Nov 2005
Location: USA
Posts: 371
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tomarsyd View Post
Over the past 2 weeks I've been doing my upgrade to the 4.0.8 release of vB and have been trying to get this mod to work. It is rejecting EVERYBODY, but seems to be doing so because of a communication error.

Result on field username - Unregistered [REMOTEERR] Unverfied and rejected by policy
The error seems to say it all. Your "Policy" (AKA your Settings) are set to deny registrations when there is a communication error. So, the first problem is that you have a communication error with SFS. To alleviate the problem change your settings to allow registration if communication with stopforumspam.com cannot be completed. In the meantime, ask yourself why it is that you cannot longer communicate with SFS.

You might check out the GlowHost Spam-O-Matic mod which is supported. The StopForumSpam website shows that this mod is no longer maintained;
Reply With Quote
  #241  
Old 12-06-2010, 04:12 PM
tomarsyd tomarsyd is offline
 
Join Date: Dec 2009
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update:
First, thanks GlowHost for your input and response to my issue.

I'm posting my findings for anyone else who may come across this issue looking for answers.

I was up past 3am friday working on that issue. I was definitely aware of the policy which you mention, but to me, I felt like why do a spammer check if I was going to allow registration anyway. The issue for me was to figure out why it was erroring. It apparently wasn't that the SFS service was down.

Finally on Saturday I tested the CURL module and found that CURL had been disabled by my host ( but retained the ability to turn it back on) So I found where to do that and re-enabled it. Bingo! It works now.

So here's my issue with the plug-in (not really an issue, just something of note), if the code uses CURL, it should do a check to see if the CURL code is available and issue a LOG entry saying so. I'm a .NET developer and this is standard practice to log any kind of issue with remote calls.

At any rate, all seems to be well and it is properly turning away spammers once again.

I had installed Spam-O-Matic as well, but disabled because of the same REMOTEERR issue. So I may actually go and try it again because it has those extra features for submitting spammers via the admincp module.
Reply With Quote
Reply

Thread Tools

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 11:58 PM.


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.10539 seconds
  • Memory Usage 2,364KB
  • 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
  • (9)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
  • (3)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