SOLVED
Home

Wrong user agent?

%3CLINGO-SUB%20id%3D%22lingo-sub-448974%22%20slang%3D%22en-US%22%3EWrong%20user%20agent%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-448974%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20looked%20up%20the%20user%20agent%20for%20the%20Edge%20Chromium%20browser%20and%20this%20showed%20up%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3Euser-agent%3A%20Mozilla%2F5.0%20(Windows%20NT%2010.0%3B%20Win64%3B%20x64)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F75.0.3761.0%20Safari%2F537.36%20%3CSTRONG%3EEdg%2F75.0.127.0%3C%2FSTRONG%3E%0Aaccept%3A%20text%2Fhtml%2Capplication%2Fxhtml%2Bxml%2Capplication%2Fxml%3Bq%3D0.9%2Cimage%2Fwebp%2Cimage%2Fapng%2C*%2F*%3Bq%3D0.8%2Capplication%2Fsigned-exchange%3Bv%3Db3%3C%2FPRE%3E%3CP%3EIs%20%22Edg%22%20a%20typo%20or%20it%20is%20deliberated%3F%20Just%20curious.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-448988%22%20slang%3D%22en-US%22%3ERe%3A%20Wrong%20user%20agent%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-448988%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F316803%22%20target%3D%22_blank%22%3E%40athosbr99%3C%2FA%3E%26nbsp%3Bit's%20a%20delibreate%20change%2C%20check%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fblogs.windows.com%2Fmsedgedev%2F2019%2F04%2F08%2Fmicrosoft-edge-preview-channel-details%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblogs.windows.com%2Fmsedgedev%2F2019%2F04%2F08%2Fmicrosoft-edge-preview-channel-details%2F%3C%2FA%3E%26nbsp%3B%3B%20there%20is%20a%20paragraph%20titled%20%22User%20Agent%20String%22%20that%20explain%20why%20it%20had%20to%20be%20made%26nbsp%3B%3Asmiling_face_with_smiling_eyes%3A%3C%2Fimg%3E%3C%2FP%3E%3CP%3EHere%20it%20is%20%3A%3C%2FP%3E%3CBLOCKQUOTE%3E%3CH1%20id%3D%22toc-hId-1902294242%22%20id%3D%22toc-hId-1902294242%22%20id%3D%22toc-hId-1902294242%22%20id%3D%22toc-hId-1902294242%22%20id%3D%22toc-hId-1902294242%22%20id%3D%22toc-hId-1902294242%22%3EUser%20Agent%20String%3C%2FH1%3E%3CP%20class%3D%22x-hidden-focus%22%3EWith%20Microsoft%20Edge%20adopting%20Chromium%2C%20we%20are%20changing%20our%20user%20agent%20string%20to%20closely%20resemble%20that%20of%20the%20Chromium%20user%20agent%20string%20with%20the%20addition%20of%20the%20%E2%80%9CEdg%E2%80%9D%20token.%20If%20you%E2%80%99re%20blocking%20site%20access%20on%20user%20agent%20strings%2C%20please%20update%20your%20logic%20to%20treat%20this%20string%20as%20another%20Chromium-based%20browser.%3C%2FP%3E%3CP%3EBelow%20is%20the%20user%20agent%20string%20for%20the%20latest%20Dev%20Channel%20build%20of%20Microsoft%20Edge%3A%3C%2FP%3E%3CP%3EMozilla%2F5.0%20(Windows%20NT%2010.0%3B%20Win64%3B%20x64)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F74.0.3729.48%20Safari%2F537.36%20Edg%2F74.1.96.24%3C%2FP%3E%3CP%20class%3D%22x-hidden-focus%22%3EWe%E2%80%99ve%20selected%20the%20%E2%80%9CEdg%E2%80%9D%20token%20to%20avoid%20compatibility%20issues%20that%20may%20be%20caused%20by%20using%20the%20string%20%E2%80%9CEdge%2C%E2%80%9D%20which%20is%20used%20by%20the%20current%20version%20of%20Microsoft%20Edge%20based%20on%20EdgeHTML.%20The%20%E2%80%9CEdg%E2%80%9D%20token%20is%20also%20consistent%20with%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fblogs.windows.com%2Fmsedgedev%2F2017%2F10%2F05%2Fmicrosoft-edge-ios-android-developer%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eexisting%20tokens%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eused%20on%20iOS%20and%20Android.%20We%20recommend%20that%20developers%20use%20feature%20detection%20where%20possible%20and%20avoid%20browser%20version%20detection%20through%20the%20user%20agent%20string%2C%20as%20it%20results%20in%20more%20maintenance%20and%20fragile%20code.%3C%2FP%3E%3CBR%20%2F%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-449010%22%20slang%3D%22en-US%22%3ERe%3A%20Wrong%20user%20agent%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-449010%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F318713%22%20target%3D%22_blank%22%3E%40AimanJ%3C%2FA%3E%26nbsp%3Bawkward%20but%20I%20imagined%20something%20like%20that.%20but%20most%20services%20detect%20it%20as%20Chrome%20anyway.%20thanks%20for%20the%20link%20and%20info%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-449044%22%20slang%3D%22en-US%22%3ERe%3A%20Wrong%20user%20agent%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-449044%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F316803%22%20target%3D%22_blank%22%3E%40athosbr99%3C%2FA%3E%26nbsp%3BIt's%20a%20pleasure%2C%20%26amp%3B%20you%20are%20right%20about%20how%20some%20services%20detect%20it%3A%20in%20a%20way%2C%20it%20serve%20the%20point%2C%20since%20it's%20based%20on%20chromium%20(and%20thereof%20share%20the%20same%20features)%2C%20%26amp%3B%20some%20sites%2Fwebapps%20rely%20on%20user%20agent%20to%20check%20compatibility%2C%20it%20basically%20tell%20them%20to%20treat%20it%20as%20if%20it's%20Chrome.%3C%2FP%3E%3CP%3EAgain%2C%20g%3CSPAN%3Elad%20to%20be%20of%20help%2C%20%26amp%3B%20have%20a%20nice%20day%20%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-450181%22%20slang%3D%22en-US%22%3ERE%3A%20Wrong%20user%20agent%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-450181%22%20slang%3D%22en-US%22%3EIf%20you%20are%20ever%20curious%20about%20what%20your%20new%20browser%20is%20reporting%20itself%20as%20to%20other%20sites%2C%20you%20can%20go%20to%20edge%3A%2F%2Fversion%2F%20in%20the%20new%20browser%20and%20it%20will%20show%20you%20the%20user%20agent%20string%20it%20is%20using.%20There%20are%20dozens%20of%20these%20different%20EDGE%3A%2F%2F%20urls%20for%20more%20information%20and%20settings%2C%20and%20you%20can%20see%20the%20entire%20list%20of%20them%20by%20going%20to%20edge%3A%2F%2Fedge-urls%2F%20There%20are%20even%20some%20rather%20important%20command%20style%20URLS%20that%20are%20used%20for%20crash%20analysis%20and%20reporting..%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-451229%22%20slang%3D%22en-US%22%3ERe%3A%20Wrong%20user%20agent%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-451229%22%20slang%3D%22en-US%22%3EThank%20you%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F318713%22%20target%3D%22_blank%22%3E%40AimanJ%3C%2FA%3E%20for%20this%20response%2C%20it%20is%20right%20on%20the%20money.%20Thank%20you%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F316803%22%20target%3D%22_blank%22%3E%40athosbr99%3C%2FA%3E%20for%20the%20question.%3C%2FLINGO-BODY%3E
athosbr99
Occasional Contributor

