Advertisement:

Author Topic: Stop Spammer  (Read 746014 times)

Offline snoopy_virtual

  • Sophist Member
  • *****
  • Posts: 1,156
  • Gender: Male
    • jcredondosnoopy on Facebook
    • Snoopy Virtual Studio
Re: Stop Spammer
« Reply #1960 on: September 29, 2017, 04:59:15 AM »
I get on the top of the forum the notice "There are x members awaiting approval." all the time, and it is mostly spammers, is there any way not to have that notice there? Or even better, to have spammers rejected by default?

You cannot reject all of them by default because this mod has too many false positives.

The solution I have in all my forums is to have a couple of good questions and answers in the registration form.

And also to have installed mod httpBL together with mod StopSpammer.
El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

Offline snadge

  • Jr. Member
  • **
  • Posts: 369
    • TheTechForum on Facebook
    • @The_Tech_Forum on Twitter
    • The Tech Forum
Re: Stop Spammer
« Reply #1961 on: October 04, 2017, 12:33:45 PM »
can anyone help?

iam getting spammers leaking through and I have both stop spammer and SFS and both report issues with connectivity>?  my API keys work as i just manually entered the offender

at a total loss with this one>?

thanks

Offline snoopy_virtual

  • Sophist Member
  • *****
  • Posts: 1,156
  • Gender: Male
    • jcredondosnoopy on Facebook
    • Snoopy Virtual Studio
Re: Stop Spammer
« Reply #1962 on: October 10, 2017, 09:54:06 PM »
When did you installed mod StopSpammer?

Did you have the same problem since the beginning or has it just started recently?

Do you have some security questions at registration?

Do you have installed mod httpBL as well?
El verdadero sabio es aquel que lo ve todo, lo estudia todo, lo analiza todo y molesta poco.
A true wise man is he who sees everything, studies everything, analyses everything and hardly ever annoys.

Offline Vincent Volmer

  • Jr. Member
  • **
  • Posts: 214
  • Gender: Male
  • SMF2.0.15
    • digiscrapdigitaalscrappen on Facebook
    • @Digiscrap_NL on Twitter
    • Digiscrap Digitaal scrappen
Re: Stop Spammer
« Reply #1963 on: November 20, 2017, 01:56:55 AM »
For SMF 1.0.15 I need to edit (/Sources/ManageMembers.php):

Code: [Select]
if ($context['sub_action'] == 'query' && !empty($_REQUEST['params']) && empty($_POST))
$_POST += safe_unserialize(base64_decode($_REQUEST['params']));

Into:
Code: [Select]
if ($context['sub_action'] == 'query' && empty($_POST))
{
if (!empty($_REQUEST['params']))
{
$_POST += safe_unserialize(base64_decode($_REQUEST['params']));
}
elseif ($context['browser']['is_ie'] && !empty($_SESSION['params']))
{
$_POST += $_SESSION['params'];
unset($_SESSION['params']);
}
}

But on this line I have this:
   
Code: [Select]
if ($context['sub_action'] == 'query' && !empty($_REQUEST['params']) && (empty($_POST) || ((isset($_POST['spammers_checks']) || isset($_POST['spammers_report'])) && !empty($_POST['delete']))))
$_POST += safe_unserialize(base64_decode($_REQUEST['params']));

I think this is an edit from Stop Spammer.

How/what do I need to change? Could you please help with this?

Thanks!
Vincent Volmer

Offline lurkalot

  • Sophist Member
  • *****
  • Posts: 1,159
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: Stop Spammer
« Reply #1964 on: November 20, 2017, 04:33:44 AM »
For SMF 1.0.15 I need to edit (/Sources/ManageMembers.php):

I think this is an edit from Stop Spammer.

How/what do I need to change? Could you please help with this?

Thanks!
Vincent Volmer

Ditto, I'm getting the same test failed on all my sites which are running Stop Spammer.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 57,390
  • Gender: Male
    • Kindred-999 on GitHub
Re: Stop Spammer
« Reply #1965 on: November 20, 2017, 09:41:33 AM »
untested, but seems logical


Code: [Select]
if ($context['sub_action'] == 'query' && empty($_POST)) || ((isset($_POST['spammers_checks']) || isset($_POST['spammers_report'])) && !empty($_POST['delete']))
{
if (!empty($_REQUEST['params']))
{
$_POST += safe_unserialize(base64_decode($_REQUEST['params']));
}
elseif ($context['browser']['is_ie'] && !empty($_SESSION['params']))
{
$_POST += $_SESSION['params'];
unset($_SESSION['params']);
}
}
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Pause

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 1,622
  • Official Cheesecake
