NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > Webmaster Tutorials
Reload this Page Script that keeps logs of Visitors IP (Revenge)

Webmaster Tutorials Instructional webmaster-related how-to's and tutorials.

Advanced Search
0 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 03-09-2006, 05:49 PM THREAD STARTER               #1 (permalink)
NamePros Eliteā„¢
Join Date: Feb 2006
Location: Washington
Posts: 848
Sakura is a name known to allSakura is a name known to allSakura is a name known to allSakura is a name known to allSakura is a name known to allSakura is a name known to allSakura is a name known to allSakura is a name known to all
 



Script that keeps logs of Visitors IP (Revenge)


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!
????: NamePros.com http://www.namepros.com/webmaster-tutorials/175220-script-keeps-logs-visitors-ip-revenge.html
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
Sakura is offline  
Old 03-11-2006, 01:41 PM   #2 (permalink)
.PJ
NamePros Regular
 
.PJ's Avatar
Join Date: Aug 2004
Posts: 363
.PJ is on a distinguished road
 



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
__________________
L33TSig.net
.PJ is offline  
Old 03-18-2006, 01:25 PM   #3 (permalink)
NamePros Regular
Join Date: Oct 2005
Posts: 205
2knew has a spectacular aura about2knew has a spectacular aura about
 



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.
????: NamePros.com http://www.namepros.com/showthread.php?t=175220

IMHO, if you're not sure what you're doing, you should be very reluctant to ban by IP.
2knew is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
DownloadSYS v2 - Premium File Membership Script cyberoptik Scripts For Sale 5 10-26-2005 08:32 AM
Sooook.com - package with 20 traffic names johnnywj Domain Names with Traffic Stats 1 06-30-2005 02:09 PM
Directory Script and Review Script DomainOgre Scripts For Sale 1 05-10-2005 11:27 PM

 
All times are GMT -7. The time now is 12:58 AM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger