Are you showing the page as a sample, and that is what you are wanting to do on your own site?
The way they are probably doing this is with $_SERVER["HTTP_REFERER"] and a little regex.
if(eregi("gameboy-advance-roms.com",$_SERVER["HTTP_REFERER"]))
{
echo "NO LINKING";
exit;
}
Is this what you were asking?