LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-14-2005, 09:40 PM   #1
SirAeryn
LQ Newbie
 
Registered: Sep 2005
Location: Port Hedland, Western Australia
Distribution: Fedora Core 4
Posts: 18

Rep: Reputation: 0
Firefox - specify platform - Linux not allowed


My internet banking site does not recognise linux as a valid platform.

I've looked through their Javascript code and found that they allow navigator.platform to be only Windows or Mac.

Changing the useragent through about:config in Firefox does not affect the value of the platform returned - it still says Linux.

Is there a setting to override the value of Platform that is returned to the javascript?

Want to try it out: www.hsbc.com.au and click on the link for Internet Banking in the menu on the right.
 
Old 09-14-2005, 09:46 PM   #2
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Disable Javascript?

Personally, I'd find a new bank, but that's just my opinion...
 
Old 09-14-2005, 09:55 PM   #3
SirAeryn
LQ Newbie
 
Registered: Sep 2005
Location: Port Hedland, Western Australia
Distribution: Fedora Core 4
Posts: 18

Original Poster
Rep: Reputation: 0
Javascript is required... you get nowhere without it.
Would be a pain to change banks, and no guarentee that another bank would support it. And besides, they have a really good interest rate.
 
Old 09-14-2005, 10:45 PM   #4
SirAeryn
LQ Newbie
 
Registered: Sep 2005
Location: Port Hedland, Western Australia
Distribution: Fedora Core 4
Posts: 18

Original Poster
Rep: Reputation: 0
Found a tweak for Firefox

added a string for general.platform.override = Win32

I complained to the bank anyway, but at least I can get in now!
 
Old 09-14-2005, 10:52 PM   #5
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,852
Blog Entries: 28

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
The User Switcher Agent extension works. Following the above link I was able to get to the login screen.(not having an account as far as I can go).

User Agent Switcher Extension on chrispederick.com
 
Old 09-15-2005, 12:04 AM   #6
blastradius
Member
 
Registered: Oct 2004
Location: Cheshire, England
Distribution: Debian Stable
Posts: 269

Rep: Reputation: 39
Re: Firefox - specify platform - Linux not allowed


I'm amazed. First off, i don't think it's a javascript problem, reason being, i bank with HSBC in the UK and have absolutely no problem with online banking, when i clicked your link though i got the same error as you.

Why this is i don't know, you'll have to ask the bank. Sorry i don't have an answer for you.

Last edited by blastradius; 09-15-2005 at 12:06 AM.
 
Old 09-15-2005, 12:17 AM   #7
SirAeryn
LQ Newbie
 
Registered: Sep 2005
Location: Port Hedland, Western Australia
Distribution: Fedora Core 4
Posts: 18

Original Poster
Rep: Reputation: 0
Maybe it's just the Australian website then. I looked at the source of the login page. It contains the following javascript... There's no room for anything other than Windows or Mac.


function getPlatform() {
if (navigator.platform.indexOf("Win") > -1 ) return "Win";
if (navigator.platform.indexOf("Mac") > -1 ) return "Mac";
return "neither";
}
function isValidVersionNS(VersionNo)
{
var browserVersion = navigator.appVersion;
var platform = getPlatform();
//Netscape Communicator checking below
if (DoubleByteSupport == true)
{
if ( (platform == "Win") && ( browserVersion.indexOf("Nav") == -1 ) && (parseFloat(VersionNo) >= 4.72) && (parseFloat(VersionNo) < 6.0) )
{return true;}
}
else {
if ( (platform == "Win") && ( browserVersion.indexOf("Nav") == -1 ) && (parseFloat(VersionNo) >= 4.5) && (parseFloat(VersionNo) < 6.0) )
{return true;}
}


if ( (platform == "Mac") && (parseFloat(VersionNo) >= 4.0) && (parseFloat(VersionNo) < 6.0) )
{return true;}

return false;
}
function isValidVersionIE(VersionNo)
{
.
.
.
similar to Netscape checking above
 
Old 09-15-2005, 12:49 AM   #8
blastradius
Member
 
Registered: Oct 2004
Location: Cheshire, England
Distribution: Debian Stable
Posts: 269

Rep: Reputation: 39
Have a look at hsbc.co.uk and see if you can spot a difference. Seems very strange that the site differs country to country!

P.S.

Great Ashes series, don't you agree?
 
Old 09-15-2005, 11:12 PM   #9
mipsv
LQ Newbie
 
Registered: Jan 2005
Location: Boston, MA
Distribution: GNU, Redhat
Posts: 7

Rep: Reputation: 0
Unless they made some changes I think you have the older javascript lib. Use the builtin software update checking button (tools -> options) and that should do it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Method Not Allowed: The requested method POST is not allowed for the URL /writedhcp.p WiWa Linux - Networking 15 01-06-2011 01:20 PM
Firefox doesn't open popups even when explitly allowed JustMe77 Linux - Software 1 10-16-2005 05:28 PM
Linux Host no Root login allowed or so it says? Other Linux Distros? mattnedgus Linux - Newbie 6 02-24-2005 03:22 PM
How can i send message from Linux platform to Windows platform linuxeagle Linux - Networking 1 02-17-2004 12:35 AM
only linux to linux server SSH allowed?! etegration Linux - Software 17 02-05-2004 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration