Previous Thread
Next Thread
Print Thread
Rate Thread
[7.5.7+] Stop Forum Spam - Login Detection #319158
12/02/2013 12:00 AM
12/02/2013 12:00 AM
Joined: Jan 2000
Posts: 5,941
Portland, OR, USA
Gizmo Online tapedshut OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Online Tapedshut OP

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,941
Portland, OR, USA
Author: Gizmo/Gremelin (James of VNC Web Services)

Requirements:
Valid UBB.Threads 7.5.7 install and license (note, this will run on previous builds, but you'll need to apply the Stop Forum Spam modification beforehand).

About:
It occoured to me one night, while working on a client site, that spammers weren't just the "drive by" variety anymore (whereby they sign up, spam, and go on); in today's world we see an increasing number of "sleeper" spammers (whereby someone registers, they wait a while, and then spam). It hit me that when they register, they're a legit "no spam" user in spam databases, but when they begin their trouble they already have bypassed registration checks through any multitude of software packages.

I then decided to revisit my original Stop Forum Spam modification and look at the template mod for the registration check and apply the settings to the UBB.Threads login screen; as, since they're already registered and seemingly "legit", the login check would validate them every time they attempt to login; thus if they're now listed as a spammer, they can't login and, well, spam.


NOTE: If you're having problems with API timeouts ("Unable to Connect to Stop Forum Spam Database" error) you can adjust the API URL in login.tpl to use:
Code
	$xml_string = @file_get_contents("http://api.stopforumspam.org/api?ip=". $_SERVER["REMOTE_ADDR"]);


Versus the default:
Code
	$xml_string = @file_get_contents("http://www.stopforumspam.com/api?ip=". $_SERVER["REMOTE_ADDR"]);




In languages/english/stop_forum_spam.php:
Find:
Code
$ubbt_lang['SFS_DETECTED_INFO_1'] = "At this time your registration can not be continued.  Your IP address has been flagged as that of a known spammer/spambot via the ";


Add Above::
Code
$ubbt_lang['SFS_DETECTEDLOGIN_INFO_1'] = "At this time your login can not be continued.  Your IP address has been flagged as that of a known spammer/spambot via the ";


In scripts/login.inc.php:
Find:
Code
"wordlets" => array("login"),


Replace With:
Code
"wordlets" => array("login","stop_forum_spam"),


In templates/default/login.tpl:
Find:
Code
{* Script Version 7.5.8 *}


Add Below:
Code
{php}
	$xml_string = @file_get_contents("http://www.stopforumspam.com/api?ip=". $_SERVER["REMOTE_ADDR"]);
	if($xml_string != false) {
		$xml = new SimpleXMLElement($xml_string);

		if ($xml->appears == 'yes') {
{/php}
{$tbopen}
<tr>
<td class="tdheader" colspan="2">
{$lang.SFS_DETECTED}
</td>
</tr>
<tr>
<td colspan="2" class="alt-2">
{$lang.SFS_DETECTEDLOGIN_INFO_1}
<a href="http://stopforumspam.com/ipcheck/{$smarty.server.REMOTE_ADDR}" target="_blank">Stop Forum Spam</a>
{$lang.SFS_DETECTED_INFO_2}

<br /><br />
Powered by the <a href="http://www.virtualnightclub.net/" target="_blank">VNC Web Services</a> <a href="http://www.stopforumspam.com/" target="_blank">Stop Forum Spam</a> addon for <a href="http://www.ubbcentral.com/" target="_blank">UBB.threads</a>.
</td>
</tr>
{$tbclose}

{php}
	} else {
{/php}


Find:
Code
</form>


Add Below:
Code
{php} } } else { {/php}
{$tbopen}
<tr>
<td class="tdheader" colspan="2">
{$lang.SFS_ERROR_TITLE}
</td>
</tr>
<tr>
<td colspan="2" class="alt-2">
{$lang.SFS_ERROR_CONNECTION}

<br /><br />
Powered by the <a href="http://www.virtualnightclub.net/" target="_blank">VNC Web Services</a> <a href="http://www.stopforumspam.com/" target="_blank">Stop Forum Spam</a> addon for <a href="http://www.ubbcentral.com/" target="_blank">UBB.threads</a>.
</td>
</tr>
{$tbclose}
{php} } {/php}


Please leave your thanks below so we can know that we've helped you!


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Sponsored Links
Re: [7.5.7+] Stop Forum Spam - Login Detection [Re: Gizmo] #319159
12/02/2013 4:57 AM
12/02/2013 4:57 AM
Joined: Dec 2001
Posts: 84
Issaquah, WA
Bill B Offline
Power User
Bill B  Offline
Power User

Joined: Dec 2001
Posts: 84
Issaquah, WA
I think that this is a great addition. I'm a little slow to pull-the-trigger however as I think my way through this.

Example: I get a note from a user that they can't log in. (and I DO receive 3 or 4 of these a week.) They've been a user for umpteen years. My normal routine is to change their password and send them their Login Name to see if they're using the right one.

Now, with this UPGRADE in place, there is a chance that a LEGIT user could accidentally be included in the NO SPAM list. And now, I'm chasing my tail trying to figure out WHY this legit user can't log in.

Soooooo... what might be a good way for ADMIN to know WHY a person is being denied a login due to this new feature?


Bill Barker
Issaquah, Wa
Re: [7.5.7+] Stop Forum Spam - Login Detection [Re: Gizmo] #319160
12/02/2013 5:02 AM
12/02/2013 5:02 AM
Joined: Jan 2000
Posts: 5,941
Portland, OR, USA
Gizmo Online tapedshut OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Online Tapedshut OP

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,941
Portland, OR, USA
Well, they'll only be "locked out" if they show in the Stop Forum Spam database; and to be IN that database, they'd have to be reported as a spammer by several sites...

And IF they're banned BECAUSE they're in the DB, there is an obvious message posted to the screen as well as instructions on how to get themselves delisted...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.5.7+] Stop Forum Spam - Login Detection [Re: Gizmo] #319161
12/02/2013 5:30 AM
12/02/2013 5:30 AM
Joined: Dec 2001
Posts: 84
Issaquah, WA
Bill B Offline
Power User
Bill B  Offline
Power User

