Guide 01 Forms
How to Add a Contact Form to Your Website Without the Spam
Built-in forms, form services and plugins, plus the spam and privacy basics.
Short answer
Use your builder's built-in form or a form plugin if you have one, or a form-handling service on a static site, then add a hidden honeypot field and a light challenge to stop most spam, and say in your privacy policy what the form collects.
Key takeaways
- Website builders include forms; WordPress uses plugins; static sites send forms to a form service or a small serverless function.
- A plain email link is the simplest contact option, but it exposes your address to harvesters.
- Honeypot fields and invisible challenges stop most bots without making people solve puzzles.
- Ask only for what you need, label every field, and explain where the message goes.
A contact form looks like the simplest part of a website, yet it causes a surprising share of problems: messages that never arrive, a flood of spam, or a form nobody can fill in on a phone. Picking the right kind of form for your setup and adding two or three protections fixes most of that.
Do you need a contact form at all?
Not always: a clear email address and phone number can be enough, but a form helps when you want specific details or want to keep your address away from spam bots.
Think about what people contact you for. A local plumber gets more from a phone number in large type. A wedding photographer benefits from a form that asks for the date and venue up front. Our list of pages a small business site needs covers what belongs on a contact page.
How do you add a form on each kind of site?
Website builders have a form block, WordPress sites use a form plugin, and static sites send submissions to a form-handling service or a small serverless function.
| Site type | Usual approach | Where messages go |
|---|---|---|
| Hosted website builder | Built-in form block | Builder dashboard and your email |
| WordPress or similar CMS | Form plugin | Your email, sometimes a database |
| Static site | Third-party form service, or a serverless function on your host | The service's dashboard and your email |
| Any site | Email link (mailto) | Visitor's own email app |
On a static site, the form's action points to the service's address. The service receives the submission, filters spam and emails it to you. Many offer a free tier with a monthly message limit, which is plenty for a small site. Read what the service stores and for how long, since visitors' messages pass through it.
How do you stop spam without annoying people?
Combine a hidden honeypot field, a server-side check and, if needed, an invisible challenge, rather than relying on a puzzle people have to solve.
- Honeypot. Add a field hidden from people with CSS. Bots fill in every field, so any submission with that field filled is discarded. Most form tools have this as a setting.
- Invisible or low-friction challenges. Several services check visitors in the background and only show a challenge when something looks automated.
- Simple rules. Reject messages with lots of links, or block keywords that only spam uses.
- Rate limits. Many form services and plugins limit how many submissions one visitor can send in a short time.
Old-style image puzzles stop some bots but frustrate real people and can be hard for screen reader users, so treat them as a last resort.
What should the form ask for?
Ask for the fewest fields that let you reply well, usually a name, an email address and a message, plus one or two questions specific to your work.
Every extra field lowers the number of people who finish the form. Mark optional fields as optional. Use the right input types, such as email for email addresses and tel for phone numbers, so phones show the right keyboard.
Make it accessible too. Give every field a visible label, not just placeholder text that disappears when someone starts typing, and show errors in words next to the field. Our accessibility basics guide has a short checklist for forms.
How do you make sure messages actually arrive?
Send a test message after setting up the form and after every change to your form or email, and check spam folders on the receiving side.
If the form sends email from your own domain, the domain needs working SPF and DKIM records or the messages may be filtered. Our guide to setting up email on your own domain explains those records. Set the form's reply-to to the visitor's address so you can answer with one click.
Add a confirmation message on the page after someone submits, saying when they can expect a reply. If you can, send yourself a copy to a second address while you test.
What should you tell visitors about their data?
Say what the form collects, why, where it is stored and how long you keep it, in plain words on a privacy page linked near the form.
A contact form collects personal data, and many privacy laws expect you to explain how you handle it. Keep it short and accurate: for example, that you use the details only to reply, that the form service processes them on your behalf, and that you delete old messages after a set period. This is general information, not legal advice.
When you plan a new site, the planner on our home page adds the contact and privacy pages your type of site needs to its page list.
Questions
Is a contact form better than just showing my email address?
Each has a place. A visible address is easy for people and works with any email app, but it attracts spam. A form keeps the address hidden and can ask for the details you need. Many small sites show both: a short form and an address for people who prefer email.
Do I need a privacy policy if I have a contact form?
A form collects personal data such as names and email addresses, and many privacy laws expect you to explain what you collect and why. A short, honest privacy page is a good habit. This is general information, not legal advice; rules depend on where you and your visitors are.
Why are my form messages not arriving?
Check the spam folder first, then the form's own dashboard or log. If the form sends from your own domain, missing SPF or DKIM records can cause filtering. Send a test after every change to the form or your email setup.