Jump to content

Archived

This topic is now archived and is closed to further replies.

kickassamd

Dumb Question.... :(

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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--]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.