I am trying to restrict access to a web page unless access is referred from a specific web site using:
header( 'Location: http://10.50.1.139:8080'
This snippet works (afaik) but it simply redisplays the page they came from which makes it appear as though the link isn't working. When I try to add an "echo" line above the header line to say " you can only get here from xrefer.php" then the error message displays saying the headers have already been sent. I get that. But how can I indicate to a user that he's been redirected?
Thanks in advance