Detect browsers based on their user agent.