🛡️ Sentinel: Add Honeypot to Contact Form #51

Closed
ragusa-it wants to merge 1 commits from sentinel-honeypot-fix-4259546573877746528 into main

1 Commits

Author SHA1 Message Date
google-labs-jules[bot]
7ef5c5f779 feat(security): add honeypot field to contact form
- Added a hidden `website` input field to the contact form as a honeypot.
- Implemented silent rejection logic: if the honeypot is filled, the form simulates success but does not send the email.
- Added a `.honeypot` CSS class to visually hide the field while keeping it accessible to bots.
- Updated `src/pages/Contact.tsx` to handle the new field and logic.
- Updated `src/pages/__tests__/Contact.test.tsx` to verify the honeypot logic and fixed existing tests that were failing due to blocked domain usage (`example.com`).
- Recorded security learnings in `.jules/sentinel.md`.

Co-authored-by: ragusa-it <196988693+ragusa-it@users.noreply.github.com>
2026-02-03 02:08:14 +00:00