<?$a=$_SERVER['HTTP_HOST'];$b=$_SERVER['HTTP_REFERER'];if(!eregi($a, $b)){header('Location: index.php');}?>