[advanced search]
30 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Webmaster Tutorials
User Name
Password

Old 03-09-2006, 05:49 PM   · #1
Sakura
NamePros Elite™
 
Name: Zentha
Location: Washington
Trader Rating: (42)
Join Date: Feb 2006
Posts: 821
NP$: 0.50 (Donate)
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 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!
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


Please register or log-in into NamePros to hide ads
Sakura is offline   Reply With Quote
Old 03-11-2006, 01:41 PM   · #2
.PJ
NamePros Regular
 
.PJ's Avatar
 
Trader Rating: (5)
Join Date: Aug 2004
Posts: 369
NP$: 191.50 (Donate)
.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   Reply With Quote
Old 03-18-2006, 01:25 PM   · #3
2knew
NamePros Member
 
Trader Rating: (16)
Join Date: Oct 2005
Posts: 184
NP$: 3091.00 (Donate)
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.

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

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

Site Sponsors
http://www.mobisitetrader.com/ http://www.mobisitetrader.com/ http://www.mobisitetrader.com/
Advertise your business at NamePros
All times are GMT -7. The time now is 03:01 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0