Why Your Website Contact Form Is Sending Spam and How to Stop It
Summary
This guide helps you troubleshoot and resolve: Why Your Website Contact Form Is Sending Spam and How to Stop It. Follow the steps below to fix the issue.
Common Causes
Your website contact form is designed to capture genuine enquiries from customers, but it can also become a target for automated bots. When spammers exploit your form, they can send high volumes of junk messages through your server, which may result in your domain being blacklisted and your legitimate emails landing in spam folders. This guide explains how to identify form abuse and secure your website against automated attacks.
Slug
why-your-website-contact-form-is-sending-spam-and-how-to-stop
Quick Fix Steps
- Log in to your website admin dashboard and review all recent form submissions.
- Delete any obvious spam entries and note the IP addresses or email patterns used.
- Install or enable a CAPTCHA solution or spam filtering service on your contact form.
- Apply rate limiting to restrict the number of submissions per IP address within a set timeframe.
- Test the form by submitting a genuine enquiry to confirm it still works.
- Monitor your email delivery and spam folder over the next 24–48 hours.
Detailed Instructions
Identify Spam Submissions
- Open your website admin panel and navigate to the contact form or messages section.
- Look for submissions containing random characters, multiple links, or generic text such as "Great post!" or "Contact me about SEO services."
- Check the submission timestamps. Bots often send multiple entries within seconds or minutes of each other.
- Export the submission list if your platform supports it, so you can analyse patterns in IP addresses or email domains.
Add CAPTCHA Protection
- For WordPress sites, go to Plugins > Add New and search for a reputable CAPTCHA plugin such as reCAPTCHA or hCaptcha.
- Install and activate the plugin, then follow the setup wizard to obtain API keys from Google reCAPTCHA or hCaptcha.
- Edit your contact form page and add the CAPTCHA field to the form.
- Save the form settings and test by attempting a submission without completing the CAPTCHA. The submission should be blocked.
- For non-WordPress sites, add the CAPTCHA script provided by your service to your form HTML, usually just before the closing form tag.
reCAPTCHA v2 vs v3
- reCAPTCHA v2 checkbox: Requires the user to click a box labelled "I'm not a robot." Best for forms where a visible challenge is acceptable.
- reCAPTCHA v2 invisible: Runs in the background and only triggers a challenge if suspicious behaviour is detected. Offers a smoother experience for genuine users.
- reCAPTCHA v3: Returns a score based on user interaction without any visible challenge. Use this if you want to analyse traffic silently and block high-risk submissions server-side.
Enable Honeypot Fields
- A honeypot is a hidden field that humans cannot see but bots often fill out automatically.
- In your form builder settings, look for an option labelled Enable Honeypot, Anti-spam field, or similar.
- Activate the option and save your form.
- Test the form to ensure genuine submissions still go through while bot submissions are rejected.
Use Spam Filtering Services
- As an alternative to CAPTCHA, consider Akismet or a similar spam filtering service.
- For WordPress, install the Akismet plugin from Plugins > Add New and activate it with an API key.
- Configure the service to scan contact form submissions for spam characteristics before they reach your inbox.
Apply Rate Limiting
- Rate limiting restricts how many times a single IP address can submit your contact form within a set period, such as five submissions per hour.
- In your form plugin or security plugin settings, locate Rate Limiting, Submission Limits, or Brute Force Protection.
- Set a maximum number of submissions per IP address per hour or per day.
- Save the settings and test that genuine users can still submit the form without being blocked.
Keep CMS and Plugins Updated
- Outdated content management systems and form plugins often contain security vulnerabilities that bots can exploit.
- For WordPress, go to Dashboard > Updates and install any available updates for WordPress core, themes, and plugins.
- Enable automatic updates for minor plugin releases where supported.
- After updating, test your contact form to ensure it still functions correctly.
Review Email Sending Settings
- Ensure your website is not using the default PHP mail() function to send form notifications, as this is easily abused.
- Configure your site to send emails via SMTP using your mail credentials or a dedicated transactional email service.
- For 220 Internet Services hosting, your mail credentials are located in your hosting control panel under Email Accounts > Manage > SMTP Settings. Note the SMTP server address, port, username, and password.
- In your website admin, navigate to Settings > Email or SMTP and enter your mail server details.
- Save the settings and send a test email to confirm delivery.
Australian Small Business Context
- If you operate a
.audomain, ensure your DNS and email authentication records are managed through your Australian registrar or hosting provider. - Under the Australian Privacy Act 1988, you must handle personal information collected through contact forms responsibly. Only store submissions for as long as necessary, and include a privacy notice on your form page explaining how data is used.
- If you store form submissions containing personal data, ensure your website uses HTTPS and that your database is secured against unauthorised access.
- Verify the CAPTCHA is actually displaying on the live form. Clear your website cache and browser cache, then reload the page.
- Ensure you entered the correct site key and secret key in your plugin settings.
- Try switching from reCAPTCHA v2 checkbox to invisible reCAPTCHA, or to reCAPTCHA v3, depending on your traffic patterns.
- If you use Akismet, confirm the API key is active and the service is connected.
- Some ad blockers and privacy extensions block reCAPTCHA scripts by default.
- Ask affected users to disable their ad blocker for your domain and reload the page.
- As an alternative, use hCaptcha or a server-side spam filter such as Akismet, which may be less likely to be blocked.
- Test your form in multiple browsers and with common extensions enabled to confirm the CAPTCHA loads correctly.
- Check if your domain has been added to an email blacklist using a free lookup tool.
- Review your SPF, DKIM, and DMARC records in your DNS settings. Missing or incorrect records can cause mail providers to reject your messages.
- Ask your web developer to confirm your website is sending from an authorised mail server, not a generic web server address.
- Confirm your SMTP credentials are correct and that your mailbox is not over quota.
- Check your website error logs for messages related to mail delivery. For WordPress, install an error logging plugin or access logs via your hosting control panel under Logs > Error Logs.
- Temporarily disable any new security plugins to see if they are blocking form submissions.
- After any DNS or email changes, submit a test enquiry through the form and confirm the notification arrives in your inbox.
- If your host suspends outbound email because of spam complaints, contact your hosting provider immediately to identify the source of the abuse.
- Review recent form submissions and server logs to identify compromised accounts or vulnerable scripts.
- Strengthen form security with CAPTCHA, honeypots, and rate limiting before requesting that outbound email be re-enabled.
- Request delisting from any email blacklists your domain has been added to, and improve your SPF, DKIM, and DMARC records.
Troubleshooting
Spam Continues After Adding CAPTCHA
CAPTCHA Not Loading Due to Ad Blockers or Browser Extensions
Genuine Emails Are Going to Spam
Contact Form Is Not Sending Any Emails
Web Host Blocks Outbound Email Due to Spam Complaints
If your email domain has been blacklisted due to high spam volume, clearing the form alone may not restore delivery. You may need to request delisting from blacklist providers and improve your email authentication records.
If you have applied these steps and continue to receive spam or experience email delivery issues, Open a Ticket with our support team for further assistance.
Still Having Issues?
💻 Open a Ticket