PDA

View Full Version : Anti-Spam Options - Spam Decimator


Fraxter
09-27-2011, 10:00 PM
Description
Handle spam with two fast clicks.

Features
- Ban user
- Delete all forum threads by user (soft or permanent)
- Delete all forum posts by user (soft or permanent)
- Delete all blog comments by user (soft or permanent)
- Delete all blogs by user (soft or permanent)
- Delete all cms comments by user (soft or permanent)
- Move soft deleted threads to specific forum (option)
- Send auto mail to spammer
- Send auto mail to webmaster
- Set maximum posts for display spam button

Install
1.) Upload all files from the "upload" folder to your forum root
2.) Import the product
3.) Done :)

Update
1.) Upload all files from the "upload" folder to your forum root (override existing files)
2.) Import the product (override the existing)
3.) Done :)

Changelog


2.0.1
- Blog entries deletion

[B]2.0 Beta 2
[UPDATE] - Improved Decimator view (See: Attachment #3 (https://vborg.vbsupport.ru/attachment.php?attachmentid=133404&stc=1&d=1317579819))
[FEATURE] - Added checkbox for blog entry deletion
- Textarea (send mail to spammer) only visible if setting is on now

[B]2.0 Beta
[UPDATE] - Updated to vBulletin 4.1.5
[UPDATE] - Made full XHTML valid
[UPDATE] - Updated delete_blog_entries() function (for soft and permanent delete)
[UPDATE] - Replaced all hardcoded text with phrases
[UPDATE] - Various changes
[FEATURE] - ON/OFF Setting for send mail to spammer
- Fixed wrong forum/thread rebuilding (reported here: #125 (https://vborg.vbsupport.ru/showpost.php?p=1947771&postcount=125))

[B]Note
This is only a beta. Update will follow. Please report bugs and issues in this thread.

Credits
Special thanks to RaidenDAWG2 (https://vborg.vbsupport.ru/member.php?u=79768), who's written the original addon. He gave me the permission to update & release it here.

whitedd
09-29-2011, 12:37 AM
Spam Decimator Version 2.0
$error

Fraxter
09-29-2011, 12:59 AM
More information would be useful.

Hornstar
09-29-2011, 03:02 AM
What about it deleting visitor messages and social group messages as well?

Fraxter
09-29-2011, 09:14 AM
If i released the final 2.0, we can talk about new features. :)

Sforums
09-29-2011, 11:21 AM
vb 4.1.6. error:

Not Found
The requested URL /decimator.php?userid=303&threadid=5556&postid=43749 was not found on this server.

Fraxter
09-29-2011, 01:39 PM
Looks like you haven't uploaded the files from the "upload" folder into your forum root.

Sforums
09-29-2011, 04:23 PM
Reinstalled and works fine. Thanks.

prandah
09-29-2011, 05:54 PM
how if i have different skins ?
because it's work on defaul vb style for me ?

Fraxter
09-29-2011, 06:25 PM
how if i have different skins ?
because it's work on defaul vb style for me ?

Sorry, i don't understand what you mean. :confused:

prandah
09-29-2011, 06:26 PM
solved :)
mark installed

synseal
09-29-2011, 08:46 PM
Is it possible to move the spam button from the left of the postbit to right of other buttons?.

Thanks, installed and rated :up:.

RaidenDAWG2
09-29-2011, 09:52 PM
Well done. Let me know if there's anything I can do to help :)

Fraxter
09-30-2011, 01:26 PM
Is it possible to move the spam button from the left of the postbit to right of other buttons?.

Only with a manuel template edit, cause there is no template hook. Let me know if you need help for that.

cric2k
09-30-2011, 04:19 PM
Ability to add IP address to banned list would be great.

Hostboard
10-01-2011, 02:10 AM
Can you add a button in the Blog section as well? Maybe in the section when you click on the user ID? This might also be an option instead of a button on the forums as well as I think the hook for it is global?

Also I do not see a check box for Blogs (when enabled) when you click on the current SPAM icon.

Fraxter
10-01-2011, 12:06 PM
Is on my current do do list. :)

Hostboard
10-01-2011, 01:43 PM
This is much more advanced then the "One Touch" If there is anything I can do to help please don't hesitate to ask.

Fraxter
10-01-2011, 08:23 PM
Thanks. :)


Maybe in the section when you click on the user ID?

You're talking about the user profile?

This might also be an option instead of a button on the forums as well as I think the hook for it is global?

You mean the forumdisplay?

Hostboard
10-01-2011, 11:58 PM
Scren capture... I think this is universal regardless of where you are in VB (Blogs, CMS, Forums)

Fraxter
10-02-2011, 10:15 AM
Scren capture... I think this is universal regardless of where you are in VB (Blogs, CMS, Forums)

Ah ok. That's a good idea. :)

Fraxter
10-02-2011, 05:29 PM
Small weekend update:

2.0 Beta 2
[UPDATE] - Improved Decimator view (See: Attachment #3 (https://vborg.vbsupport.ru/attachment.php?attachmentid=133404&stc=1&d=1317579819))
[FEATURE] - Added checkbox for blog entry deletion
[BUGFIX] - Textarea (send mail to spammer) only visible if setting is on now

More later. :)

Hostboard
10-03-2011, 06:44 PM
Thank you for the update :)

nipponmexico
10-04-2011, 07:40 AM
Ability to add IP address to banned list would be great.

maybe you can test this
add this to .htaccess

order allow,deny
deny from 192.168.1.20
allow from all


You can ban any ip , segment, or full class.

Cya

Fraxter
10-04-2011, 10:15 AM
He's talking about the vbulletin option to ban ip addresses.

synseal
10-05-2011, 09:47 AM
Only with a manuel template edit, cause there is no template hook. Let me know if you need help for that.

I have looked at the template but cant find what needs changing to move it right, thanks. :up:

Fraxter
10-05-2011, 03:12 PM
Edit postbit_legacy template.

Find:
<vb:if condition="$post['editlink']">
Add above:
<a href="#" class="spam" onclick="window.open('decimator.php?userid={vb:raw post.userid}&amp;threadid={vb:raw post.threadid}&amp;postid={vb:raw post.postid}','spam_decimator','statusbar=yes,menu bar=yes,toolbar=yes,scrollbars=yes,resizable=yes,w idth=850,height=600'); return false;">Spam</a>
<span class="seperator">&nbsp;</span>

That's all.

TheHack3r
10-05-2011, 03:17 PM
It's great mod, thanks, work perfectly on my board (vBulletin version 4.1.3)

But there is a bug:

On thread the SPAM button for staf (moderator or super moderator) is not appear, but on PM is appear... Can you give solution about this situation...

Thanks before :)

Fraxter
10-05-2011, 03:40 PM
But there is a bug:

On thread the SPAM button for staf (moderator or super moderator) is not appear, but on PM is appear... Can you give solution about this situation...

Normally the spam button should appear in forum posts, if you have correctly set your spam decimator settings (correct usergroup ids). Please check your settings first.

About the PM button in pms. Didn't notice that the template hook uses the same controls there. It's fixed in the next beta build.

jitsuboy
10-05-2011, 09:57 PM
Hi. I've uploaded to my root and upload the .xml. When I log onto my site I can see the new "spam" button under the posts, however when I click on it I get this error: Not Found

The requested URL /decimator.php was not found on this server.

Apache/2.2.3 (CentOS) Server at www.mysite.com Port 80

I've uploaded many other add-ons before so I am familiar how to do it. Any thoughts?

Fraxter
10-06-2011, 12:59 AM
Do you have your forum stuff in a seperate subfolder?

jitsuboy
10-06-2011, 01:32 AM
Not sure what you mean.

With Filezilla I upload everything to /public_html and everything usually works.

What do you think the problem is?

Hostboard
10-06-2011, 02:51 AM
The files to upload need to go where your forum software is located. For example if your forums are in /public_html/forums (http://www.YourSite/Forums) then you need to upload to that location.

The not found error you are getting just means the file is not being found where it thinks it should be.

Fraxter
10-06-2011, 12:16 PM
Or: Be sure that you have uploaded the "decimator.php" into the same folder where the "forum.php" is.

hanhdn
10-20-2011, 08:45 AM
nice mod thanks
sr my Noble question: how long spamer will be ban or forever???

hanhdn
10-21-2011, 05:18 AM
Scren capture... I think this is universal regardless of where you are in VB (Blogs, CMS, Forums)

You find {vb:raw template_hook.memberaction_dropdown_items} in memberaction_dropdown template, then add above it:
<vb:if condition="$bbuserinfo[usergroupid] == 6||$bbuserinfo[usergroupid] == 7||$bbuserinfo[usergroupid] == 5||$bbuserinfo[usergroupid] == 10">
<li class="left">
<img src="{vb:stylevar imgdir_siteicons}/moderation.png" alt="" />
<a href="#" class="spam" onclick="window.open('decimator.php?userid={vb:raw post.userid}&amp;threadid={vb:raw post.threadid}&amp;postid={vb:raw post.postid}','spam_decimator','statusbar=yes,menu bar=yes,toolbar=yes,scrollbars=yes,resizable=yes,w idth=850,height=600'); return false;"><font color="red">Spam</font></a>
<span class="seperator">&nbsp;</span>
</li>
</vb:if>

You can change the groupid number depend on your forum;)

