Stop Forum Spam

Started by ITA003, December 10, 2008, 11:55:38 AM

Previous topic - Next topic

Gerkin

Thanks, that explains the issues.  I'll wait for the DNS to propagate again and hopefully all will be well :)

Stigmartyr

Do you folks know if there is anything like this for RC2?

It's such a fantastic mod, the anti-spam features in RC2 are quite laughable.  They aren't going to stop any real spammers.

kicky

Hi, I installed this mod in my SMF 1.1.11

But everyone can not register....
The error is

Fatal error: Cannot redeclare spammercheck() (previously declared in /home/innovaco/public_html/Sources/Register.php:603) in /home/innovaco/public_html/Sources/Register.php on line 681

When someone click register.

can someone help me?
thanks in advance

ITA003

In the Register.php the SpammerCheck Function is duplicate (do you install before uninstall the previous version???), remove the function start at line 681 to and brackets... (make a backup before edit the file).

Than look for the SpammerCheck text in the Register.php file, if you wil find it for more than two time, maybe there is some error... post the file.

kicky

Quote from: ITA003 on February 08, 2010, 06:05:29 PM
In the Register.php the SpammerCheck Function is duplicate (do you install before uninstall the previous version???), remove the function start at line 681 to and brackets... (make a backup before edit the file).

Than look for the SpammerCheck text in the Register.php file, if you wil find it for more than two time, maybe there is some error... post the file.

Here is the file of register.php after uninstall SFS, note : I only copas the one related with spammer check

   //Check Forum Spam if enabled
   if (!empty($modSettings['sfs_enabled'])) {
      if (SpammerCheck()) {
         loadLanguage('SFS');
         fatal_error(sprintf($txt['sfs_spam_detected'],$_POST['user'],$_POST['email'],$user_info['ip']), true);
      }
   }

Also this one in register.php
function SpammerCheck()
{
   global $txt, $boarddir, $context, $settings, $modSettings, $user_info, $sourcedir;
   
   $isSpammer=0;
   $emailSpam=$_POST['email'];
   $ipSpam=$user_info['ip'];
   $usernameSpam=$_POST['user'];
   $response='';
   $url='http://www.stopforumspam.com/api?email='; . $emailSpam;
   
   require_once($sourcedir . '/Subs-Package.php');
   
   $response = fetch_web_data($url);
   
   //Is Email Spammer??
   if (strpos($response, "<appears>yes</appears>") > 0) $isSpammer=1;
   
   if (!$isSpammer && !empty($modSettings['sfs_ipcheck'])) { //If Not Spammer check the IP
      //Check IP Spammer
      $url='http://www.stopforumspam.com/api?ip='; . $ipSpam;
      
      $response = fetch_web_data($url);

      //Is IP Spammer??
      if (strpos($response, "<appears>yes</appears>") > 0) $isSpammer=1;
   }
   
   if (!$isSpammer && !empty($modSettings['sfs_usernamecheck'])) { //If Not Spammer check the username
      //Check Username Spammer
      $url='http://www.stopforumspam.com/api?username='; . $usernameSpam;
      
      $response = fetch_web_data($url);

      //Is IP Spammer??
      if (strpos($response, "<appears>yes</appears>") > 0) $isSpammer=1;
   }
   
   return $isSpammer;
}

Thank you for your kind help

Stigmartyr

Quote from: Stigmartyr on February 07, 2010, 10:42:12 PM
Do you folks know if there is anything like this for RC2?

It's such a fantastic mod, the anti-spam features in RC2 are quite laughable.  They aren't going to stop any real spammers.

Ehhhmmmm...



..my question?

ITA003

Quote from: kicky on February 08, 2010, 08:21:57 PM
Here is the file of register.php after uninstall SFS, note : I only copas the one related with spammer check


But if you uninstall SFS you must not found that lines in the Register.php file... remove it and than re-install the mod.

ITA003

Quote from: Stigmartyr on February 08, 2010, 09:22:48 PM
Quote from: Stigmartyr on February 07, 2010, 10:42:12 PM
Do you folks know if there is anything like this for RC2?

