Log in

View Full Version : I'm looking for IP logger



CookiemonsterAG(:
05-30-2008, 10:23 AM
I'm extremely new to this.
I been searching high and low for this code.
I find some code but it doesn't work at all.

Nile
05-30-2008, 12:05 PM
Logger are two different things in my mind.
Do you want it to be like:
X.XXX.XX.X is going to ./exam/quiz.php
or just:
X.XXX.XX.X
?

CookiemonsterAG(:
05-30-2008, 12:15 PM
As long as i can track their ip address,it alright.
I suppose i want the 2nd option

Medyman
05-30-2008, 02:28 PM
I always use a combination of Google Analytics and Mint for all my tracking needs.

Google Analytics DOES NOT track individual user IP addresses in reports. However, Google Analytics DOES have a feature called "user-defined segmentation". The standard set of reports include a number of options (geographical, referring source, new/returning - all under "marketing optimization").

Mint also tracks based on location etc...information garnered from IP logs but not really displaying individual IP addresses.

Depending on what you need this information for, that might/might not help.

CHunt
05-30-2008, 03:00 PM
Try Statcounter.com. They have a free service that tracks IP addresses amoung other stats for free.

glucarelli
05-30-2008, 03:53 PM
Try Bbclone (http://bbclone.de/) it's free ;)

Nile
05-30-2008, 09:16 PM
Ok. Make a page called logger.php and put it in the main dir(www or public_html). Then put this code in that file:


<?php
$logger = "logger.txt";
$fh = fopen($logger, 'a') or die("can't open file");
$log_data = date("m/d/y, g:i:s").": ".$_SERVER[REMOTE_ADDR]." went to ".$_SERVER[PHP_SELF]."\n";
fwrite($fh, $log_data);
fclose($fh);
?>

A file will create called logger.txt if you run this page. Go inside that file and you should see all the info you need. To put this logger on every page use this PHP code:


<?php include('../logger.php'); ?>

For this script I'm not gonna provide an example because some people like there IP secretive. :D
I hope this helps!
Nile

CookiemonsterAG(:
05-31-2008, 01:53 AM
Thank you very much (:

CookiemonsterAG(:
05-31-2008, 01:54 AM
Can this be put in blogger?

-glucarelli,do i have to download?

Nile
06-01-2008, 02:03 AM
If blogger allows PHP my code will work in blogger. :D

Medyman
06-01-2008, 04:38 AM
Can this be put in blogger?

-glucarelli,do i have to download?

As far as I know about Blooger, you don't have any access to the server etc.. to place scripts. So, none of the suggestions here will work, really, except my suggestion of Google Analytics.

Why?

Because if you're unable to place scripts like Nile, glucarelli, and others suggest, you won't be able to use the respective scripts/software. The reason Google Analytics will work is because the scripts necessary are hosted on Google's servers and the statistics are logged remotely.

Your options then are to use some other third-party javascript-based solution that would do the kind of tracking you need. The service would have to be hosted elsewhere (i.e. not require you to place PHP or other server-side scripts on the server). There are some free tools available, though I don't have any experience with them.

Again, I'd recommend Google Analytics. Being that Blogger is also owned by Google, they play nicely. Here (http://www.infektia.net/how-to-track-your-blogger-statistics-with-google/) are some instructions on how to set it up.

CookiemonsterAG(:
06-01-2008, 04:55 PM
I tried Chunt suggestion,it works.

Okay,thank you.I'm trying right now..

CookiemonsterAG(:
06-03-2008, 09:52 AM
I can't check the ip address somehow.{Google Analytics}

codeexploiter
06-03-2008, 11:09 AM
I don't know much about Google Analytics, have you tried AWStats (http://awstats.sourceforge.net/)

Medyman
06-03-2008, 01:50 PM
Thank you very much (:

Reread my first post. You can't do it by default. You have to use other ways. Here (http://forums.searchenginewatch.com/showpost.php?p=69213&postcount=8) are some instructions that *might* help.