'HTTP_REFERER'
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

'HTTP_REFERER'

From: windandwaves <winandwaves@coldmail.com>
Date: Wed Oct 12 2005 - 07:08:40 CEST

Hi Folk

I am reading the info below and I am thinking, just how trusted is it.

I have a redirection in place using an .htaccess file. The file it
redirects to is 404.php. Is there a way to find out what the file was that
people entered originally? I was thinking about $_SERVER["HTTP_REFERER"]
but that does not seem to do the trick (it is empty).

Can you help?

TIA

- Nicolaas
PS here is the info on $_SERVER["HTTP_REFERER"]

'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.
Received on Tue Oct 18 02:40:30 2005