$url = $_SERVER['REQUEST_URI'];
if(strstr($url, "alt.php"))
{
	echo "hata";
}
gibi birşeyler yapabilirsiniz.