Skip to content

feat(contact-us): add time-trap spam protection to contact form#441

Merged
vvlladd28 merged 1 commit into
mainfrom
feature/contact-form-time-trap
Jun 1, 2026
Merged

feat(contact-us): add time-trap spam protection to contact form#441
vvlladd28 merged 1 commit into
mainfrom
feature/contact-form-time-trap

Conversation

@vvlladd28
Copy link
Copy Markdown
Member

Summary

Adds a time-trap spam guard to the shared ContactForm.astro (used on /contact-us), matching the protection already present in the development-services contact modal.

  • Hidden form-rendered-at field stamped with a timestamp when the form becomes interactive.
  • On submit, if the form is sent < 3s after init, it's treated as a bot: the submit is blocked (no POST to Formspree) and a "thank you" message is shown so the bot can't tell it was filtered.

Existing protection (_gotcha honeypot, XSS pattern check, email validation) is unchanged.

@vvlladd28 vvlladd28 merged commit 3ab3fad into main Jun 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant