This question already has an answer here:
I have an index.php page and I'm using
<?php include("default.php"); ?>
to get contents from default.php. Now i want that if someone directly opens default.php it becomes unaccessable or redirect it back to index.php page. How can i do it ?
</div>