PDA

View Full Version : KillSpam -Automated Spam Killer


DieselMinded
03-01-2009, 01:33 AM
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:

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 ?