Demo:

http://img856.imageshack.us/img856/7547/unledufz.png

Jackie1
10-21-2011, 08:05 AM
Pls help don't check IP Spammer.

Fraxter
10-21-2011, 09:40 AM
Pls help don't check IP Spammer.

More details?
IP checker only works, if some user have exactly the same ip.

Kzyl-orda
10-24-2011, 09:09 PM
I guess "2.0 Beta 2" is a more updated version of the mod rather then "2.0 Beta", however I find it a bit ambiguos.
Also I can't find the option menu, so I can't choose to wich forum move the deleted posts and neither to hard delete them.
Also I think that the "check IP adress" should only tell moderator if anybody used the same IP adress and then give him the possibility to choose accordingly, giving them some kind of link and not brutally deleting. This may lead to errors. Painful errors.
Also I should be able to disable to the moderators the ability to ban// check the same ip adress.
I can't allow moderators to use this mod untill you give us the possibility to limit the "check same IP adress", in some enviroments is a too risky option, you know how are customers...

Keep the good work!

Kzyl-orda
10-24-2011, 09:33 PM
To give you some examples:
-People in China who live in a big many-family-one-house
-Students at university
-People at work
-Internet cafés
-Hostels, dormitories.
As you see it's not so hard to find you people that match the same IP while registering and in that precise moment, and maybe just one of them is a spammer, not everybody is so luck to have a private internet connection at home.

Mulet
10-25-2011, 02:53 PM
Do I win a prize or kick in the ass?

https://vborg.vbsupport.ru/external/2011/10/14.png

Mulet
10-25-2011, 02:58 PM
See boys a girls, this is why you don't use phpbb3 and then get taken away from your forums by a new job on short notice.

https://vborg.vbsupport.ru/external/2011/10/13.png

Fraxter
10-25-2011, 09:05 PM
I guess "2.0 Beta 2" is a more updated version of the mod rather then "2.0 Beta", however I find it a bit ambiguos.
Yes, sorry for that. Think it will be more clear if i released the final 2.0.


Also I can't find the option menu, so I can't choose to wich forum move the deleted posts and neither to hard delete them.
Go to ACP --> vBulletin Settings --> Spam Decimator Settings


Also I think that the "check IP adress" should only tell moderator if anybody used the same IP adress and then give him the possibility to choose accordingly, giving them some kind of link and not brutally deleting. This may lead to errors. Painful errors.
The "check IP Address" option only tell all users which have the same ip. It takes no action against the other users, only against the choosen one.


Also I should be able to disable to the moderators the ability to ban// check the same ip adress.
I can't allow moderators to use this mod untill you give us the possibility to limit the "check same IP adress", in some enviroments is a too risky option, you know how are customers...
If you need it, i can implement an on/off option for that feature in the next release.

To give you some examples:
-People in China who live in a big many-family-one-house
-Students at university
-People at work
-Internet caf?s
-Hostels, dormitories.
As you see it's not so hard to find you people that match the same IP while registering and in that precise moment, and maybe just one of them is a spammer, not everybody is so luck to have a private internet connection at home.
Yeah, i fully understand what you mean. That's the reason why this option has only the job to show the users, not ban/delete anything.

Kzyl-orda
10-26-2011, 03:22 PM
Yeah, i fully understand what you mean. That's the reason why this option has only the job to show the users, not ban/delete anything.
I misunderstood its use then, you may wisely describe this for the new users to come.
Go to ACP --> vBulletin Settings --> Spam Decimator SettingsFound thanks, you may also want to add this too in this page mod description.
If you need it, i can implement an on/off option for that feature in the next release.No, I said this while misunderstanding how the mod works, it's fine like that.

Thanks for your help

datoneer
10-30-2011, 12:27 PM
Amazing MOD. Installed, nominated for MOTM. Thank you so much for this!

Hostboard
12-15-2011, 11:19 PM
Post #36 really really needs to be implemented replacing the current SPAM link. Spammers that don't touch the forums can't be decimated :(

phdev
12-16-2011, 10:48 AM
Can I use this to scan for spam and mass delete spam?

Fraxter
12-16-2011, 07:25 PM
Can I use this to scan for spam and mass delete spam?

Scanning: No.
Mass delete: yes

