Skip to content

Add simple anti-spam checks to contact form#121

Open
MateoLostanlen wants to merge 2 commits intochore/fix-docker-devfrom
fix/contact-form-anti-spam
Open

Add simple anti-spam checks to contact form#121
MateoLostanlen wants to merge 2 commits intochore/fix-docker-devfrom
fix/contact-form-anti-spam

Conversation

@MateoLostanlen
Copy link
Copy Markdown
Member

@MateoLostanlen MateoLostanlen commented May 1, 2026

Summary

Adds two lightweight anti-spam protections to the contact form:

  • an invisible honeypot field for basic bots
  • a simple required 3 + 3 question before submit

The captcha answer is checked client-side and excluded from the submitted payload. This is intended to reduce simple form-filling spam; a stronger follow-up would enforce the same checks in the Google Apps Script before sending the email.

Validation

  • Ran the site with docker compose up -d --build
  • Checked that http://localhost:4000/ returns 200 OK
  • Confirmed the contact form renders the anti-spam question
  • Confirmed the Spanish form renders Tu mensaje

@MateoLostanlen MateoLostanlen marked this pull request as draft May 1, 2026 10:21
@MateoLostanlen MateoLostanlen requested a review from fe51 May 1, 2026 10:21
@MateoLostanlen MateoLostanlen marked this pull request as ready for review May 1, 2026 10:21
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