It's such a fantastic mod, the anti-spam features in RC2 are quite laughable.  They aren't going to stop any real spammers.

Ehhhmmmm...



..my question?


I have not answered your question, because I knew you were on vacation...  :D


The release for SMF 2.0 is in progress... but at this moment I'm busy to another (private) mod for SMF...

Stigmartyr

Quote from: ITA003 on February 09, 2010, 06:08:11 PM
Quote from: Stigmartyr on February 08, 2010, 09:22:48 PM
Quote from: Stigmartyr on February 07, 2010, 10:42:12 PM
Do you folks know if there is anything like this for RC2?

It's such a fantastic mod, the anti-spam features in RC2 are quite laughable.  They aren't going to stop any real spammers.

Ehhhmmmm...



..my question?


I have not answered your question, because I knew you were on vacation...  :D


The release for SMF 2.0 is in progress... but at this moment I'm busy to another (private) mod for SMF...

hehe - thank you for the update.  That is very good news.  ATM I'm manually cross referrencing the sfp site and banning/deleting users.

ITA003

My forum (1.1.11) has the captcha and the mod installed... send me the link to your forum or the register.template page

societyofrobots

I've run into a strange problem. This mod has always worked great, then yesterday it does something odd.

At the top of the page it says:
"There is one member awaiting approval."
Perfectly normal . . .

But when I click on it, it brings up the member page and says:
"No members currently await approval."
It doesn't list any members . . . wtf?

Did a spammer find a bug/hack?

JayT

Quote from: JayT on January 14, 2010, 05:03:49 PM
Great mod... Is there a way to add a "Submit Spam Data" to automatically? So when you ban a user that gets through, you can either check a box or hit a button to add their data to the SFS database?

Thanks!

Nevermind... I got it... I realized that this wasn't really a request for this mod, but related... For those of you who'd like to be able to ban the user and also submit the user's data to SFS from the same screen, modify your "ManageBans.template.php". add a hyperlink (with echo lines) to submit the data to SFS via your own API key.

Gerkin

This week I setup SFS on a pretty large forum that we just converted to SMF.  I've been getting a bunch of false positives of legitimate people trying to sign up.  I manually search the SFS database and none of their info is in there, but they are still getting told they cannot sign up as they are spam.

They show up in logs like this (I've removed personal details), assuming it's coming from this mod ...

xxx.xxx.xxx.xxx    Guest    The user XXXX with Email [email protected] (IP xxx.xxx.xxx.xxx) is a Spam, please contact forum administrator.  ?action=register2

Could it be that false positives are in the SFS database?  Or could it be that this mod defaults to positive and if it can't contact SFS that people are getting rejected?  This has happened at least 10 times in the last 5 days (those are only the ones that have been reported to me, who knows how many others just don't bother to report and go somewhere else).  Every time I checked there were no results for their username, email or IP in the SFS database.

societyofrobots

Found a somewhat important bug/flaw . . .

If the spammer email/username has a - symbol in it, it will not display when searched for on the site database. That said, it's still properly blocked.

For example: [email protected]

sepulchre

looks like stopforumspam.com is down, bit of a pity as I cant check who is a real spammer against their database now :(

Rob Lightbody

Now that I have got this working, its an absolute god send.  It is fending off lots of spammers.  Thank you!

However I had a bit of a struggle getting it to install.  I think there may be a problem with the mod page, and the code that comes up for parsing - someone else in this topic posted parsing text for my version (1.1.11) that seemed different - and I think it was that that finally fixed whatever problem I was having - which was causing nothing to show up in the admin screen.


meadwench

Any update on whether this will be available for RC2? I'm getting 20-30 bot registrations a day on another forum I manage, and can't seem to slow them down.
Vicky Rowe
Health and Weight Loss Coach
http://www.hcgloss.com
SMF 2.0 RC3, Joomla 1.5.8

ITA003


meadwench

Vicky Rowe
Health and Weight Loss Coach
http://www.hcgloss.com
SMF 2.0 RC3, Joomla 1.5.8

Apllicmz




Advertisement: