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

Advertisement: