u/ClaireBlack63

Has anyone here built a secure contact form workflow for a fully static site without using services like Formspree or Netlify Forms?

I’m experimenting with a setup using Cloudflare Workers to receive POST requests and SendGrid for email delivery, mostly because I want to keep things lightweight and avoid another paid SaaS dependency.

My biggest concern is spam prevention since there’s no traditional backendd doing heavy validation. Right now I’m considering hidden honeypot fields, hCaptcha or Turnstile, rate limiting in the Worker, and maybe origin/referer checks. For people who’ve gone the serverless route, has that been enough in practice? Or are there other lightweight approaches you’d recommend for securely handling form submissions on static sites Curious what setups people are using these days. TIA!

reddit.com
u/ClaireBlack63 — 3 days ago

I’m currently hosting a static site on Netlify, and while the pages load instantly, dynamic features like contact forms using serverless functions have a frustrating delay. It seems like the function kind of sleeps (?) after inactivity, so the next request takes a few seconds to spin back up. Is there a known way to prevent this on standard/free hosting plans? Or is this just an unavoidable trade-off when using serverless architectures? TIA!

reddit.com
u/ClaireBlack63 — 12 days ago

I usually keep things client-side with a small index, but once it grows, mobile performance starts to suffer. So, lately I’ve been shifting search to an edge function to keep the frontend light without paying for a hosted service. Curious what others do at that stage. Thanks for the insights!

reddit.com
u/ClaireBlack63 — 18 days ago