Human Intelligence Identification Script

The Human Intelligence Identification Script (Hii) is designed to prevent web forms being submitted by automated robot scripts. Automated robot scripts are used maliciously to send Form Spam and Hijack Web Forms. The Human Intelligence Identification Script only allows form processing if a correct answer to a set question is provided when the form is submitted. The question can be in any format or structure. A script robot cannot interpret the meaning of a text question nor does it have the capacity to provide a correct answer. In fact it does not even know an answer is required. This applies for even the simplest of questions. The Human Intelligence Identification Script 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. Information on Form Hijacking is available at What is Form Hijacking?. The Human Intelligence Identification Script should only be used as an additional method in preventing Form Hijacking. Methods outlined in What is Form Hijacking? should also be applied. The Form Spam Blocking Script may also be of interest, it blocks form submissions that include blocked character combinations effectively stopping all form spam from being sent. The character combinations can represent words, email addresses, IP addresses or any other information that is processed.

How does Human Intelligence Identification work?

The Human Intelligence Identification Script looks for the Human Intelligence Identification Answer provided in a form submission. If the Answer is not correct the form will not be processed. This effectively prevents forms submitted by automated robot (bot) scripts from being processed. It blocks automated form span and can also decrease the risk of form hijacking.

The concept underlying the Human Intelligence Identification Script is similar to the that used in Captcha. Captcha is the application of distorted text images that are difficult for bots to decipher. It is extensively used as a human verification test in web form submissions to block automated form submissions by bots. Human Intelligence Identification possesses the advantages of Captcha but is much simpler to implement, cannot be bypassed using OCR (optical character recognition) and is more user friendly, with less accessibility issues. Human Intelligence Identification is an easy to implement, east to use, and effective alternative to Captcha.

To use the script

  1. Download the script using the link below and unzip the downloaded file.
  2. Open the script file (.php) using a text editor (ie notepad).
  3. In the script file set the Human Intelligence Identification Answer in the $hiianswer variable in the script by inputting the answer between the " 's. The answer should be in lowercase letters. For example: $hiianswer="a";
  4. In your form add the Human Intelligence Identification Question and an input field for the Human Intelligence Identification Input by the form user. For example: What is the first letter of the alphabet? <input type="text" name="hii" /> . The name value of the input field must be the same as the $hiifieldname variable in the script. The default is $hiifieldname="hii"; .
  5. If desired you can also set a Url to be displayed if no Human Intelligence Identification Input is provided by the user. For example: $hiirequiredurl="http://www.mydomain.com/hiirequired.html"; . If $hiirequiredurl is left empty the default Hii required message is displayed.
  6. If desired you can also set a Url to be displayed if the wrong Human Intelligence Identification Input is provided by the user. For example: $hiierror="http://www.mydomain.com/hiierror.html"; . If $hiierror is left empty the default Hii error message is displayed. If $hiierror is set as none a blank page is displayed when an incorrect hii answer is given. For example: $hiierror="none"; .
  7. Copy and paste all the Hii 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.
  8. Upload your modified Form1 with Human Intelligence Identification and give it a test.

If a form is submitted without the correct Human Intelligence Identification Answer form processing is blocked, no delivery email is sent and nothing is displayed. If a form is submitted without a Human Intelligence Identification Answer the $hiirequiredurl is displayed if provided or the default Hii required message is displayed. The Question and Answer used can be pretty much anything you like but it should be simple and clear. A human should never get it wrong. If the wrong answer is given it is most likely a robot and processing is terminate, no email sent and nothing is displayed (so the robot has no where left to go). For example:

One of the strengths of Human Intelligence Identification is that the Question can be freely set by the form developer. This makes it very difficult for bot developers to identify a question pattern and related answer that can be programmed into the bot.

The question can be generic, related directly to your site or type of visitor, a common joke, a fill in the blank, some text on your page, java script prompt text, a select dropdown list, radio buttons or even a password (if you want to limit form submissions even for some real users).

You can see the script in action and give it a test at the Human Intelligence Identification Test Form.

Script Download

Download Human Intelligence Identification Script using the link below. Unzip the downloaded file and modify the script file (.php) in a text editor.

softSWOT Download Human Intelligence Identification Script
Compressed Zip file - hiis.zip 2 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.

We also provide a Web Hosting Comparison table allowing you to access and compare current web hosting providers by features and price.


softSWOT - Web Solutions Software
softSWOT Home
softSWOT Software - Review and access our software and services using this navigation menu. Click folder icons to display contents, click text links to open web pages.
Form1 Outline & Test Forms
Single file customizable web form and form processor. No cgi script required. Hidden delivery address for protection from email address harvesters.
Form1 Builder Software
Easily build a single file web form with a hidden email address and an extensive range of benefits and options.
Form1 Builder GoldMine
Easily import web form data directly into your GoldMine Database using the GoldMine WebImport feature.
Form1 Builder MYSQL
Automatically import web form data directly into your MYSQL Database.
Investment Analysis Software
Easily analyze the performance of any investment to maximize returns. Compare and forecast investment performance, determine net worth and income streams, identify buy / sell indicators, make informed investment and retirement planning decisions.
MailMailer Software
Compact easy to use server (web) based emailer. All you need is a browser, and a web server that supports php scripting (included on most commercial servers).
Password Page Protection
Password Page Protection Software allows you to easily add password protection to a web page. It generates password protection code which is added to the top of a web page to prevent unauthorized access with a high level of security and reliability.
Site Builder Software
Site Builder Software provides a quick and easy to use solution to Web Site creation. It is suitable for anyone wanting to create and maintain a clean valid web site with ease. Starting with a basic Quick Site which can be further structured using a range of advanced features Site Builder Software provides extensive flexibility making it suitable for novices through to experienced professional web site developers.
SiteMap XML Software
SiteMap XML is a php based sitemap generator. It includes a range of configurable variables to define the sitemap content and can be run as an online form to generate a Static SiteMap or used to Generate Dynamic SiteMap Code and create real time dynamic site maps.
Source Viewer Software
Display web page source code including html and php code directly in your browser.
XML Data Extractor Software
XML Data Extractor Software loads internet or local Source files and automatically extracts Source file data allowing it to be easily used as input for web forms or applications.
What is Form Hijacking?
What is Form Hijacking? How is a form hijacked and how I do prevent form hijacking?
What is Form Spam?
What is Form Spam? How is a form spam sent and how I do stop form spam?
What is a HTTP Header?
Information on HTTP Headers and a HTTP Header Viewer to display HTTP Headers (requests and responses) including file content for public web pages and files on the internet.
What is php?
Information on the php language and test code to check your servers php support.
Content and Link Pages
Have your own specifically developed content pages with target site/page links on our domains.
Frequently Asked Questions
The answers to questions on softSWOT software and services.
Privacy Policy
Privacy Policy - All details held remain confidential and will never be shared, sold or made available to third parties by any means.
Q & A Items
Question and Answer Items covering software support and general responses. If you have a question this is a good place to start.
Contact Us
Contact details for softSWOT.

Copyright ©

Bizpep Group

Third party product and company names are used only to identify products with which softSWOT software is compatible. They do not imply endorsement and are the property of their respective holders.


Client Comments

"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 are fantastick ...excellent service each and every time, without fail."

"...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."