Restricted direct access to main.php