AvatarImage returning 403 forbidden
Hello RZ,
I have a little problem. First of all, sorry for english. And yes, this is a really noob question, but i trying embed avatarimage in my site, but in the console is returning 403 and the image no appears in site. Maybe because habbo anti-ddos or some rule in htacces? I see some sites that still uses avatarimage of habbo.com.br like Habboon. So, someone can tell me how i can embed this?
Re: AvatarImage returning 403 forbidden
Can you tell me the link you're using, the full url please
Re: AvatarImage returning 403 forbidden
Quote:
Originally Posted by
Jonteh
Can you tell me the link you're using, the full url please
Off Habbo? Yes, a example:
https://www.habbo.com.br/habbo-imagi...=3&gesture=sml
And return this: Screenshot by Lightshot
EDIT: If i open the link and after refresh the page i can see the image.
Re: AvatarImage returning 403 forbidden
Re: AvatarImage returning 403 forbidden
Quote:
Originally Posted by
Jonteh
Thanks for answer. I try this but dont work (Screenshot by Lightshot). I think the problem is because Habbo AntiDDos or something like that. I try in localhost and works like a charm.
Re: AvatarImage returning 403 forbidden
Quote:
Originally Posted by
Shadows
Thanks for answer. I try this but dont work (
Screenshot by Lightshot). I think the problem is because Habbo AntiDDos or something like that. I try in localhost and works like a charm.
Link to this script instead then (script.php?lookCode=youravatarlookcode):
Code:
<?php
header ("Content-Type: image/png");
echo file_get_contents("https://www.habbo.com.br/habbo-imaging/avatarimage?figure=" . $_GET["lookCode"] . "&direction=3&head_direction=3&gesture=sml");
exit;
?>
Re: AvatarImage returning 403 forbidden
Quote:
Originally Posted by
Jonteh
Link to this script instead then (script.php?lookCode=youravatarlookcode):
Code:
<?php
header ("Content-Type: image/png");
echo file_get_contents("https://www.habbo.com.br/habbo-imaging/avatarimage?figure=" . $_GET["lookCode"] . "&direction=3&head_direction=3&gesture=sml");
exit;
?>
Yes, with file_get_contents and cURL works. I dont want use php for not flood server resources. But i think that have no choice. Thanks @Jonteh for help i will use this form.