Alacrify Ltd

Defeating Formmail Spam

Published on: 7th October 2007
By Alacrify



Defeating Formmail Spam

Having taken care of the website for PSIGE for some time now we have begun to notice a rise in the spam generated through the site's formmail system. Although we've taken every precaution to ensure that the script is correctly set up to filter out submissions from other servers and the site form to deny comments with forbidden words in them (eg. viagra and casino), we have not been able to prevent the direct calls to the cgi script from forms that purport to be from the PSIGE site, but in fact aren't.

After a long and thorough search through the internet we drew a blank on finding patches for the formmail script that would perform a screening service to filter out the forbidden words before sending, and not being specialists in the Perl programming language that the script is written in, we have taken the bull by the horns and written an entirely new form-handling script in PHP which does everything we need it to. It allows us to use aliases instead of real email addresses on the form itself; it validates the form content, checking for a valid email and filtering out forbidden words; prevents "injection" attacks from malicious code being submitted through the form fields and in short works like a dream.

Once we've tidied it up into a library script we will then roll it out through all the sites that we manage where a contact form is used. We hope that this will finally give us the upper hand over the automated spam generators that have started to become the bane of our sites.

 

New Website For Osmington Village Hall

We’re pleased to announce that we have just launched a NEW website for Osmington Village Hall. Osmington Village Hall came to us needing a brand new website as the old one had been taken offline. We built the website from the ground up taking a fresh new approach alongside Osmington Village Hall.

Relaunch Of Weymouth And Portland Info Website

We’re excited to announce that we have relaunched the Weymouth and Portland Information website. The website is an internal project of ours and one that’s needed attention for a while. The main aim of the redesign was to make the website responsive and easier for users to navigate around.

New Website For R-em Therapies

We have just launched a new website for Emma at R-EM Therapies. R-EM Therapies is a new client of Alacrify’s that we’ve thoroughly enjoyed working with. R-EM came to us needing a new website as the old site was starting to show its age. The old site also wasn’t responsive and was also unsecure which negatively impacted the site's search engine rankings as well as being hard for users to access on their mobiles and tablets.

New Website For Ecs Special Projects

We have just launched a new website for ECS Special Projects. This is another website of ours that we originally built many years ago. The old site stood the test of time and still performed very well in Google searches, but the time had come for the look and feel to be updated in line with more contemporary design approaches.