Files
Plenario/templates/element/honeypot.php
T
gnilebeinandClaude Opus 5.5 ffe93a3256
CI / Deploy / test (push) Successful in 41s
CI / Deploy / deploy (push) Skipped
Add honeypot field to poll creation form
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>
2026-11-07 14:34:55 +01:00

17 lines
568 B
PHP

<?php
/**
* Honeypot field against spam bots. Humans never see or reach it (moved
* off-screen, hidden from screen readers, not focusable); bots that fill in
* every field get their request rejected by the controller.
*
* @var \App\View\AppView $this
*/
use App\Controller\HomeController;
?>
<div class="hp-field" aria-hidden="true">
<label for="hp-website"><?= __('Bitte dieses Feld leer lassen') ?></label>
<input type="text" id="hp-website" name="<?= h(HomeController::HONEYPOT_FIELD) ?>" value=""
tabindex="-1" autocomplete="off">
</div>