Spam is probably one of the most annoying things about the internet, and is certainly a nuisance to webmasters and anyone who receives email. In addition to clogging up our email boxes with junk mail, spammers are now submitting their rubbish in the Contact Us form of many websites, the contents of which are sent to the website owner or their staff in an email. The person on the receiving end may receive 100 or more spam submissions a day, and each one must be opened to ensure that it is not a genuine contact from a visitor. Opening and deleting these spam emails wastes time which could be better spent in dealing with real enquiries. This article explains how to use simple options within FrontPage to block spam being submitted through forms on your website. No php or scripts are required.
Most Contact Us forms require visitors to enter basic information in text boxes, such as their name, email and phone number. You should also create a text box where visitors can enter a security code or password. Having created your form in Frontpage, follow these steps to spam proof your Contact Us form, or any other form where details are submitted by visitors:
Creating 2 or 3 compulsory fields is an effective way to block spam. Decide which fields are compulsory, in other words, the form will not be submitted if any of the compulsory fields are missing. Suggested compulsory fields would be name, email address and security code. You may also wish to add a compulsory field showing the visitors country or city. This could be useful for marketing purposes and will help deter spammers.
To make a field compulsory, under Design View in Frontpage:
Follow the above steps for each text box you wish to make compulsory and therefore block the spammers. In addition, for the security code textbox, do the following:
You will of course need to display the code on the Contact Us page, so that visitors know what the code is. The code can be changed as required. You may automate the process for generating a new code by the use of a Captcha code box, but this requires the use of a php file. It should not be necessary to use Captcha unless you have some very determined spammers. By making the above changes to your submit forms created in Frontpage, you should successfully block spam submitted in your Contact Us forms.