I want to make my php page only accessible from another page redirect and prevent my user from accessing it directly.
I mean, let\'s say I have a page called
The other folks are right there are issues with $_SERVER["HTTP_REFERER"] so I guess the best way will be to have a variable set into a $_SESSION or $_POST and you will need to check if that variable exists, if not it means it is a direct access.