Protecting your blog or web site from automated spammer “’bots” is doable with a number of tools. Blocking humans is another matter. While not foolproof, this tool will block designated IP addresses so it can be somewhat effective against users if they have a static IP address.
Get the PHP, source. Go to back to the Mike’s Experiments index.
Use this PHP IP Blacklister demo form to see an example of how this works.