AvatarImage returning 403 forbidden

Results 1 to 7 of 7
  1. #1
    Member Shadows is offline
    MemberRank
    May 2013 Join Date
    74Posts

    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?


  2. #2
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,372Posts

    Re: AvatarImage returning 403 forbidden

    Can you tell me the link you're using, the full url please

  3. #3
    Member Shadows is offline
    MemberRank
    May 2013 Join Date
    74Posts

    Re: AvatarImage returning 403 forbidden

    Quote Originally Posted by Jonteh View Post
    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.

  4. #4
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,372Posts

    Re: AvatarImage returning 403 forbidden

    https://www.habbo.com.br/habbo-imagi...=3&gesture=sml

    I removed img_format=gif&

    Try that.

  5. #5
    Member Shadows is offline
    MemberRank
    May 2013 Join Date
    74Posts

    Re: AvatarImage returning 403 forbidden

    Quote Originally Posted by Jonteh View Post
    https://www.habbo.com.br/habbo-imagi...=3&gesture=sml

    I removed img_format=gif&

    Try that.
    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.

  6. #6
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,372Posts

    Re: AvatarImage returning 403 forbidden

    Quote Originally Posted by Shadows View Post
    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;
        
    ?>

  7. #7
    Member Shadows is offline
    MemberRank
    May 2013 Join Date
    74Posts

    Re: AvatarImage returning 403 forbidden

    Quote Originally Posted by Jonteh View Post
    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.



Advertisement