LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > LinuxQuestions.org > LQ Suggestions & Feedback
User Name
Password
LQ Suggestions & Feedback Do you have a suggestion for this site or an idea that will make the site better? This forum is for you.
PLEASE READ THIS FORUM - Information and status updates will also be posted here.

Notices


Reply
  Search this Thread
Old 10-05-2016, 02:10 AM   #1
travis82
Member
 
Registered: Feb 2014
Distribution: Bedrock
Posts: 437

Rep: Reputation: 231Reputation: 231Reputation: 231
How does LQ detect users OS?


Of course this is not a problem.
I'm just curious to know how does LQ detect users OS?

I notice lack of consistency regarding this issue:

- Windows detected correctly regardless of browser which I use.
- Ubuntu derivatives detected just when I use firefox to access LQ.
- Slackware and Debian aren't detected at all and tux head is shown as my OS in my posts.
- When I use my old Nokia 6120 to visit LQ by opera mini, a question mark is appeared in my posts.
 
Old 10-05-2016, 04:48 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,481

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Most likely detection is based on the browser "User Agent String" - http://www.useragentstring.com/

If you've a browser that supports modifying / deleting the User Agent String then you can play with it and see
 
Old 10-05-2016, 05:50 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,614
Blog Entries: 19

Rep: Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460
Using Firefox under Crux, I see the penguin's head (unspecified Linux). With Firefox under LFS, I often get a question mark (unknown OS). It seems to depend on what I was using when I made the post, not what I am currently using.

Last edited by hazel; 10-05-2016 at 05:51 AM.
 
Old 10-05-2016, 09:35 AM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
This has been covered in depth in the past, and it is indeed User-Agent at the time of each post that it used.

--jeremy
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tbl Users.guide | troff tmac.n - > Users.fmtd causes fatal error. stf92 Linux - Newbie 0 07-05-2010 07:03 PM
Anyone knows where to find the fw-detect command ? (for firmware/wireless detect) frenchn00b Debian 5 01-13-2010 05:53 AM
detect and limit ssh tunnel users allancuntapay Linux - Security 3 10-21-2009 01:50 AM
LXer: Linux Users Still Left Out, Why Source Code Matters to End Users LXer Syndicated Linux News 0 10-15-2009 10:51 PM
How to detect samba users when trying to shutdown linux server Darick Ang Linux - Networking 2 07-14-2003 03:37 PM

LinuxQuestions.org > Forums > LinuxQuestions.org > LQ Suggestions & Feedback

All times are GMT -5. The time now is 11:08 AM.

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