. Then check your iptables w/ iptables -L (as root). If successful, your test hostname should be listed. You may not want to try this if you're configuring remotely and you have no other means to access your box. Questions/comments/suggestions: e-mail codered@htmlspinnr.org end comment/readme section */ // begin actual script ?> HTMLSpinnr's PHP Code Red Defense Script "; // you can get funny and make the above response anything you'd like, i.e. compromising system, etc. // I prefer a simple Blocking IP - you can comment the above line out all together to keep it less obvious. $ip = getenv("REMOTE_ADDR"); $commandString = "/usr/local/secure/blockhost.sh " . $ip; // modify above string to reflect the name of your script - note the space before the quote IS important. $result = exec($commandString); ?>