Re: Stop Spammer
« Reply #1966 on: November 20, 2017, 03:34:23 PM »
For SMF 1.0.15 I need to edit (/Sources/ManageMembers.php):

You mean 2.0.15.

untested, but seems logical


Code: [Select]
if ($context['sub_action'] == 'query' && empty($_POST)) || ((isset($_POST['spammers_checks']) || isset($_POST['spammers_report'])) && !empty($_POST['delete']))
{
if (!empty($_REQUEST['params']))
{
$_POST += safe_unserialize(base64_decode($_REQUEST['params']));
}
elseif ($context['browser']['is_ie'] && !empty($_SESSION['params']))
{
$_POST += $_SESSION['params'];
unset($_SESSION['params']);
}
}

Almost, but there are some misplaced brackets that appear to stop that from working properly. Instead, the following appears to be what is needed:

Code: [Select]
if ($context['sub_action'] == 'query' && empty($_POST) || ((isset($_POST['spammers_checks']) || isset($_POST['spammers_report'])) && !empty($_POST['delete'])))
{
if (!empty($_REQUEST['params']))
{
$_POST += safe_unserialize(base64_decode($_REQUEST['params']));
}
elseif ($context['browser']['is_ie'] && !empty($_SESSION['params']))
{
$_POST += $_SESSION['params'];
unset($_SESSION['params']);
}
}

Offline Vincent Volmer

  • Jr. Member
  • **
  • Posts: 214
  • Gender: Male
  • SMF2.0.15
    • digiscrapdigitaalscrappen on Facebook
    • @Digiscrap_NL on Twitter
    • Digiscrap Digitaal scrappen
Re: Stop Spammer
« Reply #1967 on: November 20, 2017, 04:15:05 PM »
You mean 2.0.15.

Stupid me. Sorry about that... Yes you're right!

Thanks for your help. I'll try tomorrow!

Offline BryanD

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 22,129
  • Gender: Male
Re: Stop Spammer
« Reply #1968 on: November 20, 2017, 05:45:52 PM »
perfect just came on to see if someone had asked this :D
Former Project Manager and Customizer of SMF
Former Marketing and Vice-President of Simple Machines

Offline HDB

  • Charter Member
  • Jr. Member
  • *
  • Posts: 169
    • HDBForum on Facebook
    • @HDBitchin on Twitter
    • HDBitchin, a Harley Davidson Technical Discussion Forum
Re: Stop Spammer
« Reply #1969 on: November 20, 2017, 06:38:10 PM »
I have the same issue as mentioned above with the install of the 2.0.15 patch using Stop Spammer on my forum.

I tested the Stop Spammer uninstall but didn't actually "do" the uninstall of Stop Spammer.  It looks like it would cleanly perform the uninstall. I was thinking that 2.0.15 would possibly install if I removed Stop Spammer. But I love what this mod does so much that I would hate to not be able to reinstall it after getting 2.0.15 to install.

I will wait and see what is said.

Offline BeautifulBoy

  • Semi-Newbie
  • *
  • Posts: 12
Re: Stop Spammer
« Reply #1970 on: November 21, 2017, 12:01:18 AM »

Almost, but there are some misplaced brackets that appear to stop that from working properly. Instead, the following appears to be what is needed:

Code: [Select]
if ($context['sub_action'] == 'query' && empty($_POST) || ((isset($_POST['spammers_checks']) || isset($_POST['spammers_report'])) && !empty($_POST['delete'])))
{
if (!empty($_REQUEST['params']))
{
$_POST += safe_unserialize(base64_decode($_REQUEST['params']));
}
elseif ($context['browser']['is_ie'] && !empty($_SESSION['params']))
{
$_POST += $_SESSION['params'];
unset($_SESSION['params']);
}
}

Thanks "Pause"! This edit works flawlessly... :-)

For others using this manual edit: Don't forget to edit (or check) the  required two other 2.0.15-edits in the same ManageMembers.php-file as well...

Offline Russell G.

  • Newbie
  • *
  • Posts: 9
Re: Stop Spammer
« Reply #1971 on: November 21, 2017, 11:03:14 AM »

Almost, but there are some misplaced brackets that appear to stop that from working properly. Instead, the following appears to be what is needed:

Code: [Select]
if ($context['sub_action'] == 'query' && empty($_POST) || ((isset($_POST['spammers_checks']) || isset($_POST['spammers_report'])) && !empty($_POST['delete'])))
{
if (!empty($_REQUEST['params']))
{
$_POST += safe_unserialize(base64_decode($_REQUEST['params']));
}
elseif ($context['browser']['is_ie'] && !empty($_SESSION['params']))
{
$_POST += $_SESSION['params'];
unset($_SESSION['params']);
}
}

