Spam Deterrent Idea

This forum is now closed as part of retiring phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
jmueller0823
Registered User
Posts: 83
Joined: Wed Dec 29, 2004 3:49 pm

Spam Deterrent Idea

Post by jmueller0823 »

We pretty much have spam bots under control.

I have a feeling most of our spam posts are human.

What about this:

All first time posters are prevented from entering posts
that contain any reference to a web site.

As an example, posting of the following
would be prohibited:
--www, http, .com, .net, .org, etc., etc.
--use of any of the bbcode tags.

I haven't seen a mod like this... Does this make sense?

Perhaps, posting of links could be dis-allowed
until xx number of posts are published.

And since spammers get wise to these mods almost immediately
(they're probably reading this post), perhaps the above idea
could be implemented with (dynamic) admin-specified variables...

And since these are human spam, I think it's important
to deter future posts...

So, if an attempt is made to post links, an error message (or something)
should occur to indicate the post failed.

Instead of: just silently not processing the post.

The original post is here:
http://www.phpbb.com/phpBB/viewtopic.php?t=447150
User avatar
ChrisRLG
Former Team Member
Posts: 3420
Joined: Wed Nov 24, 2004 3:18 pm
Location: Essex, UK
Contact:

Post by ChrisRLG »

Probably better would be to use a mod queue for all members - unless they are in a special group only adding to the special group after they have made one post.

If an auto group could be setup - they would take away a mods work for that issue - the only issue would be running the mod queue for first time posters.
phpBB: The All Important Rules - Bertie Bear 3.0 - No support via PM system - use the forums please.
phpBB v2: Retirement (1/1/2009) : phpBB v3: Read Me Topic - Custom BBCodes - Support Template
Matthew 7:7"Ask and it will be given to you; seek and you will find; knock and a door will be opened to you."
My Links: MS MVP (Consumer Security) - Malware Removal:University - Own Forum: Custom BBCode testing
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Post by alexi02 »

This mod is quite easy. It's all functional except there isn't any ACP for editing the values yet.
This mod will be good for my forums as well :). Screenshot

Code: Select all

##############################################################
## MOD Title: Deny Posting URL & BBcode until x posts
## MOD Author: alexi02 < N/A > (Alejandro Iannuzzi) http://www.uzzisoft.com
## MOD Description: If the user is below the post restriction and they post any URLs or use BBcode then their post is denied
## MOD Version: 0.1.0
##
## Installation Level: Easy
## Installation Time: 1 Minute
## Files To Edit: includes/functions_post.php
## Included Files: N/A
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
##      ACP for editing the URLs to restrict and the post restriction hasn't been built yet.
##
##############################################################
## MOD History:
##
##  2006-09-23 - Version 0.1.0
##      - Initial Release (for phpBB 2.0.21)
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#

includes/functions_post.php

#
#-----[ FIND ]------------------------------------------
#

global $userdata, $user_ip;

#
#-----[ AFTER, ADD ]------------------------------------------
#

        //
        // Start Deny Posting URL & BBcode until x posts
        //

        // Lang Variables
        $lang['Deny_error_url'] = 'URL Links are not allowed until you have made';
        $lang['Deny_error_bbcode'] = 'BBcode is not allowed until you have made';
        $lang['Deny_error_posts'] = 'posts.';

        // Simulating the DB values
        $row = array();
        $row['deny_url'] = "http|www|.com|.net|.org";
        $row['post_restrict'] = 5;

        // Is the user over the post restriction
        if ($userdata[user_posts] < $row['post_restrict']) {

           // Search for URLs in Post
           $deny_url_text = explode("|",$row['deny_url']);

           for ($x = 0; $x < count($deny_url_text); $x++) {
              if (substr_count($post_message,$deny_url_text[$x])) {
                 message_die(GENERAL_MESSAGE, $lang['Deny_error_url'] . ' ' . $row['post_restrict'] . ' ' . $lang['Deny_error_posts']);
              }
           }

           // Search for BBCode in Post
           if (substr_count($post_message,$bbcode_uid)) {
              message_die(GENERAL_MESSAGE, $lang['Deny_error_bbcode'] . ' ' . $row['post_restrict'] . ' ' . $lang['Deny_error_posts']);
           }
        }

        //
        // End Deny Posting URL & BBcode until x posts
        //

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
jmueller0823
Registered User
Posts: 83
Joined: Wed Dec 29, 2004 3:49 pm

Post by jmueller0823 »

Cool. That didn't take long :)

So, do you guys see value in such a mod?
d6rth7ader
Registered User
Posts: 4
Joined: Tue Jul 11, 2006 4:35 pm
Contact:

Post by d6rth7ader »

I tried to use this mod but i cant post any message even without links in it.
jmueller0823
Registered User
Posts: 83
Joined: Wed Dec 29, 2004 3:49 pm

Post by jmueller0823 »

The mod runs perfectly.
Try it again.
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Post by alexi02 »

You could try the validated Deny Posting Text and BBcode Until x Posts.
Post Reply

Return to “[2.0.x] MOD Requests”