| | |||||
| ||||||||
| Webmaster Tutorials Instructional webmaster-related how-to's and tutorials. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Elite⢠Join Date: Feb 2006 Location: Washington
Posts: 848
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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)
?> 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 |
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Aug 2004
Posts: 363
![]() | 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 |
| |
| | #3 (permalink) |
| NamePros Regular Join Date: Oct 2005
Posts: 205
![]() ![]() | 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. |
| |
![]() |
| 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 |