Jump to content


Photo

Dumb Question.... :(


  • Please log in to reply
1 reply to this topic

#1 kickassamd

kickassamd
  • Members
  • PipPipPip
  • Advanced Member
  • 102 posts
  • LocationDallas Tx

Posted 21 May 2006 - 06:44 AM

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?

#2 jeremywesselman

jeremywesselman
  • Members
  • PipPipPip
  • Advanced Member
  • 154 posts
  • LocationIndependence, KY

Posted 21 May 2006 - 07:57 AM

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--]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users