now handles Referers correctly.