Jump to content

Photo
* * * * * 1 votes

[Solution] Stop Spamming via API


  • Please log in to reply
2 replies to this topic

#1 xblitz

xblitz

    Level 1

  • Members
  • Level
  • 48 points
  • 20 posts


Users Awards

Posted 10 December 2012 - 04:21 AM

Hello SEForumers,

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.


#2 xblitz

xblitz

    Level 1

  • Members
  • Level
  • 48 points
  • 20 posts


Users Awards

Posted 10 December 2012 - 04:33 AM

Standalone Testing API

via URL
http://www.stopforum...l=SPAMMER-EMAIL

using PHP Json
$string_spam = "http://www.stopforumspam.com/api?email=SPAMMER-EMAIL&f=json";
$result_spam = json_decode(file_get_contents($string_spam));
var_dump($result_spam);

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


#3 DPName

DPName

    Level 1

  • Members
  • Level
  • 10 points
  • 12 posts

Posted 09 October 2013 - 01:52 AM

Can someone please describe the steps for me?

"Paste the code below" Does this mean I replace WITH this or append? Its pretty unclear. Thank you.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


All the resources listed here are just for testing purpose and they shouldn't be used at any commercial environment without a valid license.
Those are for users who wants to try them before buy. Help the developer to build it better by purchasing them from original authors.