MyBB Community Forums

Full Version: Automatically remove posts triggered by certain keywords in subject or message
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I want to build my own "private" spam filter to match against certain keywords I enter. Those posts should be (soft) deleted...

I found this plugin for 1.6:
http://mods.mybb.com/view/auto-unapprove-filter

Auto-Unapprove Filter
Automatically unapproves new threads or posts that contain certain words or phrases.
Author: Zash
Submitted: 18th January 2013
This plugin allows you to create a list of words or phrases that will prevent a new thread or post from being visibly published.

If a new thread or post is found to contain one of the predefined phrases, it will automatically be unapproved. From there, a moderator can either approve it or delete it and ban the user.

This is useful to target spammers who post the same messages, or to prevent members from posting certain phrases.

You can disable the filter for members above a certain post count.

--

That sounds great! But this plugin is incompatible with 1.8.3 (I tried)

Any suggestions / solutions I have missed? Surely this can be done, right?? Smile

Devvie
twitter.com/devnullius
Unless the plugin made major changes to templates, it would be safe enough to do the following (replace plugin_name with the actual plugin's name & anything not changed, leave alone):

function plugin_name_info() {
    return array(
      // Change this line, and this line only
      'compatibility' => '16*, 18*'
    );
Thanks! I'll first upgrade from 1.8.3 to 1.8.4 and then try your trick ;-)

Peace!

Devnullius

No luck Sad After the change, when I click Install & Activate, I get a blank page (nothing else). Going back to plugin overview shows it's still disabled. SIgh. Good try though! Smile Thank you for that.

I'm still open for new suggestions...

Devvie

Ok, everytime I got a blank page, an option set was created. I now have 5 identical options (which values all change at the same time when I change one of them).

Filter Settings (3 Settings)
Settings for the auto-unapprove filter settings.

I set some keywords; it's now waiting until the RSS Bot posts something covered by the keywords... Smile



Thank you all!


Devvie
No luck Sad

Entered keywords aren't remembered. Only the build-in defaults remain.

Also, by pressing "Activate plugin" 5 times, I ended up with 5 entries in the general options list for this mod. Removing filter.php and uploading it once more didn't solve that. 

Script itself looks easy enough... Surely more people have use for a custom 'spam' / moderate bot?? Smile

Open for suggestions,

Devvie

PS: today, this (which values all change at the same time when I change one of them) isn't true any longer... I can enable 1, but others do not follow. And after refresh it isn't good after all... All back to default keywords.

Original plugin page: http://mods.mybb.com/view/auto-unapprove-filter
This is EXACTLY the kind of plugin I need for the usual "TOEFL, certificates, passport" spam.

Unfortunately more and more spam is showing up as US IPs. Sometimes they are in ranges where I have legit users so it's not straightforward to IP ban a whole IP range (except for Cloudflare >_>).

It would be so easy to match these posts. My users never talk about all those keywords all together :

Buy Registered IELTS,TOEFL,Certificates,Passports,Drivers License,ID Cards,Visas, (...)


An auto-moderation for posts containing certain keywords would be very efficient.

Is there an equivalent for 1.8 ?
This should suit your needs: https://github.com/dragonexpert/wordblock
(2016-12-07, 04:48 PM)dragonexpert Wrote: [ -> ]This should suit your needs: https://github.com/dragonexpert/wordblock
Bumping this as it's not working with current mybb version without error log (only empty plugin list).
Any idea to fix / update this ?