Redirection per user agent string.

Hi folks,
I'm looking to redirect older IE clients away from a new SharePoint 2013 installation based on the user agent string. The redirect needs to only affect the home page as we still expect to allow direct URLs to content such as policy documents through.
The only way I know of to do this is to add a brief piece of server-side code into the home.aspx that assesses the user agent string but I'm wondering if within SharePoint 2013 there's a better way to manage the redirection of specific browser versions?
(Specifically any version of IE prior to version 9)
Cheers,
Lain

Below script should help you 
http://stackoverflow.com/questions/10869708/how-do-i-redirect-my-client-to-a-different-page-according-to-their-browser
<script language="JavaScript" type="text/JavaScript">
if(navigator.appName == "Mozilla")
window.location = "ff/index.html"
if(navigator.appName == "Microsoft Internet Explorer")
window.location = "ie/index.html"
if(navigator.appName == "Google Chrome")
window.location = "ch/index.html"
if(navigator.appName == "Safari")
window.location = "sa/index.html"
if(navigator.appName == "Google Chrome")
window.location = "ch/index.html"
window.location == "un/index.html"
</script>
Or
var redirects = {
"Mozilla": "ff",
"Microsoft Internet Explorer": "ie",
"Google Chrome": "ch",
"Safari": "sa",
"Google Chrome": "ch"
window.location = (redirects[navigator.appName] || "un") + "/index.html";For IE<!--[if IE]><p>You are using Internet Explorer.</p><![endif]-->
<![if !IE]><p>You are not using Internet Explorer.</p><![endif]>
<!--[if IE 7]><p>Welcome to Internet Explorer 7!</p><![endif]-->
<!--[if !(IE 7)]><p>You are not using version 7.</p><![endif]-->
<!--[if gte IE 7]><p>You are using IE 7 or greater.</p><![endif]-->
<!--[if (IE 5)]><p>You are using IE 5 (any version).</p><![endif]-->
<!--[if (gte IE 5.5)&(lt IE 7)]><p>You are using IE 5.5 or IE 6.</p><![endif]-->
<!--[if lt IE 5.5]><p>Please upgrade your version of Internet Explorer.</p><![endif]-->
<!--[if true]>You are using an <em>uplevel</em> browser.<![endif]-->
<![if false]>You are using a <em>downlevel</em> browser.<![endif]>
<!--[if true]><![if IE 7]><p>This nested comment is displayed in IE 7.</p><![endif]><![endif]-->
If this helped you resolve your issue, please mark it Answered

Similar Messages

  • Configuration issue in IE as Document mode: 10 and User agent String: Internet Explorer 8

    Hi,
    I have a telerik rad popup window performing some input operation. The problem is when I use the configuration in IE as Document mode: 10 and User
    agent String: Internet Explorer 8, scroll bars appear in the window from nowhere. It is working fine with every other configuration of IE. I've also used a separate stylesheet for IE 8 but it won't apply in this case. 
    Here are the screen shots of the window.
    Actual view
    With Scorllbar
    Please if anybody could suggest a solution for this weird problem it would be a great help.
    Thanks in advance.
    Neelesh

    Hi,
    It seems we need to talk with the site developers to determine how the sheet would display with different IE user agent string.
    Regarding the user agent string changes, please take a check with the following article:
    Introducing IE9’s User Agent String
    The Internet Explorer 8 User-Agent String (Updated Edition)
    Hope this may help
    Best regards
    Michael Shao
    TechNet Community Support

  • Creative Cloud User Agent String spoofing old Chrome Browser?

    Was troubleshooting Creative Cloud not working on our network and noticed it is spoofing an old Chrome browser User Agent String.
    When Creative Cloud launches it presents itself as: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.68 Safari/537.22
    This is the user agent string of Google Chrome version 25 (Chrome is currently at version 32)
    Looking for any information on why Creative Cloud is using an old Chrome user agent string, and why can't it use a unique user agent?

    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • Bad http.agent in Java properties : a bug in the HTTP user-agent string?

    Hi all,
    Me :
    I'm patching AWSTATS (web log analyzer tool) in order to recognize which Java version has
    been used to download files.
    Context of the problem :
    Each time a Java program (or applet) is downloading a file (for example .class, .png, .html)
    from a web server, a line will be added in the web server log file. If the web server is well
    configured, the user agent used to download the file will be at the end of the line in the log file.
    For Sun Java JVM, the user agent string is configured in the Java properties under "http.agent".
    Usually, the user-agent string contains the word "Java" and the virtual machine version. In most
    cases, this is just a string like "Java/1.4.2", so this is relatively easy to parse.
    Problem :
    Looking in my web server stats, and then on the web, I found that a JVM's user-agent is
    "Mozilla/4.0 (Windows XP 5.1)", which obviously does not contains the word "Java".
    Consequently, it is difficult to say that this user-agent string belongs to a JVM.
    Further look in my log files and on google shows that this http.agent string appears
    on Microsoft Internet Explorer (it seems MSIE 6.0) over Windows XP with the J2RE plugin:
    http://board.gulli.com/thread/300321
    http://forum.java.sun.com/thread.jsp?thread=531295&forum=30&message=2559523
    http://forum.java.sun.com/thread.jsp?forum=63&thread=132769&start=210&range=15&tstart=0&trange=15
    http://forum.java.sun.com/thread.jsp?forum=32&thread=480899
    http://www.goodidea.ru/setupJava/javaInstall.htm
    The J2RE plugin version does not seems to play a role as this user-agent string has
    been seen on 1.4.1_02-b06, 1.4.2_01, 1.4.2_03 and 1.4.2_04-b05.
    Further information requested :
    I would like to know:
    1) if you have reported the same problem;
    2) if there is some rules for the http.agent property;
    3) if this is a bug.
    Thank you very much, and feel free to add you opinion.
    Julien

    The web log files where the "Mozilla/4.0 (Windows XP 5.1)" user-agent appears can be displayed using the following search terms on google :
    "Mozilla/4.0 (Windows XP 5.1)" -"(Windows XP 5.1) Java"
    http://www.google.ch/search?hl=fr&ie=UTF-8&q=%22Mozilla%2F4.0+%28Windows+XP+5.1%29%22+-%22%28Windows+XP+5.1%29+Java%22&btnG=Rechercher&meta=
    Julien

  • User Agent Strings for Office 365 Install and Updates

    In my organization, we restrict internet access to a specific list of approved applications by user agent string; however, it seems the user agent string for Office 365 (2013) applications has changed over time causing installs and updates of Office 365
    on client PCs to fail.
    Is there a repository of user agent strings used by Office 365 applications?
    Thanks in advance.

    Hi,
    Please refer to this link:
    http://technet.microsoft.com/en-us/library/jj219420.aspx
    As mentioned under Ports, protocols and URLs used by Click-to-Run, 
    Download, installation from the portal
    Automatic updates
    TCP
    80
    http://officecdn.microsoft.com
    I hope this helps.
    Regards,
    Melon Chen
    TechNet Community Support

  • Setting default user agent string

    Hi,
    Anyone know how or if I can set the default user agent string in Safari? I know this can be done on the Mac by editing the com.apple.safari.plist file but it doesn't seem for Windows? I want to set this user agent string for testing purposes.

    Hi,
    Anyone know how or if I can set the default user agent string in Safari? I know this can be done on the Mac by editing the com.apple.safari.plist file but it doesn't seem for Windows? I want to set this user agent string for testing purposes.

  • How to append the User Agent String in IE11

    We use "Internet Explorer maintenance" GPO to append the standard User Agent String for IE9 with "ADFSIntAuth". "Internet Explorer maintenance" is deprecated and will not work anymore for IE11 and later.
    Now we want to move to IE11 and I can't find a solution to append the User Agent String. With GPO this isn't possible anymore (Why Microsoft?). And the registry keys I've tested won't do the job. I've tested 
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent\Post Platform
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\User Agent
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\User Agent\Post Platform
    So whats is the best way to append the user agent string for IE11?
    http://social.technet.microsoft.com/Forums/en-US/cdc999aa-faec-4aa5-9025-f12a524794f0/ie10-user-agent-string?forum=winserverGP didn't help.

    Thank you for the Reply Roger.
    I have already read the website you are referring to, but it doesn't say how to append the User Agent String.
    Only this:
    "Earlier versions of the browser included
    Pre-Platform and Post-platform registry value tokens in the user-agent string. However, this led to
    performance issues for customers of certain tools and add-ons. As a result, these tokens are now reported only through the
    navigator.userAgent property"
    With a dead link to the article "navigator.userAgent", but with a search I came to this article: http://msdn.microsoft.com/en-us/library/ie/ms534712(v=vs.85).aspx But also this article won't say how to append the User Agent String for all
    clients in a corporate environment.

  • [svn:bz-trunk] 10020: Had previously updated user-agent string for Opera 10 in resources/config/ services-config.xml on DataServices/trunk.

    Revision: 10020
    Author:   [email protected]
    Date:     2009-09-04 07:35:51 -0700 (Fri, 04 Sep 2009)
    Log Message:
    Had previously updated user-agent string for Opera 10 in resources/config/services-config.xml on DataServices/trunk. Forgot to do this for the file on BlazeDS/trunk.
    Modified Paths:
        blazeds/trunk/resources/config/services-config.xml

    Revision: 10020
    Author:   [email protected]
    Date:     2009-09-04 07:35:51 -0700 (Fri, 04 Sep 2009)
    Log Message:
    Had previously updated user-agent string for Opera 10 in resources/config/services-config.xml on DataServices/trunk. Forgot to do this for the file on BlazeDS/trunk.
    Modified Paths:
        blazeds/trunk/resources/config/services-config.xml

  • My Intel Mac has a User Agent String that is Reading it as a Power PC (PPC)

    Hi. I am hoping someone might be able to help me with an unusual situation. I have been trying to watch online streaming of the Olympics with my MacBook Pro (2.2 Ghz Intel Core 2 Duo). I have updated my browsers to the newest versions and have installed the newest Silverlight from Microsoft in order to ensure compatibility with the nbcolympics.com website. Even so, when I try to get onto the video section, it tells me I have browser or system incompatibilities. I corresponded with the tech person on the olympics website and he looked at my user agent string which (with firefox) reads as follows: "Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1" I do not have a PPC mac, it is an Intel Mac. Because the olympics website reads it as a powerpc I cannot get onto the video section. Does anyone know what's happening? Ive searched user forums throughout the internet and have not found an answer. Thanks for any help or direction.

    Hi mfwoodwin, and a warm welcome to the forums!
    Many Applications are still PPC & run under Rosetta...
    http://en.wikipedia.org/wiki/Rosetta_(software)
    Some APPs can be chosen to run in PPC or Intel, quit them All, do a Get Info on say FireFox, see if it has a "Use Roseeta" check box, (not on an IntelMac at the moment to see what it is actually called).

  • Where is the user agent string located for Firefox 4? In the previous versions, it was in the Help-About menu.

    Just curious on the location of the user agent string for Firefox 4. I don't want to edit or change it, I just want to view it. In previous versions of Firefox, it was in the Help-About menu. It doesn't appear to be located in this spot for Firefox 4.
    Any assistance would be greatly appreciated.
    Thanks!

    '''about:support''' = Help > Troubleshooting Information

  • Is there a difference for user agent string for firefox desktop & firefox mobile?

    Is there a difference for user agent string for firefox desktop & firefox mobile?

    Yes. All versions of mobile Firefox have "Fennec" in the useragent string. For example:
    Mozilla/5.0 (Android; Linux armv7l; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 Fennec/2.0.1
    For more details and examples, please see this article:
    http://hacks.mozilla.org/2010/09/final-user-agent-string-for-firefox-4/

  • Internet Explorer 11 - Emulation Document Mode and User Agent String Drop Down Menu Blank

    Hey
    I have a user who has a problem with Internet Explorer 11 where when you go to emulation mode using F12, the Document Mode and User Agent String Drop Down Menu are both blank. On our internal website its works correctly but on all other external websites
    they are both blank.
    I have had a look at the link below but this did not help as it would not recreate some of the registry keys.
    http://answers.microsoft.com/en-us/ie/forum/ie11-iewindows8_1/document-mode-and-user-agent-string-dropdowns/cd34d5f8-7839-4083-af55-05d49ba85190?rtAction=1387560713451
    Charlie

    Hi,
    Please include links to any websites that you are having issues with your questions.
    There are some known reasons why the documentMode dropdown appears blank...
    not all websites though should have the conditions for this.
    f12>Console tab, refresh the page to show suppressed error messages and warnings... (documentMode x-ua toggling is listed)...
    IE11 includes improvements for XSS... to link to internet sites from your intranets you need to add those sites (If you really, really trust them) to the Trusted Sites list.
    the developer console will list blocked xss requests.
    by default IE11 runs in EPM.... in the Internet Zone, while it is not switched on for the intranet zone....
    EPM only allows 64 bit Addons and ActiveX controls to run in the context of an IE tab...
    so its highly likely that one of your Addons is causing the issue.
    the first step in troubleshooting IE issues is to test in noAddons mode.
    Regards.
    Rob^_^

  • Change chromium user agent string

    i edit some websites for school, and unfortunately, the cms software requires internet explorer 6/7. i'm looking to try changing the chromium user agent string to see if i can edit the pages in chromium.
    i've tried the '--user-agent=' switch, but it doesn't seem to work. running
    javascript:alert(navigator.userAgent)
    still shows the usual chromium user agent string.
    is there another way to change the user agent string?
    or better: do you have any suggestions for getting around the cms browser issue? i'm trying to avoid more complicated solutions like running a vm, wine, dual booting with windows, etc.
    thanks.
    Last edited by anti-destin (2011-07-18 08:39:42)

    <whistles_innocently>
    http://www.ie6countdown.com/
    </whistles_innocently>
    I am not a user agent switching guru, but '--user-agent=' seems to work with http://whatsmyuseragent.com/
    Edit:
    javascript:alert(navigator.userAgent)
    (there's a colon between 'javascript' and 'alert')
    works too, e.g.
    chromium --user-agent="MSIE 6.1"
    shows a box with 'MSIE 6.1'.
    Last edited by karol (2011-07-17 21:47:01)

  • IE11 browser difference between "Default" and "Internet Explorer 11" user agent string

    I installed IE11 in my machine .And also we migrating all our developed application (ASP .Net/ VS 2010) to work in IE11 .
    But when i open (Developer tool (F12) -> Emulation) In that ,
    While selecting "User agent string" i two different option
    Default
    Internet Explorer 11
    Actually what difference between this two user agent string and too i am working in .Net
    And i select "IE11" as a user agent option , most of my application working flawless (design) but if i select "Default" throwing lot of design oriented bugs.
    Is there setting to be made in .Net framework or anything else
    Because it should work in both "Default" and "IE11" user agent string

    Hello kumaran_Arun,
    Please try to reset Internet Explorer and check if the issue still exists.
    http://windows.microsoft.com/en-hk/internet-explorer/reset-ie-settings#ie=ie-11
    If this issue is related to Internet Explorer web development, to receive better support, it is recommended to post in the MSDN forum.
    The professionals there will be glad to help you.
    https://social.msdn.microsoft.com/Forums/ie/en-US/home?category=iedevelopment
    Thanks for your understanding.
    Best regards,
    Fangzhou CHEN
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Mobile RD Clients - User-Agent string

    Anyone happen to know what, if any, user-agent string the RD client for Android (and\or IOS) is using when connecting via an RD Gateway?
    The Windows RD client uses "MS-RDGateway/1.0" but it appears that the Android client (at least) does not, and I can't for the life of me get a packet capture to decrypt the traffic.
    Thanks

    Got this one sorted - looks like internal RemoteAppAndDesktop connections connect via 3389 through the RDGateway.
    Here's what I ended up with: http://blogs.serioustek.net/post/2014/10/04/load-balancing-remote-desktop-gateway-with-citrix-netscaler-part-2.aspx 

Maybe you are looking for

  • Elapsed time went up from 1min to 22min after migrating from 10g to 11g

    I just migrated one of my database from 10.2.0.2(Red hat Linux, 2 node RAC, sga= 1Gb) to 11.2.0.1 (red Hat Linux 2 Node RAC, SGA=7GB) The timing for one of the specific query shoot up from 1min to 22 min. Following is the query: SELECT /*+ gather_pla

  • How to make SSIS Read an Excel File?

    I've been trying for a while now (won't say how long), to get BIDS to read a very simple Excel file.  I'm talking SIMPLE!!  No matter what I don, SSIS keeps throwing an error, and of course it doesn't say what the error is, so I can't really debug it

  • Widescreen Display through VGA

    Hi everyone! Ok, got a new monitor today (Samsung SyncMaster B2230) and linked it upto my iMac (Late 2009 running 10.6.6) and all of the resolutions that it is offering are ins 4:3, not 16:9 (native res of the monitor is 1920x1080). Tried installing

  • Create Folder according to file names

    Hello, I've been trying to do something "I thought" would have been very simple to do with Automator but with no success so far. Work required: I have a single folder (let's call it Root) that contains a lot of files (note there are only files, no su

  • How do I resolve Dialog opens with Adobe Premiere Elements.exe – no disk

    i purchased Adobe Photoshop and Premiere Elements 13 and s/n. I have a desktop running win 7. I installed Photoshop and Premiere Elements as a trial and entered s/n's as required. I can open Photoshop without problem. Whenever I try to open Premiere