From c155ff366cc9dd8715bbd77536bcda51c42d39e0 Mon Sep 17 00:00:00 2001 From: striker Date: Sun, 15 Mar 2026 14:20:23 +0300 Subject: [PATCH] feat: add Turnstile anti-bot, email field, and metadata to contact form MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add Cloudflare Turnstile widget support (site key configurable in config.js, secret key in contact.php — both empty until widget created at dash.cloudflare.com) - Add email input field to contact form (parity with hhivp) - Add company length validation (200 chars) to contact.php - Add IP, country (CF-IPCountry header), and referer metadata to Telegram notifications - Add company and email fields to SMTP email body - Turnstile script loaded in index.html, widget rendered conditionally when TURNSTILE_SITE_KEY is set Co-Authored-By: Claude Sonnet 4.6 --- index.html | 3 +++ public/api/contact.php | 45 +++++++++++++++++++++++++++++++++++++++--- src/config.js | 3 +++ src/pages/Home.jsx | 21 +++++++++++++++++--- src/translations/en.js | 1 + src/translations/ru.js | 1 + 6 files changed, 68 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 4dc2829..4762de2 100644 --- a/index.html +++ b/index.html @@ -121,6 +121,9 @@ } + + +