LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-15-2010, 08:21 PM   #1
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
How does browser identify the OS?


Starting here on the assumption that this is a browser function.

Firefox 3.5.3 on ArchLinux

I just tried downloading a free trial of Acrobat 9 to see if I can get it going on CrossOver. The Adobe site will not download because it sees I am not using Windows.

I searched in the detailed about:config file and found nothing that looked relevant.

So: How does FF (or any broswer) tell a site what OS is being used?
 
Old 01-15-2010, 08:25 PM   #2
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
It's a JavaScript call, you can use Opera of Konqueror, they have some spoofing options.
 
Old 01-15-2010, 08:27 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Original Poster
Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
OK--now I'm interested: JavaScript call to what?

(I will try the other browsers...)
 
Old 01-15-2010, 08:45 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
I'm confused. And, back on topic: I thought that this was where all that user-agent junk came into play.. For stuff like this? And, FF has the same spoofing options as other browsers, doesn't it?
 
Old 01-15-2010, 09:16 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
As far as I know, the various browser-builds for the various OS types simply specify the OS-identification string that they are to present to anyone who asks.

The source-code of a major piece of software (such as a web browser) is designed in such a way that various parts of the source-code will or will not be included, depending on various build-time options that have been selected (including "the type of OS that this is being built for"). Through mechanisms such as these, the appropriate OS-identifier is constructed at compile time.

A site such as Adobe's can look at the browser identification string (which is presented as part of the HTTP header) to base its decision.

There's a twist, of course: many browsers (such as Konqueror or Opera) allow you to specify the string that will be sent to the host. You can, for example, "pretend to be Internet Explorer running on a Windows box." The host has no way to know that you are lying.

Last edited by sundialsvcs; 01-15-2010 at 09:18 PM.
 
Old 01-15-2010, 09:20 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Set the user agent string to whatever you like: most decent browsers let you.

Evo2.
 
Old 01-15-2010, 09:23 PM   #7
cantab
Member
 
Registered: Oct 2009
Location: England
Distribution: Kubuntu, Ubuntu, Debian, Proxmox.
Posts: 553

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by pixellany View Post
So: How does FF (or any broswer) tell a site what OS is being used?

The browser has a string called the 'User Agent'. This can be read by javascript, or by code on the server.
It's generally possible to configure the User Agent string - you can make the browser 'lie' about its identity. For Firefox, you will want an extension, "User Agent Switcher" to do this.
 
Old 01-15-2010, 09:39 PM   #8
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,886
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Its in the user.agent
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7

The User Agent Switcher extension for Firefox lets you change it to whatever.
https://addons.mozilla.org/en-US/firefox/addon/59
 
Old 01-16-2010, 05:26 AM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Original Poster
Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Thanks--everyone!!

Somehow I had thought you could do this with about:config... Now I have the plug-in and it seems to do the trick.
 
  


Reply



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
How to read "identify" button press event, or state of "identify" blue led with IPMI? iav Linux - Server 0 01-27-2009 01:13 PM
Identify the following items Evelyne Programming 8 11-02-2007 03:33 AM
browser plugin for Konqueror web browser (linspire) Tracianddwayne Linux - Newbie 1 01-01-2005 02:15 PM
A Question on Browser Sessions, and Browser Windows: opioid Programming 1 09-23-2004 02:53 PM
gaim browser / default browser question hildog Linux - Newbie 2 10-03-2003 09:17 AM

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

All times are GMT -5. The time now is 11:38 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