Script that keeps logs of Visitors IP (Revenge)

SpaceshipSpaceship
Watch

Sakura

NamePros Eliteâ„¢VIP Member
Impact
23
Need to track your visitors IP addy? So that if they cause any trouble towards your website you can block them! you can start tracking your visitors IP addy, browser type and the time of access! All for free!

Firstly upload the files log.php and log.html onto your web hosting account / server!
On the page(s) you want your visitors IP address to be logged place the code on
log.php to the top of that page!

And your now done!

To view your visitor's details visit the log.html file!
P.S. - to log a new entry on the log.html it make take up to 4 and a half minutes!

COPY CODE BELOW:
Code:
<?php
$file = fopen("log.html", "a");

$time = date("H:i dS F");
fwrite($file,  "<b>Time:</b> $time<br/>" );

if( $REMOTE_ADDR  != null)
{
  fwrite($file,"<b>Ip address:</b>  $REMOTE_ADDR<br/>");
}

if( $HTTP_REFERER  != null)
{
  fwrite($file,"<b>Referer:</b>  $HTTP_REFERER<br/>");
}

fwrite($file,"<b>Browser:</b>  $HTTP_USER_AGENT<hr/>");

fclose($file)

?>
SAVE AS PHP FILE, LIKE INDEX.PHP

Then Upload this file
http://www.sendmefile.com/00307598 <<log.html

If you like the free script giving for you for security, feel free give me a Trade Rating. <<< I will provide more scripts for the first 3 Trade Rating
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Once before I made a dynamic php image, that did a similar function, if it was my IP then it would show me the image and thats it, otherwise it would log the ip, date, time to a file, I did try making it log like what forum thread it was etc, but got bored of it then.

Its a handy script.

PJ
 
0
•••
These scripts are neat, but better for analysis than security.

The IP is easily changed and the user agent string easily faked. The only time user agent is useful is in analyzing aggregate data - It is unreliable for tagging individual visitors.

Some broadband companies change customer IPs very frequently to dissuade user from running servers on non-commercial connections, so the jerk you ban today might be an honest customer a day later.. getting a "forbidden" message.

I am very careful about what IPs get banned on my sites - IP ranges belonging to proxy services and bad bots. - these don't change too often.

IMHO, if you're not sure what you're doing, you should be very reluctant to ban by IP.
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Spaceship
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back