Web Hosting Talk







View Full Version : Tracking CodeRed Attacks


sitekeeper
08-08-2001, 06:39 AM
I found this on another fourm VO (http://www.venturesonline.com/forums/showthread.php?threadid=1183), it's a PHP script to keep track of how many times CodeRed has tried to attack your server. Code Red is very busy!:mad:

<?php
echo("Code red has tried to attack <font color='red'><b>");
echo `cat /usr/local/apache/logs/access_log | grep -c default.ida`;
echo("</b></font> times");
$date = date("m-d-y H:i");
echo("<p>Accurate at $date</p>");
?>

:wavey: BOB ;)