Add honeypot field to poll creation form
CI / Deploy / test (push) Successful in 41s
CI / Deploy / deploy (push) Skipped

An invisible "website" field is rendered off-screen in the create form.
If a bot fills it in, the poll is not created and no mail is sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-07 14:34:55 +01:00
1 parent 04cbc5bcd3
commit ffe93a3256
5 files changed
+79 -1

No files matched your search

+2
View File
@@ -73,6 +73,8 @@ h3 { font-size: 1.05rem; margin-top: 1.6em; }
.hint--error { color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
/* Honeypot: off-screen instead of display:none, so bots still see and fill it. */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* ---------------------------------------------------------------- layout */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }