summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author53hornet <atc@53hor.net>2021-11-23 16:53:11 -0500
committer53hornet <atc@53hor.net>2021-11-23 16:53:11 -0500
commit3303c13b7610ed45cbdddac7ab406b15888690f4 (patch)
tree8a84d196ad6a01ba3dc8d68a1082350ada38f256
parent48900db2d6305121e0a00bbcf46b239fb280db82 (diff)
downloadcarpentertutoring-3303c13b7610ed45cbdddac7ab406b15888690f4.tar.xz
carpentertutoring-3303c13b7610ed45cbdddac7ab406b15888690f4.zip
feat: impl experimental honeypot for mailtos and contact form
-rw-r--r--header.php6
-rw-r--r--index.php1
2 files changed, 7 insertions, 0 deletions
diff --git a/header.php b/header.php
index 42925fa..53a0471 100644
--- a/header.php
+++ b/header.php
@@ -255,6 +255,10 @@
:target.modal .card {
overflow: auto;
}
+
+ .honeypot {
+ display: none;
+ }
</style>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link href="https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Indie+Flower&family=PT+Sans&display=swap" rel="stylesheet" />
@@ -273,6 +277,8 @@
</head>
<body>
+ <a class="honeypot" href="mailto:honeypot@53hor.net">Honeypot</a>
+
<nav>
<a href="/#contact">Contact Me</a>
<a href="/#reviews">Reviews</a>
diff --git a/index.php b/index.php
index c3aef21..f3f82b1 100644
--- a/index.php
+++ b/index.php
@@ -358,6 +358,7 @@
<section id="contact">
<form class="card" action="/#contact" method="post">
<h2>Contact</h2>
+ <input class="honeypot" name="emailAddress" type="text" />
<label for="name">Name</label>
<input name="name" type="text" id="name" placeholder="Jane Doe" required />