MyBB Community Forums

Full Version: reducing spam
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Quote:2. Use trigger words in posts and thread subjects to immediately close the account.

Edit: I saw your thread on "Plugins request" so I've moved my answer there. I think it will be easier for other users to find it.

https://community.mybb.com/thread-205257.html
(2016-10-19, 02:36 PM)labrocca Wrote: [ -> ]My spam protection is super simple.
.................  I also block Russia, China, and Brazil but that's not just for spam prevention. Also both of my protections are custom plugins, and sorry, I no longer share or release to the public.
Hi,
I also want to block Pakistan, but I cannot imagine how to do it, where can I find this option. could you explain it to me, please.
thank you
This should help you.
(2016-10-20, 03:43 PM)Neeeeeeeeeel.- Wrote: [ -> ]Even with the source code, spammers wouldn't be able to bypass it easily. AFAIK he has other reasons for not releasing any more plugins to the public.

Btw, I made you a plugin for blocking links for users with less than X posts. Not tested, just let me know any issues and I will get rid of them Smile
<?php
/****************************************************************************
	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.
	
	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.
	
	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/

if (!defined('IN_MYBB')){
	die('This file cannot be accessed directly.');
}

$minimunPosts = 50;

$plugins->add_hook('newthread_do_newthread_start', 'blockLinks');
$plugins->add_hook('newreply_do_newreply_start', 'blockLinks');
$plugins->add_hook('editpost_do_editpost_start', 'blockLinks');

function block_links_info(){
	return Array(
		"name" => "Block external links",
		"description" => "It allows you to block external links for users without an specific amount of posts",
		"website" => "https://amxmodx-es.com",
		"author" => "Neeeeeeeeeel.-",
		"authorsite" => "https://amxmodx-es.com",
		"version" => "v1.0",
		"guid" => "",
		"compatibility" => "18*"
	);
}

function blockLinks(){
	global $mybb,$minimunPosts,$new_thread,$post;
	if ($mybb->user['postcount'] < $minimunPosts){
		$hasURL = false;
		$message = '';
		
		if (!empty($new_thread)){
			$message = $new_thread['message'];
		} else {
			$message = $post['message'];
		}
		
		if (preg_match("/(?:http|https)?(?:\:\/\/)?(?:www.)?(([A-Za-z0-9-]+\.)*[A-Za-z0-9-]+\.[A-Za-z]+)(?:\/.*)?/im", $message)){
			$hasURL = true;
		}
		
		if ($hasURL){
			error_no_permission();
		}
	}
}

The country-level protection is made by a firewall at labrocca's site. But if your only issue are spammers, it could be made by a MyBB plugin. You may want to open a thread at "Plugin requests" forum, is not that hard. It will be easily bypasseable by proxies & VPN's, but you will still be filtering a good amount of spammers.

Doesn't work apparently.
The problem with spam bots, they can be programmed to "read" what is on the page, find key words, and answer. So if you have a question "What is four plus seventeen" it will correctly answer it.


Get smart and creative, use symbols (I have had ZERO bots on my forum since I got it about 2-3 months ago)

My Security Questions:
How many are there? ☔☔☔☔ ☔☔☔☔

How many coffee mugs are there? ☕☕☕☕☕ ☕☕☕☕☕ ☕☕☕☕☕ ☕☕☕☕☕

What ⓑⓡⓞⓦⓢⓔⓡ do you use?
you cna leet speak it
Quote:What is four plus seventeen
Quote:wh47 15 f0ur plu5 53v3n733n
I would't go that far to replace letters with numbers, most people won't understand what you're trying to say
(2016-11-01, 07:43 PM)mindtheliverpool Wrote: [ -> ]
(2016-10-19, 02:36 PM)labrocca Wrote: [ -> ]My spam protection is super simple.
.................  I also block Russia, China, and Brazil but that's not just for spam prevention. Also both of my protections are custom plugins, and sorry, I no longer share or release to the public.
Hi,
I also want to block Pakistan, but I cannot imagine how to do it, where can I find this option. could you explain it to me, please.
thank you

Pretty sure you can block countries through Cloudflare. I've done it in the past with various ones.
(2016-11-27, 07:48 PM)Zaqre Wrote: [ -> ]The problem with spam bots, they can be programmed to "read" what is on the page, find key words, and answer. So if you have a question "What is four plus seventeen" it will correctly answer it.


Get smart and creative, use symbols (I have had ZERO bots on my forum since I got it about 2-3 months ago)

My Security Questions:
How many are there? ☔☔☔☔ ☔☔☔☔

How many coffee mugs are there? ☕☕☕☕☕ ☕☕☕☕☕ ☕☕☕☕☕ ☕☕☕☕☕

What ⓑⓡⓞⓦⓢⓔⓡ do you use?
i like this idea though, never thought of that.

ive actually had very little spam latest since i blocked keywords such as links in thread subjects, etc.


Quote:https://github.com/metulburr/wordblock

if anyone grabs it to get the one before my commits, as i hard coded my site url in the warning, as well as changed to only block thread subject.
(2016-11-27, 07:48 PM)Zaqre Wrote: [ -> ]Get smart and creative, use symbols (I have had ZERO bots on my forum since I got it about 2-3 months ago)

My Security Questions:
How many are there? ☔☔☔☔ ☔☔☔☔

How many coffee mugs are there? ☕☕☕☕☕ ☕☕☕☕☕ ☕☕☕☕☕ ☕☕☕☕☕

What ⓑⓡⓞⓦⓢⓔⓡ do you use?

Whatever questions you post, make sure it works with screen readers. As for the last question, it's open ended so you have to include every possible "correct" response.
Pages: 1 2 3