Thanks for this, but I think there needs to be one more set of parenthesis in the first line. The code above is basically "if(a && b || c)" but it should be "if(a && (b || c))" since PHP does && operations first. Otherwise both a and b could be false but the code above would still execute if c is true. Here's a slightly modified version:

Code: [Select]
if ($context['sub_action'] == 'query' && (empty($_POST) || ((isset($_POST['spammers_checks']) || isset($_POST['spammers_report'])) && !empty($_POST['delete']))))
{
if (!empty($_REQUEST['params']))
{
$_POST += safe_unserialize(base64_decode($_REQUEST['params']));
}
elseif ($context['browser']['is_ie'] && !empty($_SESSION['params']))
{
$_POST += $_SESSION['params'];
unset($_SESSION['params']);
}
}

Thanks,
Russell

Offline spiros

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 1,670
  • Gender: Male
  • A different point of view
    • spiros.doikas on Facebook
    • doikas on LinkedIn
    • @greektranslator on Twitter
    • Greek Translation
Re: Stop Spammer
« Reply #1972 on: November 21, 2017, 11:09:20 AM »
Can someone confirm which is the right version, I am a bit confused :)

Offline Si6776

  • Jr. Member
  • **
  • Posts: 184
Re: Stop Spammer
« Reply #1973 on: November 21, 2017, 03:49:51 PM »
Is it just as easy to uninstall the Stop Spammer mod, then reinstall it after applying the patch?  Or would that not work?

Offline Si6776

  • Jr. Member
  • **
  • Posts: 184
Re: Stop Spammer
« Reply #1974 on: November 21, 2017, 05:46:35 PM »
I've just uninstalled the Stop Spammer mod, and the 2.0.15 patch has now successfully installed, but I've run into another problem.  In my Admin panel, Members > Registration > Settings is now just a blank page.  Everything else seems to still be there.  I wanted to change the setting to Admin Approval while the Stop Spammer mod was uninstalled, but now I can't do that, so in a bit of a pickle.  I have backups of all files, but I don't know which one to restore, if indeed that would fix the problem.  Can anyone help, please?

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,423
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: Stop Spammer
« Reply #1975 on: November 22, 2017, 07:43:03 AM »
Did you reinstall this mod?
Online Manual

Please do not PM me for support.

Offline Si6776

  • Jr. Member
  • **
  • Posts: 184
Re: Stop Spammer
« Reply #1976 on: November 22, 2017, 11:10:06 AM »
No, I didn't.

Someone far more competent than myself has rescued the situation.  Apparently, for some reason, the Stop Spammer mod didn't uninstall cleanly, and left some debris in ManageRegistration.php, which was causing the issue.  That debris has now been removed and I have my Registration Settings page back.  :)

Offline lurkalot

  • Sophist Member
  • *****
  • Posts: 1,159
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: Stop Spammer
« Reply #1977 on: November 22, 2017, 12:20:06 PM »
Can someone confirm which is the right version, I am a bit confused :)

I'd also like to know what of the suggested fixes we are supposed to use.  Thanks.

Offline lesmond

  • Semi-Newbie
  • *
  • Posts: 97
  • Gender: Male
Re: Stop Spammer
« Reply #1978 on: November 22, 2017, 01:05:12 PM »
this is the edit you need to find and replace for SMF 2.0.15 ./Sources/ManageMembers.php

Code: (find) [Select]
if ($context['sub_action'] == 'query' && empty($_POST))
Code: (replace) [Select]
if ($context['sub_action'] == 'query' && (empty($_POST) || ((isset($_POST['spammers_checks']) || isset($_POST['spammers_report'])) && !empty($_POST['delete']))))
Tested on fresh SMF 2.0.15 install, no errors so far.

Offline kitz

  • Jr. Member
  • **
  • Posts: 120
    • kitz.co.uk
Re: Stop Spammer
« Reply #1979 on: November 22, 2017, 01:14:14 PM »
There appears to be confusion in this thread on how best to proceed.   

Am I correct in assuming that
- Manual update to ManageMembers.php is required...  and if so how will this affect any future SMF Updates.

It's still not clear if you are meant to uninstall Stop Spammer to proceed with the SMF patch released this week.  :(

----
Atm my forum is stuck waiting to be able to update to SMF 2.0.15 and although I have been watching this thread, it is confusing on how we are supposed to proceed next.

Would it be possible to release an updated version of StopSpammer which will fix everything and let us proceed with the SMF update?