Link to home
Start Free TrialLog in
Avatar of phita
phita

asked on

User Tracker

I need a way to track the amount of users going on to my site as well as their ip address. How can I do this? Note: I am am beginner
Avatar of oliber
oliber

You ask 2 different questions :
 - the IP address of your visitor rely in a log file that is on the Web server where your web site is hosted.
If you use Apache as a web server, this file is compliant with the common log format where the IP/name of the visitor is the first information on each line.

 - How to count the numbr of users that you have is an other question, If a user has a dial up connection, his ip address may change from one session to the other. So the best way would be to have a cookie variable (if you use apache you canuse the mod_cookie module) so that each new user woud have a cookie set and then you would only have to count the number of cookies that where set to know how much users have come to your web site.

Hope all this helps.
Avatar of phita

ASKER

so what is the code to use and where do i put it. apache's website is http://www.apache.com ???
Note i am a beginner at CGI. It is something like javascript? Can I have a code that does both at the same time?
ASKER CERTIFIED SOLUTION
Avatar of oliber
oliber

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of phita

ASKER

ok thanks