Tired of spammer keep signup on your site ?.
I will show you how to stop the spammer using stopforumspam API.
Read more about documentation here StopForumSpam
open signup.php and search
// RETRIEVE AND CHECK SECURITY CODE IF NECESSARY if($setting['setting_signup_code'] != 0) { // NOW IN HEADER //session_start(); $code = $_SESSION['code']; if($code == "") { $code = randomcode(); } $signup_secure = $_POST['signup_secure']; if($signup_secure != $code) { $is_error = 708; }
paste the code below
$string_spam = "http://www.stopforumspam.com/api?email={$signup_email}&f=json"; $result_spam = json_decode(file_get_contents($string_spam)); if($result_spam->email->appears == 1){ // Make redirect or something else die('Go Die Spammer! You\'re not welcome!. If you\'re not spammers, please use another valid e-mail address!.'); }
also put in login.php and search
if( !empty($setting['setting_login_code']) || (!empty($setting['setting_login_code_failedcount']) && $_SESSION['failed_login_count']>=$setting['setting_login_code_failedcount']) ) { $code = $_SESSION['code']; if($code == "") { $code = randomcode(); } $login_secure = $_POST['login_secure']; if($login_secure != $code) $user->is_error = 708; }
paste the code below
$string_spam = "http://www.stopforumspam.com/api?email={$email}&f=json"; $result_spam = json_decode(file_get_contents($string_spam)); if($result_spam->email->appears == 1){ die('Go Die Spammer! You\'re not welcome!. If you\'re not spammers, please use another valid e-mail address!.'); }
Maybe useful for SE4 also . Try out now & give me some reputations

Edited by xblitz, 10 December 2012 - 04:23 AM.