Joined: Dec 2001
Posts: 84
Issaquah, WA
Thanks... I vaguely remember that they saw a screen but I didn't know how to confirm that. And of course, I've never seen one.

Now... all I need is to hope that they TELL me about the screen message which banned them. Ha.


Bill Barker
Issaquah, Wa
Re: [7.5.7+] Stop Forum Spam - Login Detection [Re: Gizmo] #319243
03/27/2014 2:12 PM
03/27/2014 2:12 PM
Joined: Mar 2014
Posts: 2
Florida
G
GeoffM1968 Offline
Lurker
GeoffM1968  Offline
Lurker
G

Joined: Mar 2014
Posts: 2
Florida
Couple things as I am trying to add the mod:

Looks like the coding for "In languages/english/stop_forum_spam.php:" you have a missing "[" just before /code causing issue for us to read properly.

What file do we need to find '{* Script Version 7.5.8 *}' as I found 131 occurrence and not readily apparent to me?

Sponsored Links
Re: [7.5.7+] Stop Forum Spam - Login Detection [Re: Gizmo] #319244
03/27/2014 8:51 PM
03/27/2014 8:51 PM
Joined: Jan 2000
Posts: 5,941
Portland, OR, USA
Gizmo Online tapedshut OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Online Tapedshut OP

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,941
Portland, OR, USA
It's been updated; the local copy had it in, not sure why the posted didn't lol.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.5.7+] Stop Forum Spam - Login Detection [Re: Gizmo] #319245
03/28/2014 2:34 PM
03/28/2014 2:34 PM
Joined: Mar 2014
Posts: 2
Florida
G
GeoffM1968 Offline
Lurker
GeoffM1968  Offline
Lurker
G

Joined: Mar 2014
Posts: 2
Florida
thanks

Re: [7.5.7+] Stop Forum Spam - Login Detection [Re: Gizmo] #319255
05/01/2014 10:26 PM
05/01/2014 10:26 PM
Joined: May 2014
Posts: 1
US
R
Reboot Offline
Lurker
Reboot  Offline
Lurker
R

