vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   KillSpam -Automated Spam Killer (https://vborg.vbsupport.ru/showthread.php?t=206959)

DieselMinded 03-01-2009 01:33 AM

KillSpam -Automated Spam Killer
 
I have 1 custom profile field that shows at registration ... My Diesel:

Everytime one of them Robot spammers show up they always put a "1" in this field , We look at new members and if they have a "1" here we ban them immediately ,

So i want everyone who has a "1" in this profile filed to be banned and every new member who signs up like that to be banned as well

vbplusme 03-01-2009 02:17 AM

If you are sure that the "1" is always accurate, you should terminate the registration rather than banning them. Banning makes them a pita in your system that you have to deal with for no good reason. I dump them and make sure they can't come back by banning the IP address they used to try to get over ...

DieselMinded 03-01-2009 03:09 AM

Ok then how do i terminate registration when 1 is used in a specific field ?

vbplusme 03-01-2009 03:44 AM

I guess the simplest way is to add a conditional to the top of register.php like:

PHP Code:

if (($_REQUEST['do'] == 'addmember') && ($_REQUEST['MyDiesel'] == '1'))
{
// send a notice and scuttle the registration

mail("spambuster@youdomain.com"," ***** Spammer - BadBoy = 1 - Data Logging & Rejection ***** "" From IP address : " $IP " on the file:  " $_SERVER["SCRIPT_NAME"]);
                    exit(
"<div align=center><br><h1> Go AWAY!<br><br> <span style=color:red>SPAMMER</span><br><br>You are<span style=color:red> NOT WELCOME</span>  on this site. <br><br>Your IP Address <span style=color:red> {$_SERVER['REMOTE_ADDR']}</span><br>Has been forwarded to site security. <br> It has been Banned from accessing this site.<br><br>If, by chance, you are not a bad guy, please contact support.<br> Say Goodbye!</div>");
    
        } 

You would need to customize this to fit but this code does work.

DieselMinded 03-01-2009 03:21 PM

can you release this as a mod ?


All times are GMT. The time now is 10:21 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01075 seconds
  • Memory Usage 1,721KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete