Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Has anyone else experienced an issue where Stop Forum Spam's test utility (admin/test_stopforumspam.php?op=test) returns "API status: Can't connect" regardless of if the API is online or not?



I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 316
Enthusiast
Enthusiast
Joined: Jun 2006
Posts: 316
Looks like they are having issues with some members. This is the message that I got from the site after not connecting using the test.

Sorry

Sorry - Due to abuse by certain people, we are currently limiting API signups to members of the forum. We are sorry that we have had to take this course of action.

Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
After some investigation, I noticed that line 39 of /forums/admin/test_stopforumspam.php was pointing to an IP address that was blocked by www.stopforumspam.com / us.stopforumspam.org and kept coming up as "You do not have permission to view this directory or page."

http://stopforumspam.com/ipcheck/91.186.18.61

OLD:
Quote
Stop Forum Spam Query
API status: Can't connect
Code
$xmlResult = @file_get_contents("http://www.stopforumspam.com/api?ip=91.186.18.61");

I replaced the IP address with one that I knew was not being blocked by StopForumSpam. After that, I had no problem connecting.

Replace the "x.x.x.x" with your website's IP address.
http://stopforumspam.com/ipcheck/x.x.x.x

NEW:
Quote
Stop Forum Spam Query
API status: Can connect
Code
$xmlResult = @file_get_contents("http://www.stopforumspam.com/api?ip=x.x.x.x");

I don't recall whether the 91.186.18.61 address was supposed to be returned as a blocked IP or not. If someone could shed some light on to what 91.186.18.61 is and why it was chosen to be the static IP address included in 7.5.7, that would be very helpful.

---

In addition www.stopforumspam.com should instead point to their mirror server at us.stopforumspam.org as per the post @ http://www.stopforumspam.com/forum/viewtopic.php?id=5304


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Weird, their test ip is 1.2.3.4 for a blacklist


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Sure enough, tested it with my server IP and it's working for the test connection.

Fix Test Utility
In: admin/test_stopforumspam.php
Find:
Code
$xmlResult = @file_get_contents("http://www.stopforumspam.com/api?ip=91.186.18.61");

Replace With:
Code
$xmlResult = @file_get_contents("http://www.stopforumspam.com/api?ip=". $_SERVER["SERVER_ADDR"]);

-or-

Code
$xmlResult = @file_get_contents("http://us.stopforumspam.org/api?ip=". $_SERVER["SERVER_ADDR"]);

-or-

Code
$xmlResult = @file_get_contents("http://us.stopforumspam.org:81/api?ip=". $_SERVER["SERVER_ADDR"]);

Changes to Library (if one wanted to use a different hostname or port)

In: user.inc.php
Find:
Code
		$sfsUrl = "http://www.stopforumspam.com/api?";

Replace With:
Code
		$sfsUrl = "http://us.stopforumspam.org/api?";

-or-
Code
		$sfsUrl = "http://us.stopforumspam.org:81/api?";

As stated in the Stop Forum Spam posting you mentioned both of these hosts work:
www.stopforumspam.com
us.stopforumspam.org

On the Ports:
HTTP: 80, 81, 7777
SSL: 443, 4443


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Thanks again Giz. That cleared things up!


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
fixed in 7.5.8


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Havenofsobriety), 522 guests, and 99 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)