Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Identifying Mozilla as Internet Explorer

Status
Not open for further replies.

venkman

Programmer
Oct 9, 2001
467
US
Posted this in the browser forum, but figured I'd try here as well:

I'm trying to figure out how to fake out a remote web server into thinking I'm running IE instead of Mozilla.
So far I've figured out how to change the user-agent to:

Code:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)

but the website I'm checking on still figures out that I'm running "Netscape", apparently through the window.navigator.appName property. Anyone know how to change that? Here's the website I'm using to check:

Thanks,
Venkman
 
The only legitimate reason I can see for a script to check
navigator.appName is if it needed to access some property
specific to that browser's DOM.

So even if you could change the appName, it would probably
end up breaking the script somewhere else anyway.
 
ppc386 -

I understand that that's the reaons that the check exists in the script, which is found on my company's intranet site, but quite frankly, from what I've seen at this company, I don't trust the web designers enough to know what is speciffic to Mozilla or IE. My guess is that they put in some code that didn't work with Netscape 3.0 or something and then never bothered to take out the code, and that now it's something that will work fine with Mozilla. Speciffically, dynamic menus do not work when you use Mozilla, rendering the site completely not functional. My thought is that since no body took the time to make it work in Mozilla they probably haven't tested that the old code doesn't work either.

iSeriesCodePoet-

I'll give the plugin a try, but I'm very doubtful it will work since it looks like it works the same way as changing the setting in "about:config" which is what I tried previously.... but who knows until you try. Thanks for the tip.

-Venkman
 
yup, I was right, the plugin didn't work. This sight:

still reports that I'm using Mozilla, not IE.

btw, the plugin is for Firebird only, not Mozilla. I was meaning to give Firebird on Windows a try anyway, so I didn't mind having to install it.

-Venkman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top