Skip to content

Add honeypot field to Formspree forms to prevent spam - #7

Open
jmiranda wants to merge 1 commit into
masterfrom
prevent-formspree-spam
Open

Add honeypot field to Formspree forms to prevent spam#7
jmiranda wants to merge 1 commit into
masterfrom
prevent-formspree-spam

Conversation

@jmiranda

@jmiranda jmiranda commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a visually-hidden honeypot (_gotcha) field to all four Formspree-backed forms to cut down on bot spam submissions.

_gotcha is Formspree's built-in honeypot field name: real users never see or fill it, but bots tend to auto-fill every input, and Formspree silently discards any submission where it's populated. No server-side config or third-party scripts (e.g. reCAPTCHA) required.

Forms updated

  • layouts/partials/quote.html — quote request
  • layouts/partials/signup.html — services signup
  • layouts/partials/tutorials.html — tutorials email
  • layouts/partials/users.html — implementation form

Each honeypot is wrapped in an off-screen container (position:absolute; left:-9999px) with aria-hidden="true", and the input uses tabindex="-1" / autocomplete="off" so it's skipped by keyboard navigation, screen readers, and autofill.

Testing

  • Builds cleanly with the pinned Hugo 0.92.2.
  • Confirmed _gotcha renders in public/{quote,signup,tutorials,users}/index.html.

🤖 Generated with Claude Code

Adds a visually-hidden _gotcha field to the quote, signup, tutorials,
and implementation forms. Formspree silently discards any submission
where this field is filled, which bots tend to do.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@netlify

netlify Bot commented Jun 8, 2026

Copy link
Copy Markdown

Deploy Preview for openboxes ready!

Name Link
🔨 Latest commit 8cd436b
🔍 Latest deploy log https://app.netlify.com/projects/openboxes/deploys/6a273b5dc8836f000886d6b1
😎 Deploy Preview https://deploy-preview-7--openboxes.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 38 (🟢 up 2 from production)
Accessibility: 78 (no change from production)
Best Practices: 83 (no change from production)
SEO: 73 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

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