header("Location: notallowed.php"); //notallowed is the page you want the use to see exit(); ?>