Chrome and Safari "User Agent" Switches (NROWS)

CAC access to secure web sites for Mac OS
Post Reply
jim
Site Admin
Posts: 344
Joined: Wed Feb 23, 2011 5:10 pm

Chrome and Safari "User Agent" Switches (NROWS)

Post by jim » Tue Apr 29, 2014 10:54 am

Symptom: Safari reports an error when visiting a CAC-enabled web site.

Issue: We have noticed that a few DoD web sites filter based on the browser being used (e.g. NROWS ). This filter returns an error that causes Safari to either report that the page cannot be displayed, or in worse cases, causes Safari to crash.

Workaround: By changing the browser's User Agent, you should be able to bypass the filters. There are two ways to change the User Agent:

1) User Agent Switcher extension for Google Chrome

There is an extension for from that makes the user agent change as easy as clicking a button. It can be added to Chrome here: https://chrome.google.com/webstore/deta ... pkjnoahfmg

You can configure this plugin to automatically use a specific User Agent the next time you connect. To do this, right click on the User Agent Switcher icon, select options, click the Permanent Spoof list option, type in the URL under domain and then choose the User Agent you would like it to switch to.

2) "Develop" menu User Agent Switch in Safari

If the Chrome User Agent Switcher isn't working, you can try changing the User Agent in Safari. To change the User Agent within Safari:

- Open Safari Preferences
- Click the Advanced tab
- Enable "Show develop in the menu bar"
- Close Safari Preferences
- Click Develop on the menu bar
- Hover over User Agent
- Choose Firefox for Windows

(You may need to try several of the User Agents to find one that works.)

Now here is where things can get tricky. Safari will only change the user agent for the current active tab. Therefore, in order to log into NROWS/AROWS you will either need to use the bookmark we placed in the PKard folder, or type the address directly into the browser: https://nrows.nmci.navy.mil/nrows/secure/login.jsp
---
Jim

RickR
Posts: 2
Joined: Wed Jun 25, 2014 2:29 pm

Re: Chrome User Agent Switch (When Safari doesn't work)

Post by RickR » Wed Jun 25, 2014 2:32 pm

Hello,

I have tried all that above but still no luck. Still says this:



In order to use the NROWS System, you must use:

Microsoft Internet Explorer 6 or higher Download
Mozilla Firefox version 1.5 or higher Download

Information about your current browser:

Browser identified as:
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.16 Safari/537.36
If you are unsure why your browser is not acceptable, include the identification above in an email to the help desk.

michaelwolfe
Posts: 314
Joined: Fri Feb 17, 2012 11:49 am

Re: Chrome User Agent Switch (When Safari doesn't work)

Post by michaelwolfe » Wed Jun 25, 2014 2:38 pm

RickR,

I suggest that you quit out of Chrome, relaunch it, and make sure the user agent is set to Firefox for Windows. You can verify that the User Agent has been changed by going to whatsmyuseragent.com and it should appear like this:

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120427 Firefox/15.0a1

Here is the NROWS that you should use every time you wish you log in, and I believe you will need to use the first DOD EMAIL CA-XX in the list:

https://nrows.sscno.nmci.navy.mil/nrows ... /login.jsp

Let me know if this helps.

-Michael

RickR
Posts: 2
Joined: Wed Jun 25, 2014 2:29 pm

Re: Chrome User Agent Switch (When Safari doesn't work)

Post by RickR » Wed Jun 25, 2014 2:57 pm

Hi Michael,

This is what I get as the user when I change it to Firefox for windows:
Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

The I try the NROWS site and it says "forbidden"

michaelwolfe
Posts: 314
Joined: Fri Feb 17, 2012 11:49 am

Re: Chrome User Agent Switch (When Safari doesn't work)

Post by michaelwolfe » Mon Jun 30, 2014 8:57 am

RickR,

Were you prompted to select a certificate, and if so which did you choose? Were you prompted to type in a PIN number?

Michael

Shuntea
Posts: 1
Joined: Wed Oct 08, 2014 7:50 pm

Re: Chrome User Agent Switch (When Safari doesn't work)

Post by Shuntea » Wed Oct 08, 2014 7:58 pm

I tried everything above, but the only way I could get the site to load was with Chrome Launcher. After using CL, I then get the error message "Forbidden". There was a prompt for my cert, but not for the pin #. Please help....

Jonny
Posts: 65
Joined: Tue Jan 03, 2012 4:10 pm
Location: Arlington, TX 76018
Contact:

Re: Chrome User Agent Switch (When Safari doesn't work)

Post by Jonny » Thu Oct 09, 2014 8:24 am

Shuntea,

What site are you attempting to access?

Which certificate do you select for the site?

RobertNolt
Posts: 1
Joined: Sat Jun 06, 2015 12:26 am

Re: Chrome User Agent Switch (When Safari doesn't work)

Post by RobertNolt » Fri Jun 12, 2015 2:31 am

I emailed support a few days ago with this same problem and was directed to this forum. I'm on a Macbook pro running OS X Yosemite Version 10.10.3. Running Chrome Version 43.0.2357.124 (64-bit) with the recommended Agent Switcher Extension set to "Windows Firefox 33" (The only windows firefox option).

I followed the above link to the NROWS login/consent page, selected my email certificate when prompted (actually tried each of the three certificate options). I've tried about 8 times now, and twice it has let me see the page to enter login credentials (Username and PIN I believe) but only for a split second (literally under 1 second) before it displays the familiar "unsupported browser" screen.

Copy/Paste of the text I'm given on that page:

In order to use the NROWS System, you must use:

Microsoft Internet Explorer 6 or higher Download
Mozilla Firefox version 1.5 or higher Download

Information about your current browser:

Browser identified as:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20120101 Firefox/33.0
If you are unsure why your browser is not acceptable, include the identification above in an email to the help desk.

Any further thoughts? I really need to get into NROWS for an upcoming ADT.

Rob

jim
Site Admin
Posts: 344
Joined: Wed Feb 23, 2011 5:10 pm

Re: Chrome User Agent Switch (When Safari doesn't work)

Post by jim » Fri Jun 12, 2015 8:37 am

Rob,

If the Chrome User Agent Switcher isn't working, you could try changing the User Agent in Safari. To change the User Agent within Safari:

- Open Safari Preferences
- Click the Advanced tab
- Enable "Show develop in the menu bar"
- Close Safari Preferences
- Click Develop on the menu bar
- Hover over User Agent
- Choose Firefox for Windows

(You may need to try several of the User Agents to find one that works.)

Now here is where things can get tricky. Safari will only change the user agent for the current active tab. Therefore, in order to log into NROWS/AROWS you will either need to use the bookmark we placed in the PKard folder, or type the address directly into the browser: https://nrows.nmci.navy.mil/nrows/secure/login.jsp

Please keep in mind that this problem is caused by a restriction on the server side. I suggest contacting the NROWS helpdesk at some point and asking them to remove this restriction.

Regards,

Jim Thomas
Senior Support Specialist

Post Reply