kickassamd Posted May 21, 2006 Share Posted May 21, 2006 Is there a way with PHP to check to see if a URL (PHP document) was manually entered into a browser or if it was requested by a webserver like a <href> or <img> tag? Quote Link to comment https://forums.phpfreaks.com/topic/10103-dumb-question/ Share on other sites More sharing options...
jeremywesselman Posted May 21, 2006 Share Posted May 21, 2006 Directly from the [a href=\"http://www.php.net/reserved.variables\" target=\"_blank\"]PHP Manual[/a]:[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]$_SERVER['HTTP_REFERER']; The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted. [/quote][!--coloro:#990000--][span style=\"color:#990000\"][!--/coloro--]Jeremy[!--colorc--][/span][!--/colorc--] Quote Link to comment https://forums.phpfreaks.com/topic/10103-dumb-question/#findComment-37607 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.