Comment form
A clean comment form that gives your static pages a place for reader replies to land, with moderation-friendly spam filtering already wired in and no database to run.
How to use this form
- Create a form in your Formpaste dashboard and copy its access key.
- Paste the template below into your project and swap YOUR_ACCESS_KEY_HERE for your key.
- Set your destination email and allowed domains in the dashboard.
- Deploy - submissions land in your inbox, spam filtered, no CAPTCHA.
Framework guides for this form
Prefer a guide for your exact stack? Open the per-framework walkthrough.
What is a comment form?
A comment form lets readers respond to a page - a blog post, a docs article, a changelog entry - without you running any backend to catch what they write. The visitor leaves a name, an email for your records, and their comment, and the submission is handed off to Formpaste instead of a database you have to host and secure yourself.
That matters most for static sites. A page generated by Astro, Hugo, Eleventy, or plain HTML has nowhere to store a comment on its own. A comment form fills that gap: it turns a read-only page into a two-way one, while your site stays fast, cacheable, and free of a CMS you never wanted to maintain.
When to use it
Reach for a comment form when you publish content and want reactions but do not want to bolt a full commenting platform onto a site that is otherwise just files. It suits personal blogs, engineering write-ups, release notes, and documentation where a short reply or correction from a reader is genuinely useful.
It is also the right tool when you would rather curate than open the floodgates. Because every comment passes through you before it appears, you decide what gets published. That makes it a good fit for anywhere a reputation is on the line and an unmoderated feed of drive-by spam would do more harm than the comments do good.
If you expect threaded discussions, live replies, or reader accounts, you have outgrown a form and want a dedicated platform. For everything short of that, a comment form is the lighter, calmer choice.
What to include
This template ships with exactly the three fields a moderated comment needs. Name is required so you know who is speaking. Email is required too, but its label reads “Email (not published)” on purpose: you keep it for moderation and the occasional reply, and the label reassures the commenter that it will never show up on the public page. The comment itself is a required textarea, giving people room to write more than a single line.
Resist adding a website field or a rating. Both invite spam far more than they add value, and the website field in particular is a classic vector for link injection. The three fields here are enough to attribute a comment, contact the author if you need to, and capture what they actually wanted to say.
Tips for a comment section worth reading
Moderate before you publish. Comments are a spam magnet, so let Formpaste filter the obvious junk and quarantine the borderline submissions in a folder you review. Approving what appears keeps your page clean and keeps you in control of the tone.
Set the expectation on the page. A short line like “comments are reviewed before they appear” stops people from resubmitting when their comment does not show up instantly, and it quietly signals that low-effort spam will not make it through.
Reply where it counts. The email you collect is there for more than moderation. A brief, personal response to a thoughtful comment does more for a piece of writing than ten auto-approved one-liners ever will.
Also works on
No dedicated guide yet, but this form drops into any of these too. Open the platform overview to get started.
Frequently asked questions
Paste a form. Get submissions.
Instantly without setting up any backend, servers or databases. 250 submissions/mo free - no credit card.