Re: [SLUG] web question..

2000-11-08 Thread Jeff Waugh



> 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
everything.

Then, you can use common statistics tools to view your logfiles nicely. The
one we use on SLUG is Webalizer, which is fairly good.

http://slug.org.au/stats/>

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 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
$HTTP_REFERRER variable.


All Free Software. ;)

- Jeff


-- [EMAIL PROTECTED] --- http://linux.conf.au/ --

  It's depressing to see such useful code wasted on such a useless  
  license.  


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] web question..

2000-11-08 Thread Terry Collins

Crossfire wrote:
> 
> Why use a PHP3 script when Apache can log it for you?
> 
> The most useful information you can get about the browser is the User-Agent
> string, which identifies which browser is viewing the page.

Hmm, dependent solely on a set string which for Nutscape on Linux says
Macintosh {:-).


--
   Terry Collins {:-)}}} Ph(02) 4627 2186 Fax(02) 4628 7861  
   email: [EMAIL PROTECTED]  www: http://www.woa.com.au  
   WOA Computer Services 

 "People without trees are like fish without clean water"


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] web question..

2000-11-08 Thread Michael

Thanks for the info ppl. I have since got what I needed. I remember seeing
that phpinfo stuff somewhere in a doc. Great to have someone jog my memory.

I needed it, as squidGuard is redirecting proxy denied clients to a webpage,
but I want this webpage to email admin or even log the information the
client was trying to access. As squidGuard had no cgi script that you could
pass the user to, before sending them to a denied page.

I think I will be able to code what I need out of the information I have,
and the limited php coding skills I have acquired over the past 3-6 months
:)

Thanks once more..

Michael



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] web question..

2000-11-08 Thread Crossfire

Why use a PHP3 script when Apache can log it for you?

The most useful information you can get about the browser is the User-Agent
string, which identifies which browser is viewing the page.  This
information can be used for all sorts of sillyness should you desire to use
it that way.

Using a CustomLog, you can easily configure Apache to save the User-Agent
string [as well as many other parameters] recieved during a HTTP request so
you can then look at with which browser your site was hit with.
+--+
| Crossfire  | This message was brought to you |
| [EMAIL PROTECTED] | on 100% recycled electrons  |
+--+

- Original Message -
From: Michael <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 08, 2000 10:35 AM
Subject: [SLUG] web question..


> Hi guys,
>
> When I have a web client hit a web page on my server... what information
can
> one extract from the browser? 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. Especially if I could find out what
> url they just can from to get to the page they are at.




-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



Re: [SLUG] web question..

2000-11-08 Thread tom burkart

On Wed, 8 Nov 2000, Michael wrote:

> When I have a web client hit a web page on my server... what information can
> one extract from the browser? 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. Especially if I could find out what
> url they just can from to get to the page they are at.
Just have a page that does 
It will tell you all the variables and their content.

tom.
Consultant

AUSSECPhone: 61 4 1768 2202
339 Blaxland Rd., Ryde NSW 2112
Email: [EMAIL PROTECTED]



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug



[SLUG] web question..

2000-11-08 Thread Michael

Hi guys,

When I have a web client hit a web page on my server... what information can
one extract from the browser? 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. Especially if I could find out what
url they just can from to get to the page they are at.

Any help would be greatly appreciated..

Thanks
Michael



-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug