log history document referrer