Form Spam Blocking Script
The Form Spam Blocking Script will block form submissions that include blocked words 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 directly into the script. The script handles multiple words or character combinations, each word is separated by in comma (ie ,) . If a block word value appears in any form field when the form is submitted form processing will be stopped and no delivery email sent.
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 when using Form1 processing with Include User Variables blocking can be based on the User IP Address or any other included user variable.
To use the script
- Download the script using the link below and Unzip the downloaded file.
- Open the script file (.php) using a text editor (ie notepad).
- In the script file edit the blockwords values by inputing words (character combinations) to block in lowercase letters, and separated by a comma between the " " 's, example $blockwords="casino,badword";
- 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.
- 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 form processing will be stopped and no delivery email sent.
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.
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?
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.