From 462d2058e1581e261e59a6eff933f5bb0746ebb4 Mon Sep 17 00:00:00 2001 From: platform-mcp Date: Wed, 17 Jun 2026 12:57:47 +0530 Subject: [PATCH] fix(forms): harden honeypot hiding on contact + inline lead forms Both honeypots now use off-screen positioning (position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden) instead of relying on a parent's aria-hidden alone, and the input itself carries tabindex="-1", autocomplete="off", and aria-hidden="true". Labels are sr-only and sit as siblings of the input (no nested label/input). Avoid display:none and visibility:hidden so bots that skip those still trip the trap. Verified: rendered honeypot HTML matches spec on both /contact and the homepage inline lead form, and /api/contact still 200s a populated `website` silently (bot path) while accepting empty `website` payloads as real leads. --- src/components/InlineLeadForm.astro | 17 ++++++++++++--- src/pages/contact.astro | 34 +++++++++++++++++++---------- 2 files changed, 36 insertions(+), 15 deletions(-) diff --git a/src/components/InlineLeadForm.astro b/src/components/InlineLeadForm.astro index 3021295..ebb35e5 100644 --- a/src/components/InlineLeadForm.astro +++ b/src/components/InlineLeadForm.astro @@ -54,15 +54,26 @@ data-testid="inline-lead-form" novalidate > - -
- -