PDA

View Full Version : Anti-Spam Options - Moderate Spam - Sends spam to moderation queue.


Royalridge
01-10-2010, 10:00 PM
This mini-mod was inspired by SirAdrian's "Prevent Spam Posts" (https://vborg.vbsupport.ru/showthread.php?t=131568) mod.

Introduction
This mod takes a list of spam words or phrases and counts the number of occurances of them in the post. If the total of all the spam checks is over a certian number then the post goes in to the moderation queue. The reason for this is that I don't want to block any post that includes the word "Nokia" once or twice, but I do want to ban the spam lists that try to sell phones by listing a whole load of model numbers prefixed by "Nokia".

Users that can moderate the forum the post is in are exempt from the checking, as are users that have more than a defined number of posts.

This also works for posts that are edited by the user, so they can't simply post something normal and then edit it to show the spam.

Installation
Download and install the attached product xml file. The product no longer checks for specific versions and has been tested with vB 3.8.1

Configure
In your vBulletin Options there is a new section "Moderate Spam" the options are:
Keywords - List of words to consider as spam words. Separate each word with a comma (,). Phrases can be enclosed in quotes, for example "Nike Shoes".
Maximum Posts - Users with MORE than this number of posts will not have their posts checked.
Spam Score - Each time a word or phrase is detected in a post the Spam Score is increased. Only posts with a score higher than this score will be sent to the moderation queue.

Disclaimer
This mod has only been tested on vB 3.8.4 although it should work with any of the 3.8 versions. It has not been tested with any previous version and is highly unlikely to work with vB 4.

This mod has been running on my own large (2.5m post) forum for several weeks now, the forum gets roughly 1000 new posts a day without problems. However I cannot guarantee that this will work on your forum or with any other add-ons used.

Update 0.0.4
0.0.4 No longer checks version numbers, it also now checks the initial post "earlier" in the process, this means should help with compatibility with other add-ins.

Royalridge
01-11-2010, 10:22 AM
This is my first published mod, so be gentle!

DailyGame
01-11-2010, 11:17 AM
Sounds good, any feedback from people who installed it?

Royalridge
01-11-2010, 11:28 AM
Is installed on my own big board and another couple of big boards and there's been no problems encountered. This is obviously not a complete spam solution, I use it in conjunction with the inbuilt vBulletin AntiSpam and vbStopForumSpam (https://vborg.vbsupport.ru/showthread.php?t=176481) I just needed something that would take care of the muppets that post lists of products for sale and are highly repetitive with words or phrases within their posts.

Hemanth
01-11-2010, 11:35 AM
It says:


The following dependencies were not met:

1. This product is not compatible with version 3.8.1 of vBulletin. (Compatible starting with 3.8.4 / Incompatible with 4.0.0 and greater)

It is supposed to work in vB 3.8.1, right?

EDIT

I got it installed. Changed the XML a bit:

<dependency dependencytype="vbulletin" minversion="3.8.1" maxversion="4.0.0" />

Royalridge
01-11-2010, 11:58 AM
It is supposed to work in vB 3.8.1, right?

I got it installed. Changed the XML a bit:

<dependency dependencytype="vbulletin" minversion="3.8.1" maxversion="4.0.0" />


Cheers for spotting that, I've now included an install file with -nd at the end that won't force the dependency check.

Reeve of shinra
01-11-2010, 01:29 PM
This is a great mod... glad to see it 'officially' released!

- phoenixdown

vijayninel
01-16-2010, 05:10 AM
Did not work on my 3.8.4 board. It is an great idea however. I would love to use the bug free version.

I have blacklisted both the keywords Nokia and iPhone if repeated in a post 5 times for users below 5 posts.

Now if you test it out on my board then it will say that your thread is being placed under moderation for approval but will fail to place it under moderation.

It is detecting all right but failing to put the thread under moderation.

Royalridge
01-16-2010, 11:14 AM
Did not work on my 3.8.4 board. It is an great idea however. I would love to use the bug free version.I might put a 3.8.4 board up and try it at some point.

vijayninel
01-17-2010, 04:31 AM
I might put a 3.8.4 board up and try it at some point.

I see..but I thought that you had tried it on an 3.8.4 board before releasing it here.

Royalridge
01-17-2010, 01:50 PM
I see..but I thought that you had tried it on an 3.8.4 board before releasing it here.Brain fade on my part, I had it in my mind that my main test board was running 3.8.7 when I typed the reply. Why I thought there even was a 3.8.7 is anyones guess! Old age on my part.

You're absolutely right, this mod was developed and tested on 3.8.4 so unless it's fighting with another add-on it should work fine with 3.8.4.

vijayninel
01-18-2010, 10:07 AM
Ah...I understand happens sometimes. Pity I cant figure out where the conflict is.

Thanks for the effort anyway. Hope to see this a few months later in vB4.

Royalridge
01-18-2010, 10:51 AM
Pity I cant figure out where the conflict is.I'm going to give it a try on a different forum with different add-ins and see if I can spot any problems. I've an older 3.8.1 forum that I have in mind for testing.

Royalridge
01-18-2010, 02:48 PM
Pity I cant figure out where the conflict is.I think I may have worked out a solution, I changed the hook for the initial processing and it checks the post earlier in the saving sequence. I have now also tested the new 0.0.4 version with vBulletin 3.8.1

v123shine
03-30-2013, 03:59 AM
can you make this plugin for vb 4.x.x
Please!