API wont redrict?

XxTypoxX

New Member
Jan 20, 2012
2
0
Hello, I have a problem with the API. I have it set up to redrict to my client but when someone votes, it brings them back to the voting button. If they click the button again, it just brings them back to that same page. How to fix?
 

presto5

Member
Jul 26, 2011
66
1
I have the same problem it happened over night. The only thing I have added is cloud flare.

Thanks for correcting \/
 

RastaLulz

fight teh power
Staff member
May 3, 2010
3,926
3,923
I have the same problem it happened over night. The only thing I have added is cloud share.
You mean Flare, as in Cloud Flare? If that's the case, did you actually read CloudFlare's documentation before doing so? It will change your IP addresses, therefore you will be sending CloudFlare's IP addresses to TheHabbo's server, and not the actual person's IP address.

To see the real person's IP address you must add the following line of code on top of the config file:
PHP:
if(isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; }
 

Users who are viewing this thread

Top