Here is a small perl script to check if your site is under DDOS attack. I use this script to check our web server for certain attacks.

#!/usr/bin/perl

%ip_add=();

@list=`netstat -an |grep :80 |grep EST |awk ‘{print \$5}’ |awk -F: ‘{print \$1}’`;

foreach $line(@list) {
chomp($line);
$ip_add{$line}++;
}

$total=0;
foreach $line2(keys (%ip)) {
$total+=$ip{$line2};
print “$line2=$ip{$line2}\n”;
}
print “total=$total\n”;

— After you get a cheap web hosting deal, you should first go to the hosting product site to learn about it. Unlike others, bluehost as well as hostgator come with their own set of directions. —

Like this blog? Why not buy me a cup of coffee?