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>
17 lines
568 B
PHP
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>
|