|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 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?
|
|
|
|
Joined: Jun 2006
Posts: 319
Enthusiast
|
Enthusiast
Joined: Jun 2006
Posts: 319 |
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
|
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.61OLD: Stop Forum Spam Query API status: Can't connect $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.xNEW: Stop Forum Spam Query API status: Can connect $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
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
Weird, their test ip is 1.2.3.4 for a blacklist
|
|
|
|
Joined: Jun 2006
Posts: 16,301 Likes: 116
|
Joined: Jun 2006
Posts: 16,301 Likes: 116 |
Sure enough, tested it with my server IP and it's working for the test connection. Fix Test UtilityIn: admin/test_stopforumspam.php Find: $xmlResult = @file_get_contents("http://www.stopforumspam.com/api?ip=91.186.18.61"); Replace With: $xmlResult = @file_get_contents("http://www.stopforumspam.com/api?ip=". $_SERVER["SERVER_ADDR"]); -or- $xmlResult = @file_get_contents("http://us.stopforumspam.org/api?ip=". $_SERVER["SERVER_ADDR"]); -or- $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: $sfsUrl = "http://www.stopforumspam.com/api?"; Replace With: $sfsUrl = "http://us.stopforumspam.org/api?"; -or- $sfsUrl = "http://us.stopforumspam.org:81/api?"; As stated in the Stop Forum Spam posting you mentioned both of these hosts work: www.stopforumspam.comus.stopforumspam.org On the Ports: HTTP: 80, 81, 7777 SSL: 443, 4443
|
|
|
|
Joined: Apr 2004
Posts: 1,945 Likes: 145
|
Joined: Apr 2004
Posts: 1,945 Likes: 145 |
Thanks again Giz. That cleared things up!
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
|
|
|
1 members (Ruben),
1,277
guests, and
207
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|