Knowledge

User-Agent header

Source đź“ť

271:: This is used by the browser to indicate specific enhancements that are available directly in the browser or through third parties. An example of this is Microsoft Live Meeting which registers an extension so that the Live Meeting service knows if the software is already installed, which means it can provide a streamlined experience to joining meetings. 349:(IETF). Websites often include code to detect browser version to adjust the page design sent according to the user agent string received. This may mean that less-popular browsers are not sent complex content (even though they might be able to deal with it correctly) or, in extreme cases, refused all content. Thus, various browsers have a feature to 144:, where the origin server selects suitable content or operating parameters for the response. For example, the user agent string might be used by a web server to choose variants based on the known capabilities of a particular version of client software. The concept of content tailoring is built into the HTTP standard in 400:
2003's Outlook Web Access feature. When viewed with Internet Explorer 6 or newer, more functionality is displayed compared to the same page in any other browsers. User agent sniffing is considered poor practice, since it encourages browser-specific design and penalizes new browsers with unrecognized
283:
was the most widely used web browser that did not have the user agent string with "Mozilla" (instead beginning it with "Opera"). Since July 15, 2013, Opera's user agent string begins with "Mozilla/5.0" and, to avoid encountering legacy server rules, no longer includes the word "Opera" (instead using
323:
strength in the user agent string. Until 1996, when the United States government allowed encryption with keys longer than 40 bits to be exported, vendors shipped various browser versions with different encryption strengths. "U" stands for "USA" (for the version with 128-bit encryption), "I" stands
340:
The popularity of various Web browser products has varied throughout the Web's history, and this has influenced the design of websites in such a way that websites are sometimes designed to work well only with particular browsers, rather than according to uniform standards by the
93:. The user agent for the operator of a computer used to access the Web has encoded within the rules that govern its behavior the knowledge of how to negotiate its half of a request-response transaction; the user agent thus plays the role of the 401:
user agent identifications. Instead, the W3C recommends creating standard HTML markup, allowing correct rendering in as many browsers as possible, and to test for specific browser features rather than particular browser versions or brands.
101:. Often considered useful in networks is the ability to identify and distinguish the software facilitating a network session. For this reason, the User-Agent HTTP header exists to identify the client software to the responding server. 457:
announced it would temporarily freeze portions of the browser's user agent string at version 109. This was done due to several websites incorrectly recognizing a development version of the browser (which identified itself by the string
162:
As with many other HTTP request headers, the information in the user agent string contributes to the information that the client sends to the server, since the string can vary considerably from user to user.
292:
Automated web crawling tools can use a simplified form, where an important field is contact information in case of problems. By convention the word "bot" is included in the name of the agent. For example:
175:. The format of the user agent string in HTTP is a list of product tokens (keywords) with optional comments. For example, if a user's product were called WikiBrowser, their user agent string might be 709: 481:). The problem will self-correct after the release of Firefox 120, as only browsers identifying themselves as 110 through 119 were observed to be affected by it. 787: 735: 752:
Mozilla/5.0 (Linux; U; Android 2.2; en-sa; HTC_DesireHD_A9191 Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
329: 324:
for "International" – the browser has 40-bit encryption and can be used anywhere in the world – and "N" stands (
1008: 151:
The user agent string is one of the criteria by which Web crawlers may be excluded from accessing certain parts of a website using the
89:
comprises the name of the header itself, the header value that a given user agent uses to identify itself is colloquially known as its
396:
is the practice of websites showing different or adjusted content when viewed with certain user agents. An example of this is
713: 655: 434:. They stated that other major web browser vendors were supportive of the move. Google stated that a new feature called 441:
Starting with Chrome 113, released in April 2023, User-Agent header stays the same except for the major version part.
847: 586: 357:
their identification to force certain server-side content. For example, the Android browser identifies itself as
346: 237:
Mozilla/5.0 (iPad; U; CPU OS 3_2_1 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Mobile/7B405
801: 622: 117:
to its operating peer. In HTTP, SIP, and NNTP protocols, this identification is transmitted in a header field
1003: 973:"Remove the frozen 'rv:109.0' IE11 UA workaround after Firefox reaches version 120 (desktop and Android)" 739: 376: 42: 109:
When a software agent operates in a network protocol, it often identifies itself, its application type,
495: 431: 17: 510: 500: 397: 342: 152: 114: 113:, device model, software vendor, or software revision, by submitting a characteristic identification 38: 430:
browser as it's no longer required for determining browser capabilities and instead mainly used for
792: 206: 126: 98: 822: 677: 205:, many web servers were configured to send web pages that required advanced features, including 947:"Freeze 'rv:' segment in the User Agent string to 'rv:109.0' to avoid erroneous IE11 detection" 618: 580: 276: 172: 895: 600: 470: 358: 214: 8: 454: 280: 222: 218: 141: 404:
Websites intended for display by mobile phones often rely on user agent sniffing, since
972: 946: 515: 312: 94: 920: 417: 316: 642: 590: 490: 388: 365: 110: 698:
Burstein complaining "... I've been rejected until I come back with Netscape"
148:"for the sake of tailoring responses to avoid particular user agent limitations". 871: 369: 603: 405: 130: 545: 426:
announced that they would be freezing parts of the User-Agent header in their
247:: Previously used to indicate compatibility with the Mozilla rendering engine. 145: 997: 427: 228:
For this reason, most Web browsers use a user agent string value as follows:
85:
responsible for making a given HTTP request. Whereas the character sequence
435: 202: 122: 520: 467: 171:
The user agent string format is currently specified by section 10.1.5 of
619:"Browser Versions Carry 10.5 Bits of Identifying Information on Average" 299:
Automated agents are expected to follow rules in a special file called "
765: 320: 300: 82: 60: 697: 595: 134: 70: 213:
only. Other browsers were considered to be older products such as
797: 450: 210: 505: 423: 525: 78: 438:
would replace the functionality of the user agent string.
372:, often have the ability to change the user agent string. 179:. The "most important" product component is listed first. 319:, previously used the letters U, I, and N to specify the 166: 253:: Details of the system in which the browser is running. 234:
For example, Safari on the iPad has used the following:
328:) for "None" (no encryption). Following the lifting of 375:
A result of user agent spoofing may be that collected
921:"www.bestbuy.com - Firefox is an unsupported browser" 736:"User Agent String explained: Android Webkit Browser" 287: 209:, to clients that were identified as some version of 361:(among other things) in order to aid compatibility. 411: 311:Web browsers created in the United States, such as 140:In HTTP, the "user agent string" is often used for 848:"Google to phase out user-agent strings in Chrome" 995: 710:"Android Browser Reports Itself as Apple Safari" 306: 296:Googlebot/2.1 (+http://www.google.com/bot.html) 225:, and would be sent a bare bones HTML document. 656:"Opera User Agent Strings: Opera 15 and Beyond" 284:the string "OPR" to denote the Opera version). 240:The components of this string are as follows: 788:"Browser Detection and Cross Browser Support" 332:, most vendors supported 256-bit encryption. 125:, such as Web crawlers, often also include a 444: 251:(iPad; U; CPU OS 3_2_1 like Mac OS X; en-us) 823:"Chrome Phasing out Support for User Agent" 669: 475:Mozilla/5.0 (Windows NT 10.0; Trident/7.0; 23: 757: 24: 616: 594: 182:The parts of this string are as follows: 104: 59:Not to be confused with the concept of a 675: 643:History of the browser user-agent string 526:Wireless Universal Resource File (WURFL) 32:This is an accepted version of this page 14: 996: 560: 538: 408:often differ greatly from each other. 382: 335: 167:Format for human-operated web browsers 785: 763: 738:. UserAgentString.com. Archived from 460:Mozilla/5.0 (Windows NT 10.0; Win64; 137:can contact the operator of the bot. 970: 944: 617:Eckersley, Peter (27 January 2010). 1009:Hypertext Transfer Protocol headers 845: 589:. November 2009. sec. 3.2.13. 570:, IETF, The Internet Society (2002) 66:Software acting on behalf of a user 56: 288:Format for automated agents (bots) 57: 1020: 676:Zawinski, Jamie (28 March 1998). 364:Other HTTP client programs, like 568:SIP: Session Initiation Protocol 412:Deprecation of User-Agent header 259:: The platform the browser uses. 81:header intended to identify the 964: 938: 913: 888: 864: 839: 815: 786:Clary, Bob (10 February 2003). 779: 766:"W3C Markup Validation Service" 728: 678:"user-agent strings (obsolete)" 453:110 released in February 2023, 377:statistics of Web browser usage 347:Internet Engineering Task Force 702: 691: 648: 636: 623:Electronic Frontier Foundation 610: 573: 464:) Gecko/20100101 Firefox/110.0 13: 1: 658:. dev.opera.com. 15 July 2013 531: 307:Encryption strength notations 7: 506:User Agent Profile (UAProf) 484: 265:: Browser platform details. 193:layout engine and version ( 10: 1025: 546:"RFC-9110: HTTP Semantics" 496:List of HTTP header fields 415: 386: 186:product name and version ( 58: 501:Robots exclusion standard 445:Browser misidentification 398:Microsoft Exchange Server 343:World Wide Web Consortium 177:WikiBrowser/1.0 Gecko/1.0 153:Robots Exclusion Standard 793:Mozilla Developer Center 275:Before migrating to the 39:latest accepted revision 896:"Firefox Release Notes" 872:"User-Agent Reduction" 582:Netnews Article Format 432:browser fingerprinting 105:Use in client requests 257:AppleWebKit/531.21.10 977:bugzilla.mozilla.org 951:bugzilla.mozilla.org 764:Pemberton, Stephen. 511:User-Agent Reduction 471:Internet Explorer 11 99:client–server system 1004:Clients (computing) 394:User agent sniffing 383:User agent sniffing 336:User agent spoofing 330:export restrictions 263:(KHTML, like Gecko) 142:content negotiation 29:Page version status 945:Schubert, Dennis. 846:Cimpanu, Catalin. 516:Web browser engine 313:Netscape Navigator 35: 971:Peterson, Chris. 716:on August 6, 2011 418:HTTP Client Hints 366:download managers 317:Internet Explorer 201:During the first 91:user agent string 75:User-Agent header 26: 16:(Redirected from 1016: 988: 987: 985: 983: 968: 962: 961: 959: 957: 942: 936: 935: 933: 931: 917: 911: 910: 908: 906: 892: 886: 885: 883: 882: 876:www.chromium.org 868: 862: 861: 859: 858: 843: 837: 836: 834: 833: 819: 813: 812: 810: 809: 800:. Archived from 783: 777: 776: 774: 773: 761: 755: 754: 749: 747: 732: 726: 725: 723: 721: 712:. Archived from 706: 700: 695: 689: 688: 686: 685: 673: 667: 666: 664: 663: 652: 646: 640: 634: 633: 631: 629: 614: 608: 607: 598: 596:10.17487/RFC5536 577: 571: 564: 558: 557: 555: 553: 542: 491:Browser sniffing 480: 465: 389:Browser sniffing 379:are inaccurate. 370:offline browsers 231:Mozilla/ () () 111:operating system 88: 47:6 September 2024 21: 1024: 1023: 1019: 1018: 1017: 1015: 1014: 1013: 994: 993: 992: 991: 981: 979: 969: 965: 955: 953: 943: 939: 929: 927: 919: 918: 914: 904: 902: 894: 893: 889: 880: 878: 870: 869: 865: 856: 854: 844: 840: 831: 829: 821: 820: 816: 807: 805: 784: 780: 771: 769: 762: 758: 745: 743: 734: 733: 729: 719: 717: 708: 707: 703: 696: 692: 683: 681: 674: 670: 661: 659: 654: 653: 649: 641: 637: 627: 625: 615: 611: 579: 578: 574: 565: 561: 551: 549: 544: 543: 539: 534: 487: 474: 473:(which reports 459: 447: 420: 414: 406:mobile browsers 391: 385: 338: 309: 297: 290: 238: 232: 188:WikiBrowser/1.0 169: 107: 86: 67: 64: 55: 54: 53: 52: 51: 50: 34: 22: 15: 12: 11: 5: 1022: 1012: 1011: 1006: 990: 989: 963: 937: 912: 887: 863: 838: 814: 778: 756: 727: 701: 690: 668: 647: 635: 609: 572: 559: 536: 535: 533: 530: 529: 528: 523: 518: 513: 508: 503: 498: 493: 486: 483: 449:Starting with 446: 443: 416:Main article: 413: 410: 387:Main article: 384: 381: 337: 334: 308: 305: 295: 289: 286: 273: 272: 266: 260: 254: 248: 236: 230: 199: 198: 191: 173:HTTP Semantics 168: 165: 131:e-mail address 106: 103: 65: 36: 30: 27: 25: 9: 6: 4: 3: 2: 1021: 1010: 1007: 1005: 1002: 1001: 999: 978: 974: 967: 952: 948: 941: 926: 922: 916: 901: 897: 891: 877: 873: 867: 853: 849: 842: 828: 824: 818: 804:on 2011-11-17 803: 799: 795: 794: 789: 782: 767: 760: 753: 742:on 4 May 2012 741: 737: 731: 715: 711: 705: 699: 694: 680:. mozilla.org 679: 672: 657: 651: 644: 639: 624: 620: 613: 605: 602: 597: 592: 588: 584: 583: 576: 569: 563: 547: 541: 537: 527: 524: 522: 519: 517: 514: 512: 509: 507: 504: 502: 499: 497: 494: 492: 489: 488: 482: 478: 472: 469: 463: 456: 452: 442: 439: 437: 433: 429: 425: 419: 409: 407: 402: 399: 395: 390: 380: 378: 373: 371: 367: 362: 360: 356: 352: 348: 345:(W3C) or the 344: 333: 331: 327: 322: 318: 314: 304: 302: 294: 285: 282: 278: 270: 267: 264: 261: 258: 255: 252: 249: 246: 243: 242: 241: 235: 229: 226: 224: 220: 216: 212: 208: 204: 196: 192: 189: 185: 184: 183: 180: 178: 174: 164: 160: 158: 154: 149: 147: 143: 138: 136: 132: 128: 124: 120: 116: 112: 102: 100: 96: 92: 84: 80: 76: 72: 62: 48: 44: 40: 33: 28: 19: 980:. Retrieved 976: 966: 954:. Retrieved 950: 940: 928:. Retrieved 924: 915: 903:. Retrieved 899: 890: 879:. Retrieved 875: 866: 855:. Retrieved 851: 841: 830:. Retrieved 826: 817: 806:. Retrieved 802:the original 791: 781: 770:. Retrieved 759: 751: 744:. Retrieved 740:the original 730: 718:. Retrieved 714:the original 704: 693: 682:. Retrieved 671: 660:. Retrieved 650: 638: 626:. Retrieved 612: 581: 575: 567: 562: 550:. Retrieved 540: 479:) like Gecko 476: 461: 448: 440: 436:Client Hints 421: 403: 393: 392: 374: 363: 354: 350: 339: 325: 310: 298: 291: 274: 269:Mobile/7B405 268: 262: 256: 250: 244: 239: 233: 227: 200: 194: 187: 181: 176: 170: 161: 156: 150: 139: 133:so that the 118: 108: 90: 74: 68: 46: 37:This is the 31: 900:mozilla.org 521:Web crawler 279:code base, 245:Mozilla/5.0 203:browser war 998:Categories 925:github.com 881:2023-07-13 857:2020-03-25 832:2020-03-25 808:2009-05-30 772:2011-10-18 684:2010-01-08 662:2014-05-05 566:RFC 3261, 532:References 468:deprecated 321:encryption 301:robots.txt 157:robots.txt 119:User-Agent 87:User-Agent 83:user agent 61:user agent 18:User-agent 720:August 9, 645:. WebAIM. 628:25 August 466:) as the 422:In 2020, 195:Gecko/1.0 135:Webmaster 71:computing 485:See also 462:rv:110.0 326:de facto 277:Chromium 146:RFC 1945 43:reviewed 982:8 April 956:8 April 930:8 April 905:8 April 798:Mozilla 746:29 July 552:28 July 477:rv:11.0 455:Mozilla 451:Firefox 211:Mozilla 159:file). 129:and/or 548:. IETF 428:Chrome 424:Google 359:Safari 215:Mosaic 207:frames 115:string 95:client 77:is an 73:, the 852:ZDNet 827:InfoQ 768:. W3C 355:spoof 351:cloak 281:Opera 223:Samba 221:, or 219:Cello 97:in a 984:2023 958:2023 932:2023 907:2023 748:2012 722:2011 630:2011 604:5536 587:IETF 554:2022 368:and 315:and 123:Bots 79:HTTP 601:RFC 591:doi 353:or 303:". 127:URL 69:In 45:on 1000:: 975:. 949:. 923:. 898:. 874:. 850:. 825:. 796:. 790:. 750:. 621:. 599:. 585:. 217:, 121:. 41:, 986:. 960:. 934:. 909:. 884:. 860:. 835:. 811:. 775:. 724:. 687:. 665:. 632:. 606:. 593:: 556:. 197:) 190:) 155:( 63:. 49:. 20:)

Index

User-agent
latest accepted revision
reviewed
user agent
computing
HTTP
user agent
client
client–server system
operating system
string
Bots
URL
e-mail address
Webmaster
content negotiation
RFC 1945
Robots Exclusion Standard
HTTP Semantics
browser war
frames
Mozilla
Mosaic
Cello
Samba
Chromium
Opera
robots.txt
Netscape Navigator
Internet Explorer

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.

↑