In Stackoverflow, the user called mellamokb use Towers of Hanoi problem on his profile. Looks like he used some JavaScript or something. Looks like he built this game for himself. But I want to ask, is there any game we can use on our profile page?

enter image description here

  • 2
    O.O How did he do that? We can have JavaScript in our profiles? Sounds like a security risk.
    – gen_Eric
    Commented Jan 15, 2013 at 20:14
  • 9
    @RocketHazmat It's just a trick with referrer strings and a script-generated image.
    – Tim Stone
    Commented Jan 15, 2013 at 20:15
  • 3
    @TimStone: HAX! That's awesomely clever :-)
    – gen_Eric
    Commented Jan 15, 2013 at 20:21
  • 4
    Related: Create a User-Profile Mini-Game (But Shog9 is right!)
    – Arjan
    Commented Jan 15, 2013 at 20:25

1 Answer 1


That user played something clever with image tags:

<h2>Towers of Hanoi</h2>

<p><img src=""http://hanoi.kurtbachtold.com/hanoi.php/text"" />
<a href=""http://stackoverflow.com/users/116614/mellamokb?1""><img src=""http://hanoi.kurtbachtold.com/hanoi.php/1"" /></a>
<a href=""http://stackoverflow.com/users/116614/mellamokb?2""><img src=""http://hanoi.kurtbachtold.com/hanoi.php/2"" /></a>
<a href=""http://stackoverflow.com/users/116614/mellamokb?3""><img src=""http://hanoi.kurtbachtold.com/hanoi.php/3"" /></a>
<a href=""http://stackoverflow.com/users/116614/mellamokb?reset"">Reset</a></p>

The hanoi.php script probably looks at the referrer header when your browser loads the images and generates images based on the query string on his own profile URL, plus a PHP session cookie.

The owner of that profile challenged others to create their own, resulting in a few more pretty cool cookie+image+referrer-parsing images.

None of these are in any way official.

  • 2
    That is an awesome hack! Now to make my own! TO THE PHP CAVE!
    – gen_Eric
    Commented Jan 15, 2013 at 20:22
  • 7
    Another user did have a snazzy tic-tak-toe game in his profile, but he replaced it with boring text. @Soner, it's a site for programmers - show off your skills by writing your own!
    – Shog9
    Commented Jan 15, 2013 at 20:22
  • 4
    Yes, 6 no less, @Soner ;-)
    – Arjan
    Commented Jan 15, 2013 at 20:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .