LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-24-2007, 06:54 PM   #1
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Rep: Reputation: 47
Visitor reference on my server


I'm having trouble installing statistical software on my server that runs Slackware 11 without a GUI. For over a year I've been running a gnump3d server that creates a log entry every time somebody visits my server that indicates their IP address and OS used. I've seen on software that generates statistics out of these log files that it is able to tell where a visitor found your server (a search engine for example). I think this information is found in the first entry of my log file. Here's a recent example:

131.107.0.72 - - [21/May/2007:20:45:49 +0000] "GET /" 200 11110 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)"


I don't recognize this visitor that ip2location.com says is in Redmond, WA from Microsoft Corp (ISP). My server has been getting spidered over the last year by MSN, Google, and Yahoo.

Is there a way of knowing where visitors found your server from the log file?

 
Old 05-24-2007, 09:27 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
http referer logging?
 
Old 05-24-2007, 11:38 PM   #3
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 237
Blog Entries: 1

Rep: Reputation: 34
1. You can customize log format according to your need in httpd.conf.

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Cookie}i\"" myownlog


2. Add your customlog format in <virtualhost> block of domain configuration.

CustomLog /var/www/html/domainname.com/statistics/logs/access_log myownlog


Alternatively, you can use following softwares for tracking user statistics.
1. Webaliazer [ Freeware ]
2. Urchin [ http://www.google.com/analytics/urchin_downloads.html ]

Last edited by p_s_shah; 05-24-2007 at 11:39 PM.
 
  


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
LXer: Nas/media server reference platform runs Linux LXer Syndicated Linux News 0 04-16-2006 05:21 AM
timezone and visitor address rblampain Linux - General 3 01-09-2006 07:01 AM
Visitor tracking in Perl SiLiCoN Programming 3 04-11-2005 10:36 AM
how to check if the visitor is using https using php ? graziano1968 Programming 3 11-10-2004 02:55 PM
Visitor Based Networks Mux General 0 12-04-2002 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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