In questa variabile php hai il referred: $_SERVER["HTTP_REFERER"]