I have a page that I don't want users to access directly for security reasons.
For example I have a page profile.php; I want when a user presses the button the profile page will open and if he wants to access page directly from url it will restrict him.
<?php define('SECURE_PAGE', true);include 'includes/page.php';?>
I have tried this but couldn't solve my issue