<?php if (!eregi("index.php", $PHP_SELF)) { echo "error"; exit; } ?> si este script no se ejecuta desde el index.php no furula...