Re: User-Agent

From: Chris Faulhaber (jedgar@fxp.org)
Date: 04/26/01


Date: Thu, 26 Apr 2001 07:41:17 -0400
From: Chris Faulhaber <jedgar@fxp.org>
To: Rocco Lucia <rlucia@iscanet.com>


On Thu, Apr 26, 2001 at 12:41:03PM +0200, Rocco Lucia wrote:
> At 7:33 -0300 26-04-2001, ignacio wrote:
> >When netscape connects to a http server,
> >it's sends something like this:
> >
> >
> > GET / HTTP/1.0
> > Connection: Keep-Alive
> > User-Agent: Mozilla/4.73 [en] (X11; I; FreeBSD 4.3-RC i386)
> >
> >And when you send a mail, in the headers you can see:
> >
> > X-Mailer: Mozilla 4.73 [en] (X11; I; FreeBSD 4.3-RC i386)
> >
> >
> >So, 2 questions:
> >
> >1) How netscape gets info from the O.S. and version (uname perhaps?)
>
> it is hardwired at compile time
>

Nope. If you use the Linux version of Netscape, you can change the
string to read what you want using sysctl values (sysctl -a | grep linux)
allowing you to use versions like:

"Mozilla/4.76 [en] (X11; U; Linux 3.1.33.7 i386)"

or

"Mozilla/4.76 [en] (X11; U; FreeBSD 6.3-STABLE i386)"

beware: other Linux programs (like vmware) depend on this version
information and may not run with odd values.

-- 
Chris D. Faulhaber - jedgar@fxp.org - jedgar@FreeBSD.org
--------------------------------------------------------
FreeBSD: The Power To Serve   -   http://www.FreeBSD.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Relevant Pages

  • Re: Which Linux?
    ... I knew you were into Linux, but I had no idea that you hung out here. ... kind of basic install and experimentation. ... until I doubled the RAM to 16MB. ... you could run Netscape 4.x. ...
    (alt.os.linux)
  • Re: Is Linux even usable at this point in time?
    ... >>Linux boxes I don't have anywhere near the hassles with that crap. ... Even VMS running Netscape 3.0 can access online ... >say that who cares? ... >I could care less what browser they cater to because I can always run IE ...
    (alt.os.linux)
  • Upgrading My Web Browsers
    ... learning so much about Linux. ... Mandrake 9.2 with KDE 3.1.3 (Galeon, Konqueror, Opera and Netscape). ... Gig Windows drive and 60 Gig Linux drive). ... the option of two versions (with or without Java) with the Java adding ...
    (alt.os.linux)
  • Netscape7.1 & Java plugin (Linux) ?
    ... FreeBSD 4.8-R systems. ... Except for one thing -- we haven't been able to get Java plugin ... Netscape starts without complaint. ... Same response with Mozilla 1.5 for Linux. ...
    (freebsd-questions)
  • Re: Mail viewing program and web page editor
    ... >> to the mail server and see what is there. ... >> Netscape Composer was pretty good and I tried to install it last night ... Linux yet maybe you could make a few comments. ... It is a Debian version of Linux and runs Kernel 2.2. ...
    (alt.linux)