user-agent

How do I show an error page when users visit my site using Microsoft Edge?

自作多情 提交于 2019-12-02 03:55:54
When a user loads my website in Microsoft Edge, I need to show a page like in the below image: I can see like this page when I'm trying to access sites like www.naver.com or www.daum.net on Edge. That page looks like a Provided from Microsoft , and I guess there are Any Javascript function to call this pages I need to know how .. Malte Lantin If possible you should avoid browser detection and move to modern web technologies that work across browsers. A great tool you can use is the sitescan on http://dev.modern.ie/tools/staticscan/ that helps to identify common issues, like outdated js

What is all the browser agent stuff?

天大地大妈咪最大 提交于 2019-12-02 03:55:36
I am new to ASP.NET and wanted to capture details about people on my site. So I capture the Request.UserAgent attributes to file. Can anyone explain how to deconstruct these so I know what they mean? I am actually stumped by some of the user agents I see. Examples: IE2.0d; WinNT: Mozilla/1.22 (compatible; MSIE 2.0d; Windows NT) : Never heard of IE2.0, so is this spoofed for scanning my site, and why? Also, how is IE related to Mozilla in this case? IE6.0; WinXP: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.2; .NET CLR 1.1.4322; yplus 4.4.02b) : People seriously use IE6.0

ipad user agent changes during use?

▼魔方 西西 提交于 2019-12-02 01:30:27
In the logs of our website, we are occasionally seeing the user agent of an iPad 'switch' from one set of requests to the next. On one set of requests that occur simultaneously, the user agent will look like this (which is the style of user agent we see most of the time for iPads): mozilla/5.0+(ipad;+u;+cpu+os+4_2_1+like+mac+os+x;+en-us)+applewebkit/533.17.9+(khtml,+like+gecko)+version/5.0.2+mobile/8c148+safari/6533.18.5 The user then clicks a link or a button; the next series of requests will have a user agent setting like: mozilla/5.0+(ipad;+u;+cpu+os+4_2_1+like+mac+os+x;+en-us)+applewebkit

SQL performance searching for long strings

半城伤御伤魂 提交于 2019-12-01 17:54:21
I need to store user agent strings in a database for tracking and comparing customer behavior and sales performance between different browsers. A pretty plain user agent string is around 100 characters long. It was decided to use a varchar(1024) for holding the useragent data in the database. (I know this is overkill, but that's the idea; it's supposed to accommodate useragent data for years to come and some devices, toolbars, applications are already pushing 500 characters in length.) The table holding these strings will be normalized (each distinct user agent string will only be stored once)

Get IE 11 build number from javascript

懵懂的女人 提交于 2019-12-01 16:12:09
TL;DR - How do I get the build number of IE 11 in javascript? I had a bug that was fixed at some point between versions 11.0.1 and 11.0.7. I'd like to know the percentage of users that are experiencing the issue. Basicly I would want to get this number: I don't think this is possible using just JavaScript. Microsoft is trying to hide the fact that IE11 actually is an Internet Explorer, see http://www.nczonline.net/blog/2013/07/02/internet-explorer-11-dont-call-me-ie/ . Therefore, even the user agent of an IE11 now looks like this: Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E;

setUserAgentString in Android webview has no effect on HTTP header used in loadURL()

岁酱吖の 提交于 2019-12-01 15:08:09
问题 Been trying to change the User-Agent string in the HTTP request of an Android app. I have tested this together with wireshark and the emulator, and have seen that although I set the useragent string in the webview, the associated loadUrl request does not use this user-agent string. Instead I see the Dalvik useragent string in the wireshark capture. Here is the code abstract. Any ideas? Or does the emulator not support this? @Override public void run() { assert(context != null); ... ...

Mobile device detection for rendering rich web content

梦想的初衷 提交于 2019-12-01 11:37:18
What are the most web-capable mobile phones to date (models and / or user agents) and What rules should be assessed when trying to determine if they will handle a rich mobile-customised site? I am developing a mobile website and currently doing some user agent detection to determine if the mobile device should see a fully enhanced js, jquery mobile, css view, or plain a fallback one. Here is what I currently have for my two questions, and I would like some input / suggestions on how this can be improved - this filtering is assessed top-to-bottom: Enhanced view if the user agent contains the

Mobile device detection for rendering rich web content

眉间皱痕 提交于 2019-12-01 08:49:56
问题 What are the most web-capable mobile phones to date (models and / or user agents) and What rules should be assessed when trying to determine if they will handle a rich mobile-customised site? I am developing a mobile website and currently doing some user agent detection to determine if the mobile device should see a fully enhanced js, jquery mobile, css view, or plain a fallback one. Here is what I currently have for my two questions, and I would like some input / suggestions on how this can

Redirect desktop users away from mobile site with .htaccess

允我心安 提交于 2019-12-01 07:10:30
问题 Hello Folks at Stackoverflow, I'm looking to redirect desktop users away from mobile site with .htaccess: I already have this code which works perfectly when a mobile user tries to access the mobile version of my website example: m.website.com. RewriteEngine On RewriteCond %{QUERY_STRING} !^desktop RewriteCond %{HTTP_USER_AGENT} "android|blackberry|googlebot-mobile|iemobile|iphone|ipod|#opera mobile|palmos|webos" [NC] RewriteRule ^$ http://m.website.com [L,R=302] However if a user types m

How can I set User-Agent and Referer headers when using ClientWebSocket in .net 4.5?

随声附和 提交于 2019-12-01 05:59:42
The obvious answer of using ClientWebSocket.SetHeader throws an exception because it's a protected header: System.ArgumentException occurred Message=The 'User-Agent' header must be modified using the appropriate property or method. Parameter name: name ParamName=name StackTrace: at System.Net.WebHeaderCollection.ThrowOnRestrictedHeader(String headerName) The exception string suggests using a property/method on the ClientWebSocket itself but I can't find any such property/method. It seems this exception was designed for the HttpWebRequest class, which actually has such property. The code, which