Originariamente inviato da satifal
Da manuale:

codice:
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.
Prova ad utilizzare REQUEST_URI in alternativa.

$_SERVER
Eppure da manuale sembra tutto molto chiaro. Non c'è NULLA da settare nel php.ini
Perchè il campo HTTP_REFERER nell'array $_SERVER sia valorizzato occorre giungere alla pagina che lo utilizza tramite un link oppure un submit.
Se digiti la pagina direttamente sulla barra degli indirizzi tale campo è VUOTO.