Previous Thread
Next Thread
Print Thread
Rate Thread
[7.5.7] Stop Forum Spam - IP Registration Check #319112
09/30/2013 5:16 AM
09/30/2013 5:16 AM
Joined: Jan 2000
Posts: 5,941
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord

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

Requirements:
Valid UBB.Threads 7.5.7 install and license

About:
The final version of the Stop Forum Spam modification that I had delegated as the "perfect" set of features to be included into the stock build of the UBB had one feature stripped out by the powers that be at the UBB, the ability to check user registrations against the Stop Forum Spam database for the registration user's IP Address; the current rendition included in UBB.Threads 7.5.7 only does an email check for the user.

Please read the note below before applying this change.


In scripts\adduser.inc.php:
Find:
Code
		if ($xml->appears == "yes") {
			PostToHost("username=". $Loginname ."&ip_addr=". $_SERVER["REMOTE_ADDR"] ."&email=". $Email ."&api_key=". $config['SFS_KEY']);


Replace With:
Code
		$xml_ip_string = @file_get_contents("http://www.stopforumspam.com/api?ip=". $_SERVER["REMOTE_ADDR"]);
		$xml_ip = new SimpleXMLElement($xml_ip_string);

		if (($xml->appears == "yes") || ($xml_ip->appears == "yes")) {
			if ($xml->appears == "yes") {
				PostToHost("username=". $Loginname ."&ip_addr=". $_SERVER["REMOTE_ADDR"] ."&email=". $Email ."&api_key=". $config['SFS_KEY']);
			}


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


Note: SD has posted a far easier modification for this; In scripts/adduser.inc.php
Find:
Code
$xml_string = @file_get_contents("http://www.stopforumspam.com/api?email=". $Email);


Replace With:
Code
$xml_string = @file_get_contents("http://www.stopforumspam.com/api?email=". $Email . "&ip=" . find_environmental('REMOTE_ADDR'));


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 - IP Registration Check [Re: Gizmo] #319113
09/30/2013 9:01 AM
09/30/2013 9:01 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
Oh my god... I LOVE you!!!!!!!!!!!!

yay yay wooga yay yay

And... not to worry... it's legal here now!!!


Bill Barker
Issaquah, Wa
Re: [7.5.7] Stop Forum Spam - IP Registration Check [Re: Gizmo] #319114
10/01/2013 12:26 AM
10/01/2013 12:26 AM
Joined: Jan 2000
Posts: 5,941
Portland, OR, USA
Gizmo Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord
Gizmo  Offline OP

UBB.Dev / UBB.Wiki Owner
Time Lord

Joined: Jan 2000
Posts: 5,941
Portland, OR, USA
Rofl...

it should work just fine; I've been running it on A Gardeners Forum for months; I'm not sure why they chose to strip this part of the functionality from what I supplied (the last build posted here was what was supplied). We're also using it here at UBBDev.


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 - IP Registration Check [Re: Gizmo] #319164
12/07/2013 3:18 AM
12/07/2013 3:18 AM
Joined: Nov 2003
Posts: 491
SoCal
S
sirdude Offline
Enthusiast
sirdude  Offline
Enthusiast
S

Joined: Nov 2003
Posts: 491
SoCal
The last part of the mod that Giz posted is part of 7.5.8 stock now


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
Pilgrim
Pilgrim
NH, USA
Posts: 345
Joined: June 2000
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 960
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 26
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 20180925.dev)
PHP: 5.4.45 DB: MySQLi Page Time: 0.048s Queries: 15 (0.022s) Memory: 3.2599 MB (Peak: 3.4828 MB) Zlib enabled. Server Time: 2018-09-26 10:26:27 UTC