$archivo = "./ruta/fichero.php" if (file_exists($archivo)) { echo "Lo sentimos."; exit; } else { // cargas el script normal y corriente }