markkanning Posted February 2, 2007 Share Posted February 2, 2007 Hey Folks, Is there a way, at the top of a script, to check from what page you got to that script from? In other words, can you make sure that someone can only get to a page FROM a particular page? Link to comment https://forums.phpfreaks.com/topic/36821-detecting-from-whence-you-came/ Share on other sites More sharing options...
Balmung-San Posted February 2, 2007 Share Posted February 2, 2007 You could use $_SERVER['HTTP_REFERER'], though the PHP manual does state that it cannot be trusted 100% of the time. It mentions something about browsers where you can change it, and some browsers which don't send it. Though I think all of the major browsers do send it. Link to comment https://forums.phpfreaks.com/topic/36821-detecting-from-whence-you-came/#findComment-175658 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.