ZB BLOCK (Short for Zaphod B. Blocker) Copyright 2008,2009,2010 by Zaphodb777 under GPL V. 2.0 (Free to use, free to copy, free to modify, free to distribute, just give me credit when you do so!) REQUIRES: PHP on your server! BACK UP YOUR SITE/FILES BEFORE TRYING This script is designed to detect certian behaviors detrimental to websites (MySQL hacks, forum spam, and much more),or known bad addresses attempting to access your website (more than 100 million checked).. It then will send the bad robot (usually) or hacker to a descriptive 403 after a ~5 second wait (adjustable) to prevent flooding. Script and Signature Updates are available at: http://www.spambotsecurity.com/zbblock.php Forum for this software is at: http://www.spambotsecurity.com/forum This script should work without modification on any PHP equipped webserver, and MySQL is not needed. *** TO INSTALL *** IF ON A UNIX/LINUX HOST THAT HAS PHP RUNNING UNDER USER NAME "NOBODY"(bad idea): Please generate /zbblock/ , /zbblock/install/ , and /zbblock/vault/, and set directory permissions to 777 (ZB Block uses flat file storage) off the site's root directory. Directories will be re-locked with an .htaccess file. ALL HOSTS (Windows and properly set-up unix and linux hosts): Load http://www.yoursite.tld/zbblock/setup.php Follow instructions. *** TO USE *** To use, place the line seen at the end of install at the top of, or as near as you can to the top of your .php pages you wish to protect. Script WILL NOT WORK with plain html! Script will not protect anything that has been sent, and may cause errors if the output has started. So place it in the file at the very top/left (byte 0) corner and then the old start line immediately after it on the same line. For instance, in the old version of the file: