News:

Wondering if this will always be free?  See why free is better.

Main Menu

Stop Forum Spam

Started by SleePy, March 21, 2022, 12:11:09 AM

Previous topic - Next topic

SleePy

Link to the mod

Stop Forum Spam

Description

This customization adds support for detecting spam by using the Stop Forum Spam API.

SMF Version support

This supports SMF 2.0.x and 2.1.x

Sections checked

On registration this can check the following fields:

  • Username
  • Email Address
  • IP Address

On Posts this can check the following fields

  • Username
  • Email Address
  • IP Address

On Search this chan check:

  • IP Address

On Report(ing) posts this can check:

  • Email
  • IP Address

This can also check custom forms by specifying the id of the field in a comma separated list into the extra fields options.

Setup

Out of the box this has a default configuration of checking only usernames. Additionally the confidence level for username can be adjusted.

This can also block TOR as reported to the Stop Forum Spam database.

The Verification Options section controls on which controls we are enforcing these checks again.

Compatibility

This has some setting compatibility with the original Stop Forum Spam as I was using it when I developed this. The biggest difference is this supports SMF 2.1 and does not use any edits. This version includes logging, bulk checks and the ability to check non standard SMF verification fields.

Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

Max22

#1
I've just noticed four packages with the same name but with different extensions and size, I think it could be confusing.

You cannot view this attachment.

SleePy

Sorry thats a bug with the customize site.  I've fixed it manually.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

Shades.

Quote from: SleePy on March 21, 2022, 12:11:09 AMThis customization adds support for detecting spam by using the Stop Forum Spam API.
I don't see an option to add my API#. Do we not need that anymore?

I really liked the ability to check each member individually in the 2.0 version! Any chance to bring that back, I mean add it to the 2.1 version?

Thanks,
Shades 8)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

SleePy

You only need a API key to add submissions, not query them.

I didn't need the ability to check each member, but it could be done.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

Matthias

I like that mod!

But I also miss the ability to check and report members in the member list.
I had that built in the old mod, but the function to check multiple members I failed for 2,1,x.
Maybe you can implement that.
Quality first

Matthias

I have installed the mod for SMF 2.0.19. Unfortunately it does not work. It installs without error messages, but the settings are missing.
The log_sfs table was created.
In the package-info.xml is that:
<require-file name="StopForumSpam.php" destination="$sourcedir" />However, the file StopForumSpam.php does not exist in the package.
Quality first

SleePy

I forgot to reset 2.0 after I renamed the files.  I'm working on the ability to submit and view from the profile.  I ran out of time to finish up testing, but should have something soon.  Can been seen here: https://github.com/jdarwood007/smfmod_sfs
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

Matthias

I have installed the version 1.1 for SMF 2.0.19
The installation works, but when it redirects to the settings page after installation I get a white screen and this error:
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /var/www/vhosts/sntest01.schreibs.net/httpdocs/Sources/SFS.php on line 46
Quality first

SleePy

What version of PHP do you have?
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

Matthias

Unfortunately an old
5.5.38
Quality first

Kindred

I thought that 2.0.19 had a minimum version of 5.6 anyway.....
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Doug Heffernan

#12
Quote from: Kindred on March 29, 2022, 08:34:23 AMI thought that 2.0.19 had a minimum version of 5.6 anyway.....

According to the requirements page, 2.0.19 can run on a php version starting from 5.3.

https://download.simplemachines.org/requirements.php

Quote from: Matthias on March 29, 2022, 06:53:02 AMUnfortunately an old
5.5.38

I have not seen the code for this mod, but from the error message you are getting it looks like it does not support the php version that you are using.

A bit off topic, but may I ask why you are running such an older version of php? It contains many security issues, not to mention the bugs.

Matthias

On the server I can no longer update the PHP version. I need a new server.
Until now everything has always worked, so I said to myself, I'll do sometime...
Quality first

Oldiesmann

Return type declarations were introduced in PHP 7, so the error is indeed due to an old version of PHP.
Michael Eshom
Christian Metal Fans

SleePy

Yea, I have return types in here and a few other PHP 7 features.  I would recommend upgrading to at least 7.1.  SMF 2.0 will work all the way up to 7.4.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

Shades.

Under Profile>Track Stop Forum Spam "IP Address" is showing twice...

You cannot view this attachment.
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

SleePy

Technically no.  There is ip_address and ip_address2 (proxy check ip).  I can in a future update maybe have it show the IP in parenthesis.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

Matthias

SMF 2.0.19; Mod Version 1.1

Here's what I noticed:
There is an input field, but no description of what the field is for.

Quality first

Shades.

Quote from: Matthias on May 04, 2022, 07:15:00 AMThere is an input field, but no description of what the field is for.
Good catch! I have the same in 2.1.1! ???
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

SleePy

All fixed up.  It was a rename of things due to a complex SMF bug that won't be fixed in 2.1..
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

landyvlad

OK so I am running httpBL (but thats becoming problematic so I have been looking for alternatives especially for when I upgrade to 2.1)

Is anyone running this succesfully with demonstrated results on 2.0.19?
If so I may install this on the existing forum. 
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it

njcyx

Is this mod (v1.2) also compatible with SMF 2.1.2?

SleePy

I am not aware of any compatibility issues.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

Metaltype

Hi, Really appreciating this Mod, on the whole it works great.

However, I recently had a person want to use the username Jason and it wouldn't let him.

It led me to realise I didn't understand this setting:



I've now disabled the check username option to allow him to use the board.

Would changing that number do anything?

Would checking the box further down in the settings that says ignore wildcard username checks be a better option than disabling username checks?

Sorry to ramble on a bit, just wondering what the best option is.

Kindred

?? ??

You can set reserved names in the core software. Separate from this mod
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SleePy

https://www.stopforumspam.com/search?q=Jason

You can see that "Jason" has been reported many times.  The Confidence level is returned by the API for how much it believes "Jason" is likely a spammer.  I realize that the Stop Forum web site doesn't show the confidence level, only the API.

http://api.stopforumspam.org/api?username=Jason&json

You can see by the API test, it is reporting it as 72.73 right now.  You can set it to 75 right now and it would let Jason through.  If you notice more spammers are getting through using more common spammer names, you can lower the threshold.

If you check the ignore wildcard usernames, it sends to the API to do exact match for "Jason", but it doesn't seem to change anything here.

If you are wondering more about data that is received by the mod, you can enable the debugging of SFS requests, to see all the data as returned by the API.  This is not really meant to run in production, but can help answer questions about the data being received.
You cannot view this attachment.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

Metaltype

Thanks for the prompt reply. Changed setting to 75, everything OK for now.
Thanks

Steve

Is not the default setting for the box labeled 'Check Username?' set to unchecked?

And if so, wouldn't it let anyone's names through provided the other criteria aren't met?

And lastly, do you recommend leaving the box unchecked?
Please do not PM me for support.

SleePy

Its not checked by default.  As seen, it can produce false positives.  But if you are getting hit hard, it may be worth trying to enable it and see if it helps curve spammers.  You may want to disable the wildcard matching as I indicated, it will match any name on partials.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

Steve

Please do not PM me for support.

GL700Wing

For SMF 2.0 this mod cannot be uninstalled because of an error in the package file 'sfs_hooks_remove.php' - there is a comma missing at the end of the second last hook name.

The only way I could uninstall the mod was to delete the previous package file from the './Packages' directory/folder and upload a new package file that contains a fixed version of 'sfs_hooks_remove.php'.

Find:
    'integrate_manage_logs' => 'SFSA::hook_manage_logs'
Replace with
    'integrate_manage_logs' => 'SFSA::hook_manage_logs',
Life doesn't have to be perfect to be wonderful ...

SleePy

All fixed up in v1.3  Fixed a issue with the tracking page as well not showing details like it was supposed to and a undefined index issue on logs.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

Мel

Right after I install this mod I got this error:
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/me/forum/Sources/SFS.php on line 46How do I fix this, or how do I uninstall this mod manually? Can't find install guide anywhere.

2.0.19, PHP 7.3.27.
"The ability to speak does not make you intelligent."
- Qui-Gon Jinn

Doug Heffernan

Quote from: Мel on June 24, 2022, 01:28:26 PMRight after I install this mod I got this error:
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/me/forum/Sources/SFS.php on line 46How do I fix this, or how do I uninstall this mod manually? Can't find install guide anywhere.

2.0.19, PHP 7.3.27.

A mod broke my forum

Steve

Also, can you bump up your PHP any higher than 7.3.x?
Please do not PM me for support.

Мel

Quote from: Doug Heffernan on June 24, 2022, 01:47:40 PM
Quote from: Мel on June 24, 2022, 01:28:26 PMRight after I install this mod I got this error:
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /home/me/forum/Sources/SFS.php on line 46How do I fix this, or how do I uninstall this mod manually? Can't find install guide anywhere.

2.0.19, PHP 7.3.27.


A mod broke my forum
Somehow it's not fixing the issue, tried it several times.
Quote from: Steve on June 24, 2022, 01:57:54 PMAlso, can you bump up your PHP any higher than 7.3.x?
I can ask my hosting provider. Should it work?
"The ability to speak does not make you intelligent."
- Qui-Gon Jinn

Steve

I don't know that it has anything to do with it but you're on a deprecated version.
Please do not PM me for support.

Arantor

Likely the mod requires 7.4 for its new features. Can't confirm as on mobile but the error is suggestive to me.

Мel

"The ability to speak does not make you intelligent."
- Qui-Gon Jinn

Doug Heffernan

Quote from: Steve on June 24, 2022, 01:57:54 PMAlso, can you bump up your PHP any higher than 7.3.x?

Good catch there @Steve. I missed that part about the php version.

Quote from: Мel on June 24, 2022, 02:58:47 PMI can ask my hosting provider. Should it work?

Do you have cPanel? Most cPanels allow for changing of php versions. And yes, that will work.

SleePy

Well it would be erroring on the return type, but I thought return types where in 7.1
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

Arantor

Return types are in 7.0, void and nullable came in 7.1, expansions to contravariant returns in 7.4.

But what I see now I can see the source... suggests a lack of the above user having PHP 7.0 at all.

Мel

Quote from: Doug Heffernan on June 24, 2022, 05:04:44 PMDo you have cPanel? Most cPanels allow for changing of php versions. And yes, that will work.
I do, but I'm not sure how to do so.
"The ability to speak does not make you intelligent."
- Qui-Gon Jinn

Steve

Piece of cake. Log in to your cPanel and then scroll to the 'Software' section. Click on the 'Multi-PHP Manager' and it's pretty self-explanatory from there.
Please do not PM me for support.

Мel

Quote from: Steve on June 27, 2022, 03:11:44 PMPiece of cake. Log in to your cPanel and then scroll to the 'Software' section. Click on the 'Multi-PHP Manager' and it's pretty self-explanatory from there.
Thanks, seems easy. It's marked as "inherited" and it looks that I can up it to any version till 7.4. If I do that, is there any chance that the forum will crash or something else would happen?) Or is it smooth sailing?
"The ability to speak does not make you intelligent."
- Qui-Gon Jinn

Steve

No chance that I know of so it should be smooth sailing. There's always that dreadful minuscule chance something could go wrong so back everything up first.
Please do not PM me for support.

Мel

Yeah, everything seems fine, yet there are some mistakes like
Call to a member function versionCheck() on nullI'll try to reinstall this mod a bit later.
Thanks.
"The ability to speak does not make you intelligent."
- Qui-Gon Jinn

Мel

Can't use admin panel with this error :(
"The ability to speak does not make you intelligent."
- Qui-Gon Jinn

Мel

"The ability to speak does not make you intelligent."
- Qui-Gon Jinn

Diego Andrés

I could not reproduce the issue with 2.0.19 and PHP 7.4

SMF Tricks - Free & Premium Responsive Themes for SMF.

SleePy

You can delete all related intergrate_* from the settings table and it will remove all hooks that power the customization.  If other customizations are using the hook, you need to delete it carefully, its a comma delimited list.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

Мel

Not quite got it. Maybe there is an installation manual for this mod, so I can backtrace all the changes and remove it?
"The ability to speak does not make you intelligent."
- Qui-Gon Jinn

Мel

I restored the backup, everything seems fine, thanks.
"The ability to speak does not make you intelligent."
- Qui-Gon Jinn

Steve

Perfect example of why everyone should do backups, backups, backups before installing any mod or making any other changes to your forum.  :)
Please do not PM me for support.

XVenomX

Hi, any help how to fix?
You cannot view this attachment.

Doug Heffernan

Quote from: XVenomX on September 12, 2022, 03:57:27 PMHi, any help how to fix?
You cannot view this attachment.

It looks like the language files have not been added. Uninstall it, and then re-install it again.

SleePy

Agreed.  Looks like the language files did not deploy.  Your languages directory (/Themes/default/languages) needs to be writable.  You can check the StopForumSpam.english.php language file there.
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:GitHub
Join us on IRC Libera.chat/#smf

XVenomX

Thanks  :)
For some reason the files were not extracted and the folder was writable so I did it manually, thanks a lot.

Advertisement: