diff --git a/index.html b/index.html index 3e24f4f..c1939e8 100644 --- a/index.html +++ b/index.html @@ -353,6 +353,7 @@
+

Your information is 100% private. We'll never share or sell it to spammers.

@@ -376,6 +377,11 @@
+ +
@@ -383,7 +389,6 @@ -

Your information is 100% private. We'll never share or sell it to spammers.

diff --git a/send-contact.php b/send-contact.php index 108a936..f064b38 100644 --- a/send-contact.php +++ b/send-contact.php @@ -21,6 +21,13 @@ $email = trim($input['email'] ?? ''); $service = trim($input['service'] ?? ''); $message = trim($input['message'] ?? ''); +// --- Spam honeypot: if the hidden field has a value, it's a bot --- +if (!empty($input['website_url'] ?? '')) { + // Bots fill this; humans don't. Silently succeed. + echo json_encode(['success' => true]); + exit; +} + // Validate required fields $errors = []; if (!$name) $errors[] = 'Name is required';