html sayfaya bunu

if (top.location != self.location) {
res = new Image() 
res.src = "http://www.asdsdasdasd.com/ref.php?url="+encodeURIComponent(top.location);
//top.location = self.location; //anti frame
}
php bi hostada ref.php ve ref.txt iki dosya oluşturup ref.txt yi chmod777 ref.php nin içinede
<?
$url = urldecode($_GET['url']);
$d = file_get_contents('ref.txt');
file_put_contents('ref.txt', $d."\n".$url);
header('Content-type: image/gif');

exit;
?>
bunu koyup ref.php nin adresini ilk verdiğim koda yazarsanız olur