Protecting against form Spam

Because of my success with WordPress comment spam protection I have decided to release another free version of SpamBam that will also protect any php form on any web site from spammers! The code is again released under GPL so anyone can use it for free or modify it.


1. Download and unzip the SpamBam class.
2. Look at the sampleform.php file in the zip file to see how SpamBam is placed into your HTML form. (It must be a php file in order for it to work).
3. Look at the samplesend.php to see how to place SpamBam onto your send email section of your site. NOTE SpamBam does not actually send any emails, it just provides spam protection.

3 Responses to “Protecting against form Spam”

  1. Gareth Heyes writes:

    Please note if your site has a lot of traffic, it could be wise to disable the “sleep()” function of SpamBam.

  2. Eric Butera writes:

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

    Just FYI there isn’t a license included in the archive.

  3. Gareth Heyes writes:

    Hi Eric the license is included within the code comment of the spambam class. It is free to use wherever you want.