[EP-tech] Re: IRStats2. Browsers and Countries

Robin Sylvestre robin.sylvestre at polymtl.ca
Tue Sep 22 20:45:36 BST 2015

This is pretty old, but I haven't seen any response to this.

I noticed that Chrome browser gets identified as Safari in IRStats2. The 
user agent string from my Chrome browser is :

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) 
Chrome/45.0.2454.93 Safari/537.36

I don’t have Safari on my computer, but from what I gather from Google, 
Safari’s user agent looks like this:

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, 
like Gecko) Version/8.0.3 Safari/600.3.18

Anyone here knows how to modify “Browsers.pm” to distinguish the two 



Robin Sylvestre

Technicien en documentation

Bibliothèque - Services techniques et systèmes informatisés

École Polytechnique de Montréal

Tél.: 514-340-4711 poste 3743

-----Message d'origine-----
De : Centro de Documentación [mailto:cendocu at gmail.com]
Envoyé : 3 mars 2015 09:19
À : eprints-tech at ecs.soton.ac.uk
Objet : [EP-tech] IRStats2. Browsers and Countries


I think that the IRStats' browser detection isn't working properly. At the 
very very top of the ranking, I have "Apple Safari" and "MIExplorer", 
¿Firefox? in the middle and at the end ¿Chrome?. It's weird ....

Some days ago, when I looked some items with few downloads, I realized that 
some of them showed more downloads than countries-downloads. I think 
IRStats2 can't resolve some IPs as countries or unknown-countries, can be?. 
(I use country.pm with this patch

 <https://github.com/eprints/irstats2/commit/cdeb3281694ff1eee3d4f97660560aa4ef3cd30c>https://github.com/eprints/irstats2/commit/cdeb3281694ff1eee3d4f97660560aa4ef3cd30c)I running IRStats1 too and it's works fine.Regards,Cristian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20150922/463dc924/attachment.html 

More information about the Eprints-tech mailing list