metadige adlı üyeden alıntı: mesajı görüntüle
menu.php nin başına şunu eklesende olur:

<?php
if(eregi('menu.php',$_SERVER['PHP_SELF'])) {header('Location: index.php');exit(); }
?>
eregi yerine preg_match kullanılabilir; php 6.0.0 da eregi kalkıcakmış
Alıntı
This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.
<?php
if(preg_match('#menu.php#si',$_SERVER['PHP_SELF'])) {header('Location: index.php');exit(); }
?>