Are you curious about the user-agent that identifies the browser identity, and why each browser has the Mozilla word?
mozilla/5.0 (Windows NT 6.1; WOW64) applewebkit/537.36 (khtml, like Gecko) chrome/27.0.1453.94 safari/537.36
mozilla/5.0
(Linux; U Android 4.1.2; ZH-TW; gt-i9300 build/jzo54k)
applewebkit/534.30 (khtml, like Gecko) version/4.0 Mobile safari/534.30
mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) gecko/20100101 firefox/20.0
mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; trident/5.0)
So
Things have to start from the beginning, the original protagonist called NCSA
Mosaic, abbreviated as MOSAIC (Mosaic), was the National Supercomputer Center at the University of Illinois at Urbana-Champaign in late 1992
For Supercomputing
Applications, abbreviated as NCSA), was developed and published in 1993 as a browser. It calls itself "ncsa_mosaic/2.0" (Windows
3.1) ", mosaic can display both text and pictures, and it becomes much more interesting from this browser.
But soon there was another browser, this is the famous Mozilla, Chinese name
Called Mothra. A said Mozilla = Mosaic + Killer, meaning Mosaic killer, also has the saying is Mozilla = Mosaic
& Godzilla, meaning mosaic and Godzilla, while Mozilla's original mascot was a big green lizard, and later changed to a red Tyrannosaurus, like Godzilla.
But
Mosaic was very unhappy about it, and then Mozilla changed its name to Netscape, also known as Netscape. Netscape claiming
"Mozilla/1.0 (Win3.1)", things began to become more interesting. Netscape Support Framework (frame), because everyone likes the framework to become popular, but mosaic not
Support Framework, the webmaster detects the user agent, sends a page containing frames to Mozilla's browser, and sends a page without frames to a non-Mozilla browser.
After
To Netscape, Microsoft is happy to say that Microsoft's Windows is "not debugged hardware drivers." Microsoft is very angry, the consequences are very serious. Since then, Microsoft has developed its own browser, which is
Internet Explorer, and want it to be a Netscape
Killer. IE also supports frames, but it is not Mozilla, so it is always not receiving pages that contain frames. Microsoft was depressed and soon sank, and it didn't want to wait until all the webmasters were
To understand IE and send a page containing frames to IE, it chooses to announce IE is compatible with Mozilla, and imitates Netscape called IE for
"Mozilla/1.22 (compatible; MSIE 2.0; Windows
95) ", so IE can receive a page containing frames, all Microsoft's people are hi-skinned, but the webmaster began to faint.
Because Microsoft is bundling IE and windows, and
IE did better than Netscape, so the first browser bloody war broke out, the result is Netscape to fail to exit the historical stage, Microsoft more hi leather. But I didn't think Netscape
Actually reborn in the name of Mozilla, and developed the gecko, this time it calls itself "mozilla/5.0 (Windows; U Windows NT
5.0; En-us; rv:1.1) gecko/20020826 ".
Gecko is a rendering engine and excellent. Mozilla later turned into a
Firefox, and calls itself "mozilla/5.0 (Windows; U Windows NT 5.1; Sv-se; rv:1.7.5)
gecko/20041108
firefox/1.0 ". Firefox is performing well and gecko is starting to Gongchenglvede, and other new browsers use its code and call themselves "Mozilla
/5.0 (Macintosh; U PPC Mac OS X mach-o; En-us; rv:1.7.2) gecko/20040825
camino/0.8.1 ", as well as" mozilla/5.0 (Windows; U Windows NT 5.1; De
rv:1.8.1.8) gecko/20071008 seamonkey/1.0 ", each of them pretends to be Mozilla, and they all use Gecko.
Gecko
is excellent, and IE can't keep up with it, so the user
Agent detection rules have changed, browsers using Gecko are sending better code, while other browsers do not. Linux followers are very sad about this because they have written
Konqueror, its engine is khtml, they think khtml and gecko as good, but because not gecko and not get a good page, so Konqueror
To get a better page began to disguise themselves as "like Gecko", and called themselves "mozilla/5.0 (compatible;
konqueror/3.2; FreeBSD) (khtml, like Gecko) ". Since then the user agent has become more chaotic.
This is more
"There's no doubt that we should let users decide which browser they want us to pretend to be," said opera. "So opera simply created a menu item that allows the user to choose the Opera browser
Into "mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; EN) Opera
9.51 ", or" mozilla/5.0 (Windows NT 6.0; U En rv:1.8.1) gecko/20061208
firefox/2.0.0 Opera 9.51 ", or" opera/9.51 (Windows NT 5.1; U EN) ".
Later
Apple developed the Safari browser and used khtml as the rendering engine, but Apple added many new features, so Apple called WebKit from the Khtml branch, but it didn't want to
Abandon those pages written for Khtml, so Safari calls itself "mozilla/5.0 (Macintosh; U PPC Mac OS X;
De-de) applewebkit/85.7 (khtml, like Gecko) safari/85.5 ", which further exacerbated the user
Agent of the chaotic situation.
Because Microsoft is very wary of Firefox, so IE Reloaded, this time it called itself "mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0) ", and the rendering works equally well, but requires the webmaster's instructions to do so.
Again
Later, Google developed Chrome, Chrome uses WebKit as the rendering engine, and as before Safari, it wanted those pages written for Safari, so it
Disguised as Safari. So Chrome used WebKit, and disguised itself as Safari,webkit disguised as khtml,khtml disguised as Gecko, the most
All browsers are disguised as Mozilla, which is why all browsers have Mozilla in User-agent. Chrome calls itself
"Mozilla/5.0 (Windows; U Windows NT 5.1; En-US) applewebkit/525.13
(khtml, like Gecko) chrome/0.2.149.27 safari/525.13 ".
Because of this history, the current user-agent string becomes a mess, almost impossible to reveal its original meaning. Traced to it, Microsoft can be said to be the initiator of all this, but then everyone is trying to impersonate others, and eventually make user-agent mess.
One
Conclusion: Because the website developer may be because you are a certain browser (here is
Mozilla), so output some special functions of the program code (here refers to the good special function), so when other browsers also support this good function, then try to imitate Mozilla
The browser lets the website output the same content as Mozilla, rather than the program code that outputs the castrated function. Everyone tries to pretend that they are Mozilla in order to get the best content out of the website.
A browser that doesn't already exist ...
With the advent of the major browser chronology:
January 23, 1993: Mosaic
December 1994: Netscape
1994: Opera
August 16, 1995: Internet Explorer
October 14, 1996: Kongqueror
January 7, 2003: Safari
September 2, 2008: Chrome
Note: This article turns from concise modern magic.
Why every browser has a Mozilla word