cayne
12-29-2011, 01:18 AM
I got a question, I want all threads/posts to be moved into a specific forum, I see there's an option to do that:
- Move Threads to Specified Forum? - Yes
- Which forum shall be used as the "junk" forum (i.e. what forum threads are moved to if Move To Forum? is enabled)?

I enabled this option, but when I use the mod it doesn't seem to "move" the thread to the specific forum, but deletes it completely. I've tested it with a user and a post of myself, but wasn't able to find the thread or my reply in the thread, which was created by a user I used this mod on.

(The id, is the number at the end of the url, when I click on the forum, right?!)

Besides that, great mod, def. going to use it!

amin
01-05-2012, 11:03 PM
Hi

I kind like this Mod at beging but on private message there is an icon you can spam any user! one if my moderator spammed himself!!!!
sorry I have to uninstall it until this bug get fixed

Hostboard
01-06-2012, 06:10 PM
Hi

I kind like this Mod at beging but on private message there is an icon you can spam any user! one if my moderator spammed himself!!!!
sorry I have to uninstall it until this bug get fixed

I have this installed on multiple VB4 sites. The SPAM button is the exact same as the ones listed after each thread and brings up the decimator window as shown in the modifications description:

https://vborg.vbsupport.ru/attachment.php?attachmentid=133404&d=1317579819

It does nothing else. Double checked and working as designed.

Scyther
01-12-2012, 05:03 AM
Good mod..thanks marked installed.

MediaHound
01-19-2012, 11:45 PM
I installed the mod.
I did not visit the settings to REALLY enable blog post spam deletion.
I ran the tool against a user.
His blog spam was still there.
I figured out I REALLY needed to enable the blog spam removal.
I enabled that.
I visited the thread where the post was soft deleted of the user who I ran the tool against.
I ran the tool against him again, this time I was sure I would delete all his blog spam.
All the blog posts on my site were deleted.
I am more than pissed right now, need to restore blog table from most recent incremental rsoft backup.

BE CAREFUL WITH THIS!
Developer should patch to prevent that.

MediaHound
01-19-2012, 11:59 PM
Here is a very quick and dirty fix for anyone who might do that to themself.
Restore the deleted posts to be visible:
UPDATE `forum`.`blog` SET `state` = 'visible' WHERE `blog`.`blogid` =1;
and if you are happy,
UPDATE `forum`.`blog` SET `state` = 'visible' WHERE `blog`.`blogid` >1;

and then restore the deleted comments to be visible:
UPDATE `forum`.`blog_text` SET `state` = 'visible' WHERE `blog_text`.`blogtextid` =1;
and if you are happy,
UPDATE `forum`.`blog_text` SET `state` = 'visible' WHERE `blog_text`.`blogtextid` >1;

MediaHound
01-21-2012, 01:05 PM
Well I just ran it again on a fresh spammer and again all my blog posts are deleted.

MediaHound
01-21-2012, 01:23 PM
Once you restore all the blog posts, you can go in and delete just the offending blog posts and comments, using a query like this
UPDATE `forum`.`blog_text` SET `state` = 'deleted' WHERE `blog_text`.`userid` =7870
and
UPDATE `forum`.`blog` SET `state` = 'deleted' WHERE `blog`.`userid` =7870;
just change the userid to the correct one you want to clean up.

Fraxter
01-21-2012, 03:02 PM
Bug confirmed. I will take a look. Thanks for reporting.

Hostboard
02-01-2012, 06:55 PM
Hopefully an update fixing this bug and re-palcement of the SPAM button as requested here: https://vborg.vbsupport.ru/showpost.php?p=2252164&postcount=20
can be done soon. More or less will put the finishing touches on this awsome mod :)

mrthe
02-04-2012, 07:15 PM
ip ban. would be a perfect idea

great mod ... congrats

Fraxter
02-29-2012, 03:16 PM
MediaHound found a huge bug which was related to blog post deletion.
I fixed and updated the mod. It's not the best solution, but for more i haven't time yet.

Sorry for the delay, i hope 2013 i can come back with more features and faster updates. Atm my real life really sucks.

MediaHound
03-01-2012, 09:22 PM
Thanks, will give it a whirl.

vividbreeze
03-08-2012, 02:42 PM
Be nice to get a option in ADMINCP to do this to spammers. And even remove all with same iP for numerous signups

Talk Hard
03-11-2012, 12:22 PM
Installed it and all my thread urls are blank white pages when enabled.

MediaHound
03-16-2012, 03:42 PM
Be nice to get a option in ADMINCP to do this to spammers. And even remove all with same iP for numerous signups

Yea I have spammers that only blog post and so there is not an easy way to hit a SPAM button on their "forum posts". So there is no doorway to execute this on certain people who need it. ADMINCP option is needed badly.

