Security Code / Random Check

Can anyone guide me to a good tutorial on how to create one of these?

link:
http://www.betterwhois.com/bwhois.cgi?domain=kirupa.com&x=78&y=15

I don’t even really know what to search for.