On Sun, Nov 23, 2008 at 8:13 PM, Gregory Maxwell gmaxwell@gmail.com wrote:
Can you suggest a good user-agent scrubber? Many user-agents strings have various degrees of private/semi-private data stuffed into them.
I've looked at publishing user-agent stats for Wikimedia site before, but realized that I don't have enough knowledge to safely canonicize them without throwing out a ton of information. (I.e. I could break down IE vs Firefox vs Opera vs Safari; but if you want to know about less common user agents I'm not quite sure what information can be safely released)
PHP has a built-in function that does this:
http://www.php.net/manual/en/function.get-browser.php
It's apparently configurable using a .ini file. Probably there are some fairly good ones available.