[7.5.7] Stop Forum Spam - IP Registration Check
#319112
09/30/2013 4:16 AM
09/30/2013 4:16 AM
|
Joined: Jan 2000
Posts: 5,773 Portland, OR, USA
Gizmo
OP

UBB.Dev / UBB.Wiki Owner Time Lord
|
OP

UBB.Dev / UBB.Wiki Owner Time Lord
Joined: Jan 2000
Posts: 5,773
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: if ($xml->appears == "yes") {
PostToHost("username=". $Loginname ."&ip_addr=". $_SERVER["REMOTE_ADDR"] ."&email=". $Email ."&api_key=". $config['SFS_KEY']);
Replace With: $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: $xml_string = @file_get_contents("http://www.stopforumspam.com/api?email=". $Email); Replace With: $xml_string = @file_get_contents("http://www.stopforumspam.com/api?email=". $Email . "&ip=" . find_environmental('REMOTE_ADDR'));
|
|
|
|
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.
|
|
Forums64
Topics37,474
Posts293,545
Members13,807
|
Most Online1,498 Mar 17th, 2017
|
|
Currently Online 898
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 15
|
|
|