After 16 hours of constant trying and learning as i go along.. im no better off and become over frustrated! So im now in desperate need of help, Any advice or help would be greatly appreciated.
I am trying to have page1.php redirect to page2.php after 5 seconds, However page2.php needs to be a restricted page that can only be viewed if your being sent from --> mydomain.com/page1.php and can not be accessible if you type the address manually into the address bar.
I have tried countless methods including ones that use shared keys, htaccess and php HTTP_REFERRER however i can not seem to get any of them working.
header( "refresh:5;url=page2.php" );
I have tried these with the full url and with/without http:// for example mydomain.com/page2.php but i still have no joy.
Page2.php needs to be able to only accept traffic from page1.php, i have no objection as to how we go about achieving this .. Using shared keys or any other aspect just as long as the user can not enter the address manually and visit the page. I am also fully aware the Referrer can be spoofed however because i am still new to coding i do not have the expertise to get to advanced.
I am still learning the basics so i am sorry if i have come across stupidly, i have spent hours trying to find an alternative but have had no luck so i have had to seek your expert advice :)