Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IP Logger
#1
This script when put on a website will write the ips of all visitors and write to log.html, it will create a link to an ip database website. Make sure you have created log.html and that you have set the permisions so it can be writen.

Code:
<?php
      $logfile= 'log.html';

      $IP = $_SERVER['REMOTE_ADDR'];

      $logdetails=  date("F j, Y, g:i a") . ': ' . '<a href=http://dnsstuff.com/tools/city.ch?ip='.$_SERVER['REMOTE_ADDR'].'>'.$_SERVER['REMOTE_ADDR'].'</a>';
  
      $fp = fopen($logfile, "a");

      fwrite($fp, $logdetails);
  
      fwrite($fp, "<br>");
  
      fclose($fp);

      ?>
Reply


Messages In This Thread
IP Logger - by brett7 - 10-08-2009, 12:38 PM
RE: IP Logger - by Headshot - 10-08-2009, 12:44 PM
RE: IP Logger - by MAcar - 10-08-2009, 05:21 PM
RE: IP Logger - by brett7 - 10-09-2009, 03:30 PM
RE: IP Logger - by Socrates - 10-09-2009, 03:39 PM
RE: IP Logger - by HuNt3R - 10-09-2009, 07:37 PM
RE: IP Logger - by Bartdevil - 10-10-2009, 01:40 AM
RE: IP Logger - by Akshay* - 10-10-2009, 04:43 AM
RE: IP Logger - by brett7 - 10-10-2009, 07:01 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  My ip logger with email and html logging option ELY_M 7 3,335 12-13-2010, 10:41 PM
Last Post: Bursihido
  1x1 pixel IP Logger Nyx- 22 6,252 04-16-2010, 03:27 AM
Last Post: .:xX[ThunderStorm]Xx:.
  Complete User Logger h1r0n 11 3,103 10-14-2009, 03:02 AM
Last Post: h1r0n

Forum Jump:


Users browsing this thread: 1 Guest(s)