$url = "belirli tarfiğin urlsi" if($_SERVER['HTTP_REFERER'] == $url){ header("location:yonlenir.php"); }