hlstriker Posted April 11, 2007 Share Posted April 11, 2007 Hi, I need to find out how to see what page someone came from. I need this because I need to check if they came from a downloads.php page in order to download a file. This will stop hot linking. How it works right now is you click a link on the downloads.php page, that sends the file id to a page called files.php. The files.php figures out which file url to get from the database. Before figures out which file url to get, I need it to see if the link on downloads.php was clicked. If anyone can help me figure this out please do Link to comment https://forums.phpfreaks.com/topic/46538-check-what-page-someone-came-from/ Share on other sites More sharing options...
jitesh Posted April 11, 2007 Share Posted April 11, 2007 echo $_SERVER['HTTP_REFERER']; Link to comment https://forums.phpfreaks.com/topic/46538-check-what-page-someone-came-from/#findComment-226524 Share on other sites More sharing options...
PC Nerd Posted April 11, 2007 Share Posted April 11, 2007 use: http://www.phpfreaks.com/forums/index.php/topic,135500.0.html i was asking this this morning the $_SERVER array contains heap of stuff about the server and the client its really useful Link to comment https://forums.phpfreaks.com/topic/46538-check-what-page-someone-came-from/#findComment-226541 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.