wintallo Posted April 19, 2008 Share Posted April 19, 2008 Hey, I have a simple question. Will this line of code pose as a security threat? The reason I ask this is because I know people can spoof their referrer. header("Location: ".$_SERVER['HTTP_REFERER']); Thanks! Link to comment https://forums.phpfreaks.com/topic/101826-header-redirect-security/ Share on other sites More sharing options...
discomatt Posted April 19, 2008 Share Posted April 19, 2008 That's a bad way to return to last page viewed. A better way is to set the current page as a session var at the bottom of all your scripts. That way, the variable will contain teh previous page the use was on until you redefine it to the current page Link to comment https://forums.phpfreaks.com/topic/101826-header-redirect-security/#findComment-521063 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.