SLUG Mailing List Archives
Re: [SLUG] web question..
- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] web question..
- From: Jeff Waugh <jdub@xxxxxxxxxxx>
- Date: Wed Nov 8 23:10:35 2000
- User-agent: Mutt/1.2.5i
> When I have a web client hit a web page on my server... what information can
> one extract from the browser?
EVERYTHING. You can be Big Brother himself if you want to. :)
> I'd like to know where I could find a url that
> explains the variables.. as I would like to get a php3 script to grab out as
> much info from the client and log it.
Okay, do you really need php to do the logging, etc? When Apache does all
this for you, you may as well use it's logging features. Much easier. :)
If your Apache is set up sanely, you can replace the reference to your
access.log file in httpd.conf to:
CustomLog /home/jdub/public_html/stats/access.log full
So, instead of using the normal, somewhat minimal log, it will suck out
Then, you can use common statistics tools to view your logfiles nicely. The
one we use on SLUG is Webalizer, which is fairly good.
A little bird has just whispered into my ear that Analog is also good,
although I must admit, it was the pretty colours of Webalizer that clinched
the deal for me. ;)
Both have pretty good setup documentation.
> Especially if I could find out what
> url they just can from to get to the page they are at.
Analog and Webalizer will do this for you, and even give you a rundown of
the countries your viewers come from. See <URL: http://linux.conf.au/stats/>
for a more interesting look at this... See the pie chart down the bottom.
If you want a peek at the referring site in a PHP script, use the
All Free Software. ;)
-- jdub@xxxxxxxxxxx ------------------------------- http://linux.conf.au/ --
It's depressing to see such useful code wasted on such a useless