API not working?

Joh

Member
Jan 10, 2011
154
20
For some reason my API isn't working, it just keeps refreshing the API page, if i was banned is there any reason?
 

Joh

Member
Jan 10, 2011
154
20
No proxy, it was working last time i had to vote, sure im not banned?

and ye ip is dynamic
 

RastaLulz

fight teh power
Staff member
May 3, 2010
3,934
3,933
Votes are based on IP; if your IP changes, it'll assume you haven't voted. Although if you're using the latest API, it should set a cookie, therefore you should only be asked once to vote per day.

If you were banned, you wouldn't be asked to vote.
 

Joh

Member
Jan 10, 2011
154
20
Votes are based on IP; if your IP changes, it'll assume you haven't voted. Although if you're using the latest API, it should set a cookie, therefore you should only be asked once to vote per day.

If you were banned, you wouldn't be asked to vote.

weird, it was working for me 24 hours ago, all of a sudden it just stopped
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
Yeah :p, that might be it?

So you are under a proxy..

Use this on TheHabbos API config.php file:

PHP:
if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; }

Put it right at the top, under the PHP tags. (Ps, stop advertising on my Hotel :D!)
 

Joh

Member
Jan 10, 2011
154
20
So you are under a proxy..

Use this on TheHabbos API config.php file:

PHP:
if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; }

Put it right at the top, under the PHP tags. (Ps, stop advertising on my Hotel :D!)

Just put that in and it directs me straight to the client

Code:
if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; }
 
if(!defined('IN_THEHABBOS_API')) {
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,199
3,934
Just put that in and it directs me straight to the client

Code:
if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; }
 
if(!defined('IN_THEHABBOS_API')) {

is right, test voting on your VPS, or something.
 

Users who are viewing this thread

Top