Use a smarter approach to logging request referers