Re: [SLE] Browser identification
Ben Rosenberg
If you so choose to do this then you can vi a file called user.js and put it in in ~/.mozilla/<username>/<weird directory>/
This will over rule the default user agent string for Mozilla. And yes it does work. When MS locked out browsers to MSN I used this to prove to my office mate that people are just plain stupid and nothing is fool proof.
-- user_pref("general.useragent.override", "Mozilla/5.0 (compatible; MSIE 5.5; Windows NT 5.0)"); --
I've done it in both Mozilla and Netscape 6.2.1. It changes the identification but the problem seems to be somewhere else. I've managed to download the page source code. It contains the following definitions: <script language="JavaScript"> var ns = (document.layers)? true:false var ie = (document.all)? true:false The code then uses these variables, e.g.: function init_page(){ if (ns){ document.antal.top=ypos_antal; document.tabhead.top=ypos_tabhead; document.betalningar.top=ypos_betalningar; document.totalt.top=ypos_totalt; document.slut.top=ypos_slut; form1_pointer = document.main.document.form1 form2_pointer = document.slut.document.form2 } if (ie){ form1_pointer = main.document.form1 form2_pointer = slut.document.form2 } initForm(); } All attempts pretending I use MSIE have failed so I've concentrated on going in the "ns" branch. But it seems that neither Opera in Netscape mode nor Netscape 6.2.1 actually set ns=true because I receive messages Error: form1_pointer is not defined I've spent 3 hours trying to access my account with no result. I'm giving up. Perhaps, if I had known JavaScript I would have been more successful. -- Alexandr.Malusek@imv.liu.se
You did not include the javascript which set 'ns' or 'ie'. There is a very strong possibility
that they are using a method which is only supported in IE (that is, one which is not
standards compliant). This is possible, although only done by people who are either too
dumb to write good html (java script) or those who are writing to force people to use IE
(dumber yet).
Jim
01/02/02 07:09:28 PM, Alexandr Malusek
Ben Rosenberg
writes: If you so choose to do this then you can vi a file called user.js and put it in in ~/.mozilla/<username>/<weird directory>/
This will over rule the default user agent string for Mozilla. And yes it does work. When MS locked out browsers to MSN I used this to prove to my office mate that people are just plain stupid and nothing is fool proof.
-- user_pref("general.useragent.override", "Mozilla/5.0 (compatible; MSIE 5.5; Windows NT 5.0)"); --
I've done it in both Mozilla and Netscape 6.2.1. It changes the identification but the problem seems to be somewhere else.
I've managed to download the page source code. It contains the following definitions:
<script language="JavaScript">
var ns = (document.layers)? true:false var ie = (document.all)? true:false
The code then uses these variables, e.g.:
function init_page(){
if (ns){
document.antal.top=ypos_antal; document.tabhead.top=ypos_tabhead; document.betalningar.top=ypos_betalningar; document.totalt.top=ypos_totalt; document.slut.top=ypos_slut;
form1_pointer = document.main.document.form1 form2_pointer = document.slut.document.form2 } if (ie){ form1_pointer = main.document.form1 form2_pointer = slut.document.form2 } initForm(); }
All attempts pretending I use MSIE have failed so I've concentrated on going in the "ns" branch. But it seems that neither Opera in Netscape mode nor Netscape 6.2.1 actually set ns=true because I receive messages
Error: form1_pointer is not defined
I've spent 3 hours trying to access my account with no result. I'm giving up. Perhaps, if I had known JavaScript I would have been more successful.
-- Alexandr.Malusek@imv.liu.se
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
On Thursday 03 January 2002 02.23, James Bliss wrote:
You did not include the javascript which set 'ns' or 'ie'.
01/02/02 07:09:28 PM, Alexandr Malusek
wrote: <script language="JavaScript">
var ns = (document.layers)? true:false var ie = (document.all)? true:false
So it was included. However, a browser like mozilla, that tries to be compatible with both netscape's and IE's object model could perhaps produce - hm - interesting results with a test like the above. //Anders
Ben Rosenberg
writes: If you so choose to do this then you can vi a file called user.js and put it in in ~/.mozilla/<username>/<weird directory>/
This will over rule the default user agent string for Mozilla. And yes it does work. When MS locked out browsers to MSN I used this to prove to my office mate that people are just plain stupid and nothing is fool proof.
-- user_pref("general.useragent.override", "Mozilla/5.0 (compatible; MSIE 5.5; Windows NT 5.0)"); --
I've done it in both Mozilla and Netscape 6.2.1. It changes the identification but the problem seems to be somewhere else.
I've managed to download the page source code. It contains the following definitions:
<script language="JavaScript">
var ns = (document.layers)? true:false var ie = (document.all)? true:false
The code then uses these variables, e.g.:
function init_page(){
if (ns){
document.antal.top=ypos_antal; document.tabhead.top=ypos_tabhead; document.betalningar.top=ypos_betalningar; document.totalt.top=ypos_totalt; document.slut.top=ypos_slut;
form1_pointer = document.main.document.form1
document.slut.document.form2 } if (ie){ form1_pointer = main.document.form1
Just on a slight side issue, it may well be worth checking at some of the security sites to see what information is leaking out of your machine. Don't have any links to hand, perhaps others here do. Regards, David On 03 Jan 2002 02:09:28 +0100, Alexandr Malusek wrote: form2_pointer = form2_pointer =
slut.document.form2 } initForm(); }
All attempts pretending I use MSIE have failed so I've concentrated on going in the "ns" branch. But it seems that neither Opera in Netscape mode nor Netscape 6.2.1 actually set ns=true because I receive messages
Error: form1_pointer is not defined
I've spent 3 hours trying to access my account with no result. I'm giving up. Perhaps, if I had known JavaScript I would have been more successful.
-- Alexandr.Malusek@imv.liu.se
On Wednesday 02 January 2002 08:09 pm, Alexandr Malusek wrote:
Ben Rosenberg
writes: This will over rule the default user agent string for Mozilla. And yes [...] I've managed to download the page source code. It contains the following definitions:
<script language="JavaScript">
var ns = (document.layers)? true:false var ie = (document.all)? true:false
Ugh. Instead of checking the user agent they check to see what propritary extentions are available, IE's or NS4's. Pages like this can't work with NS6, Mozilla, and other browsers because they are standards complient so they neither have NS4's layers nor IE's document.all. The Linux answer for this is to run Netscape 4 for this webpage, if you have a strong stomach. ;-) Also try running with javascript turned off with your favorite browser, sometimes that helps...
participants (5)
-
Alexandr Malusek
-
Anders Johansson
-
David
-
James Bliss
-
Joshua Lee