Back to vBulletin 3.7 Add-ons

Status of PHP 8.5 support: Possible. Open Contacts for details.

spam from new users
Mod Version: 1.00, by kermit2

This modification is in the archives.
vB Version: 3.7.x Rating: (0 vote - 0 average) Installs: 4
Released: 28 Oct 2008 Last Update: Never Downloads: 0
Not Supported Code Changes Re-usable Code Translations  

Not so much a plugin, more a little code modification. It moderates any first posts which contains 'www' or 'http' and posts the post to a thread of your choice (presumably in a private forum) - the idea being that you can re-approve any false positives. Simple I know, but it has cut out the majority of my spam.

The change goes in includes/functions_newpost.php , around line 353 (depending on your VB version)

Code:
if ($vbulletin->userinfo['posts'] == 0) {
        if ((strpos($post['message'], "http") > 0) || (strpos($post['message'], "www.") > 0) || (strpos($post['message'], "www ") > 0) ) {
                $dataman->set('visible', 0);
                $post['visible'] = 0;
		$pete_post = "The following post by http://\"/forum/member.php?u=" . $vbulletin->userinfo['userid' has been auto-unapproved: 
			
" . $post['message'] . "
\n"; $vbulletin->db->query_write("INSERT INTO post (threadid, parentid, username,userid, pagetext, dateline, visible) VALUES (162262, 0, 'bot', 183720, \"" . mysql_escape_string($pete_post) . "\", " . time() . ", 1)"); $vbulletin->db->query_write("UPDATE thread SET replycount=replycount + 1 WHERE threadid='162262'"); } }
just after:

Code:
        else
        {
                $dataman->set('visible', 1);
                $post['visible'] = 1;
        }
and just before:

Code:
        if ($type != 'thread')
        {
                if ($postinfo['postid'] == 0)
                {
More info at http://linuxbox.co.uk/vbulletin_spam_hack.php

Download

No files for download.

Similar Mods

Show Thread Enhancements Email address masking / obfuscation - Protect your users from spam! Modification Graveyard
Moderate first 10 posts from new users (Anti-Spam) vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2025