The HTTP_REFERER var is dependent on two main things:
1) The web server PHP is running under (ie Apache)
2) The browser requesting the page
HTTP_REFERER is a <i>Server</i> or <i>Apache</i> variable, not an environment variable. I am not aware of any way to turn this variable on or off...
-- Rich