Strange User Agent With Google Chrome

前端 未结 5 1316
礼貌的吻别
礼貌的吻别 2021-02-01 14:38

I was working with some javascript and found a strange user agent with my Google Chrome.

I have Google Chrome 7.0.517.41 beta installed on my Ubuntu Laptop. Now AFAIK my

5条回答
  •  余生分开走
    2021-02-01 15:35

    There are historical reasons for browsers "lying" about themselfs. The main reason for this was user agent sniffing. Opera is the only browser which identifies itself as Opera, all other browsers use Mozilla/5.0 or the older ones Mozilla/4.0.

    The only thing you should know about this is: User agent strings cannot be trusted, feautre detection is recommended instead.

提交回复
热议问题