Commit Graph

7 Commits

Author SHA1 Message Date
c155ff366c feat: add Turnstile anti-bot, email field, and metadata to contact form
- 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 <noreply@anthropic.com>
2026-03-15 14:20:23 +03:00
a42007e0a5 feat: add rate limiting and input validation to contact form
- Rate limit: 5 req/min per IP (file-based)
- Email format validation via filter_var
- Field length limits: name 100, email 254, phone 30, message 5000

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15 07:29:27 +03:00
7decd512c9 fix: use Cloudflare Worker relay for Telegram, fix phone format
- contact.php: route Telegram API via tg-relay.it-resheniya-2018.workers.dev
- translations: fix phone format (909) 945-44-56 -> +7 909 945-44-56

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15 05:59:18 +03:00
fc1d2c20cd fix: contact.php — SMTP via noreply@sag24.ru, Telegram best-effort
- Send email via SMTP AUTH to mx.hhivp.com using noreply@sag24.ru
- Telegram is non-fatal (ТСПУ blocks 45.10.53.x datacenter)
- Form always returns success as long as email is sent

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15 01:18:13 +03:00
cd265e4459 fix: contact form — email fallback + non-fatal Telegram
- Always send email to info@sag24.ru (via server mail())
- Return success even if Telegram is unreachable (ТСПУ blocks 45.10.53.x)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15 01:15:23 +03:00
952634de3e feat: add Telegram relay endpoint for hhivp-website 2026-03-15 00:13:46 +03:00
9a3785a13c feat: add Telegram contact form API (PHP) and connect form endpoint 2026-03-14 19:41:25 +03:00