Joined: May 2014
Posts: 1
US
Has this been incorporated into 7.5.8?

Thx

Re: [7.5.7+] Stop Forum Spam - Login Detection [Re: Gizmo] #319256
05/02/2014 5:26 AM
05/02/2014 5:26 AM
Joined: Jan 2000
Posts: 5,941
Portland, OR, USA
Gizmo Online tapedshut OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Online Tapedshut OP

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,941
Portland, OR, USA
No, this is separate from what's included in 7.5.8


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.5.7+] Stop Forum Spam - Login Detection [Re: Gizmo] #320569
07/04/2014 11:20 AM
07/04/2014 11:20 AM
Joined: Jan 2007
Posts: 70
UK
Stephen G Offline
Power User
Stephen G  Offline
Power User

Joined: Jan 2007
Posts: 70
UK
Will it work in 7.5.8 ?


[b]Stephen G
Sponsored Links
Re: [7.5.7+] Stop Forum Spam - Login Detection [Re: Gizmo] #320570
07/04/2014 8:23 PM
07/04/2014 8:23 PM
Joined: Jan 2000
Posts: 5,941
Portland, OR, USA
Gizmo Online tapedshut OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Online Tapedshut OP

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,941
Portland, OR, USA
Yes, works with 7.5.7 and onward.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell
Re: [7.5.7+] Stop Forum Spam - Login Detection [Re: Gizmo] #320571
07/05/2014 6:24 PM
07/05/2014 6:24 PM
Joined: Jan 2007
Posts: 70
UK
Stephen G Offline
Power User
Stephen G  Offline
Power User

Joined: Jan 2007
Posts: 70
UK
Thanks G

smile


[b]Stephen G
Re: [7.5.7+] Stop Forum Spam - Login Detection [Re: Gizmo] #321003
08/01/2015 3:17 AM
08/01/2015 3:17 AM
Joined: Jan 2000
Posts: 240
Lutz,FL,USA
R
Ruben Rocha Offline
Beta Tester
Ruben Rocha  Offline
Beta Tester
R

Joined: Jan 2000
Posts: 240
Lutz,FL,USA
Maybe I missed something, but is there anyway to validate what registrations or login/posts have been Blocked by SFS?

Even without that option it is still a great feature.

Last edited by Ruben Rocha; 08/01/2015 3:24 AM. Reason: Added Comment
Re: [7.5.7+] Stop Forum Spam - Login Detection [Re: Gizmo] #321004
08/01/2015 5:01 AM
08/01/2015 5:01 AM
Joined: Jan 2000
Posts: 5,941
Portland, OR, USA
Gizmo Online tapedshut OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Online Tapedshut OP

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,941
Portland, OR, USA
While logged in at Stop Forum Spam you can go to the My Spammers page to get a log of what usernames where utilized and when you submitted them back to the database. There are also submission graphs on the User Stats page.

Last edited by Gizmo; 08/01/2015 5:06 AM.

UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.SitemapsJames Corthell

Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with, and recommend, the following Web Hosts:
· Stable Host
· Blue Host
· Interserver.net
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,186
Joined: July 2001
Show All Member Profiles 
Forum Statistics
Forums64
Topics37,456
Posts293,497
Members13,800
Most Online1,498
Mar 17th, 2017
Top Posters(All Time)
AllenAyres 25,587
JoshPet 11,330
Rick 8,373
LK 7,396
Lord Dexter 6,503
Gizmo 5,941
Greg Hard 5,533
Top Posters(30 Days)
isaac 8
Gizmo 3
driv 1
Today's Statistics
Currently Online 911
Topics Created 2
Posts Made 6
Users Online 4
Birthdays 24
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2018 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.6.3
(Snapshot build 20180923.dev)
PHP: 5.4.45 DB: MySQLi Page Time: 0.138s Queries: 15 (0.071s) Memory: 3.3549 MB (Peak: 3.5745 MB) Zlib enabled. Server Time: 2018-09-24 09:19:50 UTC