Don’t let the contact form become a spambot

The form on a contact page is a popular way for businesses to get clear information from a customer. But more and more often we see that spammers find it a simple and attractive way to send spam. With a few simple tips you can make sure your form doesn’t become a spambot.
Spam filters can stop spam on two sides: at the incoming server and at the outgoing server. Incoming is easier than outgoing, because incoming spam filtering can make use of the sender’s reputation scores. But spam sent through the outgoing server is a lot harder to combat.
The ‘trusted’ outgoing server
That’s because the outgoing server, which you use to send all your regular email, is seen as a ‘trusted’ server. If we blocked that server’s IP address because spam is being sent through it, you wouldn’t be able to send any email at all. Lately we regularly see outgoing spam that doesn’t come from a hacked server, but from connected web servers with an email function. Think, for example, of a fax machine that can also send email, smart devices, and the contact form on the website. With that last one in particular we see a big rise in spam being sent. The main culprit is the confirmation email. It is sent automatically to the email address that was filled in. But the server doesn’t check whether that is actually the sender’s address. So you can fill in any address you like. Spammers have discovered that too.
Secure the form against spammers
To make sure your contact form isn’t abused by spammers, you can take a few simple steps yourself.
- A lot of spam can be stopped by checking on the server side that everything is in order.
- A lot can be prevented by configuring the server properly, especially when it comes to the SPF records. Those do tend to get forgotten.
- The immediate, automatic confirmation email is the biggest culprit. Emails like these are practically never necessary, and spammers love them.
- Make sure input fields are only used for what they are intended for; do a so-called sanity check. Does the phone number field really contain only digits, or an email address as well?
- Never allow HTML code in free-text fields. That includes clickable URLs or email addresses. These links can do a lot of damage.
- Limiting the number of characters in an input field is also a good way to combat spam. And instead of input fields, you can sometimes use drop-down menus.
- The rule of thumb is: give the spammer as little room as possible to put their ‘message’ in your contact form, and never send email from the website to addresses that you haven’t entered yourself or at least checked for validity.
Spammers always look for the easiest way to send their spam. If nobody pays proper attention, the contact form is a very easy way. So make sure it is well secured too.
