Form Spam Blocking Script

The Form Spam Blocking Script will block form submissions that include blocked words or IP Addresses effectively stopping all form spam including automated scripts and user submitted. It is designed to run with any Form1 based form processing code including Form1 Builder Software, Form1 Builder GoldMine and Form1 Builder MYSQL. It may also run with other php based form processing scripts.

What is Form Spam? provides additional information on Form Spam and how to prevent it. The Human Intelligence Identification Script (Hii) may also be of interest, it prevents any form submissions by automated robots.

How is Form Spam Blocked?

In the script you simply set blocked words by inputing words to block in lowercase letters and/or IP Addresses directly into the script. The script handles multiple words or character combinations and IP Addresses, each word or IP Address is separated by a comma (ie ,) . If a block word value appears in any form field when the form is submitted or it is submitted by a blocked User IP Address form processing will be stopped, no delivery email is sent and nothing is displayed. This gives the submitter no where left to go.

Using the block words you can prevent any form submission that contains a blocked character combination. The character combinations can be set as anything you like. The most common use is to block specific words but you can also Block by User IP Address.

To use the script

  1. Download the script using the Download link below, save and Unzip the downloaded file.
  2. Open the script file (.php) using a text editor (ie notepad).
  3. In the script file edit the blockwords values in the $blockwords=""; variable. This is found after the 'For additional detail on this script refer to http://www.softswot.com/blockingscript.php */' text.
  4. In the $blockwords=""; variable input words (character combinations) in lowercase letters and each IP Address to block, separated by a comma between the " " 's,
    example $blockwords="casino,badword,193.160.28.13";
  5. If you want to Block by User IP Address please refer to the Additional Points at Block by User IP Address.
  6. Copy and paste all the blocking script code (including the php start and end tags) to the very top of your Form1 processing code above all other code. Only use a text editor for this process to ensure the php code is not corrupted.
  7. Upload your modified Form1 with Blocking and give it a test.

If a block word character combination appears in any form field when the form is submitted or it is submitted by a blocked User IP Address form processing will be stopped, no delivery email is sent and nothing is displayed.

Block by User IP Address - Additional Points

  1. To block by IP address you must know the IP address used for form submissions you what to block. If you use Form1 processing with Include User Variables set the IP address of the form submitter is included in the form delivery. From this you can determine the IP Addresses to block.
  2. Please note that some IP address are dynamic and may change, also some IP addresses are common to multiple users.
  3. To Block by User IP Address simply add each IP Address to block to the $blockwords variable following the instructions in how To use the script.

Script Download

Download Form Spam Blocking Script using the link below. Unzip the downloaded file and modify the script file (.php) in a text editor.

softSWOT Download Form Spam Blocking Script
Compressed Zip file - fsbs.zip 1 kb

By downloading you acknowledge Conditions of Use acceptance. For this script to function your system must meet the Requirements for Use.

To download click the download link and save the downloaded file to your computer. The script is downloaded as a Compressed Zip file (.zip) it must be unzipped before you can access the script file. Trial Zip software is available free from Winzip or a simple freeware zip utility is available from JustZIPit.

Conditions of Use

The specific suitability of this script must be independently assessed. It is provided as is, use is entirely at the users risk, and use acknowledges that softSWOT and all associated parties are held harmless from any claims or losses relating to software provided.

Requirements for Use

To run this script your server must support the php scripting language. Most commercial web servers support php. For information on php and how to check if it is available on your server go to What is php?

What if my server does not support php?

IX Web Hosting If you do not currently have a hosting company that supports php we use and recommend IX Web Hosting. IX Web Hosting provide a range of reliable and economical hosting packages, all with php support.

IX Web Hosting
If you do not currently have a hosting company that supports php we use and recommend IX Web Hosting. IX Web Hosting provide a range of reliable and economical hosting packages (from $3.95 / month), all with php support.

Client Comments

"You guys are fantastick ...excellent service each and every time, without fail."

"This was my first software purchase over the internet. I am very please with the results."

"Whole transaction and result well done."

"Thank you sir for your prompt response and excellent service."

"...you guys were great!"

"Keep up the good work!!"

"Great as usual, Thanks."

"These are practical business tools and the service that you offer for modification and assistance to adapt to practical circumstances is outstanding."

"I really appreciate your time and responsiveness... I'll definitely be back to your site soon."

"I like the simplicity and layout of your product."

"Excellent for the three items."

more.... »