Hi there,

 

I looked up the user agent for the Edge Chromium browser and this showed up:

 

user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3761.0 Safari/537.36 Edg/75.0.127.0
accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3

Is "Edg" a typo or it is deliberated? Just curious. 

5 Replies
Solution

@athosbr99 it's a delibreate change, check https://blogs.windows.com/msedgedev/2019/04/08/microsoft-edge-preview-channel-details/ ; there is a paragraph titled "User Agent String" that explain why it had to be made :smiling_face_with_smiling_eyes:

Here it is :

User Agent String

With Microsoft Edge adopting Chromium, we are changing our user agent string to closely resemble that of the Chromium user agent string with the addition of the “Edg” token. If you’re blocking site access on user agent strings, please update your logic to treat this string as another Chromium-based browser.

Below is the user agent string for the latest Dev Channel build of Microsoft Edge:

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.48 Safari/537.36 Edg/74.1.96.24

We’ve selected the “Edg” token to avoid compatibility issues that may be caused by using the string “Edge,” which is used by the current version of Microsoft Edge based on EdgeHTML. The “Edg” token is also consistent with existing tokens used on iOS and Android. We recommend that developers use feature detection where possible and avoid browser version detection through the user agent string, as it results in more maintenance and fragile code.



 

@AimanJ awkward but I imagined something like that. but most services detect it as Chrome anyway. thanks for the link and info :)

@athosbr99 It's a pleasure, & you are right about how some services detect it: in a way, it serve the point, since it's based on chromium (and thereof share the same features), & some sites/webapps rely on user agent to check compatibility, it basically tell them to treat it as if it's Chrome.

Again, glad to be of help, & have a nice day :)

Highlighted
If you are ever curious about what your new browser is reporting itself as to other sites, you can go to edge://version/ in the new browser and it will show you the user agent string it is using. There are dozens of these different EDGE:// urls for more information and settings, and you can see the entire list of them by going to edge://edge-urls/ There are even some rather important command style URLS that are used for crash analysis and reporting..
Thank you @AimanJ for this response, it is right on the money. Thank you @athosbr99 for the question.
Related Conversations
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies