Fix undefined HTTP_REFERER