Hostboard
03-16-2012, 04:22 PM
Yea I have spammers that only blog post and so there is not an easy way to hit a SPAM button on their "forum posts". So there is no doorway to execute this on certain people who need it. ADMINCP option is needed badly.

My post #20 in this thread describes this request. Post #36 describes how to do this. Still hopeing the author implements this into the core. Until then use TMS to make the changes.

dadoc
04-07-2012, 09:31 PM
Great Mod no probs
Who doesn't love to hit that decimate button?

GhostHunter2010
06-04-2012, 02:08 PM
i installed this on vb 4.2.0 but is not showin up the spam thing how can i make this show the spam txt on postbit thanks

Jimandbob
06-13-2012, 10:46 AM
i installed this on vb 4.2.0 but is not showin up the spam thing how can i make this show the spam txt on postbit thanks

Same problem here, any ideas ?

Fraxter
06-30-2012, 01:34 PM
Looks like the template was changed. Sorry guys i've atm no time for future updates. Everybody feel free to update the mod.

lazytown
11-25-2012, 08:30 AM
You find {vb:raw template_hook.memberaction_dropdown_items} in memberaction_dropdown template, then add above it:


<vb:if condition="$bbuserinfo[usergroupid] == 6||$bbuserinfo[usergroupid] == 7||$bbuserinfo[usergroupid] == 5||$bbuserinfo[usergroupid] == 10">
<li class="left">
<img src="{vb:stylevar imgdir_siteicons}/moderation.png" alt="" />
<a href="#" class="spam" onclick="window.open('decimator.php?userid={vb:raw post.userid}&amp;threadid={vb:raw post.threadid}&amp;postid={vb:raw post.postid}','spam_decimator','statusbar=yes,menu bar=yes,toolbar=yes,scrollbars =yes,resizable=yes,width=850,height=600'); return false;"><font color="red">Spam</font></a>
<span class="seperator">&nbsp;</span>
</li>
</vb:if>

You can change the groupid number depend on your forum;)




This code is not working in 4.2. It seems like it should, but it pops open a spam decimator window with empty strings for userid, postid, etc.

DoubleGlasses
01-09-2013, 06:20 AM
Hello All,

So I've tried to implement the code in Post 36 based on the request in Post #20. I was able to drop the code in and get the spam button. But when I click on it - the user id isn't passed in.

The userid, threadid, and postid url parameters are blank...

I too am in a situation where someone went nuts adding spam blog posts but no forum posts.

risestar
11-23-2013, 11:01 PM
I upgraded to 4.2.2 and this seems to be working ok

sv1cec
11-25-2013, 10:40 AM
I installed it in 4.2.2 and it works OK, but I have noticed the following issues:

1. The program doesn't move the deleted posts in the forum designated in AdminCP.
2. While in AdminCP, I have set it to not send emails to spammers, that option still appears in the Decimator window, as well as the option to email webmaster. If these options are set to "No", in AdminCP, they should not appear at all, in the Decimator window.

Finally, one request: I would love to see the spammer IP address added at the beginning of the "Banned IP addresses" list. That should be controlled by an AdminCP option.

Hostboard
11-26-2013, 03:50 AM
I re-released this here (very minor update):
https://vborg.vbsupport.ru/showthread.php?t=294660

Then released a much larger/sophisticated version here:
https://vborg.vbsupport.ru/showthread.php?t=301466

If you post your ideas we will consider implementing them within SA.

Ronya
12-11-2015, 02:43 PM
This code is not working in 4.2. It seems like it should, but it pops open a spam decimator window with empty strings for userid, postid, etc.

To fix post#36 just change {vb:raw post.userid} to {vb:raw memberinfo.userid}

SuperTaz
02-07-2017, 07:03 AM
Any word on if this mod will be updated?

MarkFL
02-07-2017, 07:32 AM
Any word on if this mod will be updated?

One of the sites I help with (vB 4.2.3) uses this product, and the only issue I had with it was the position of the spam-decimator button, which I fixed with a plugin hooked at "parse_templates" with the code:

global $vbulletin;

if ($vbulletin->options['sd_enabled'] AND in_array(THIS_SCRIPT, array('showthread', 'private')))
{
$template_hook['headinclude_css'] .= '<style>.decimator_link {height: 0 !important; padding: 0 !important;} .decimator_link img {position: relative !important; height: 15px !important; margin-right: 10px !important;}</style>';
}

SuperTaz
02-08-2017, 06:01 AM
I need it to delete over 3000 blog spam posts. Can this mod do that?