diff --git a/README.md b/README.md index 72901f0..7ce7169 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # contactform -A craft and bot resistant contact form \ No newline at end of file +A spam and bot resistant contact form. Remeber to update the URL and e-mail address this sends to if you use it. \ No newline at end of file diff --git a/contactform.php b/contactform.php index bbac22d..2f9ebe7 100644 --- a/contactform.php +++ b/contactform.php @@ -2,7 +2,8 @@ // Form code for mail submissions // For usage with hugo site -// Anti exploit code, not perfect but should throw a wrench into a bot's plan +// Anti exploit code, not perfect but should throw a wrench into a bot's plan +// This code has been used on several sites before and does seem to do a decent job, not perfect but pretty good session_start(); @@ -48,7 +49,7 @@ class antibot { return $passfail; } - private function test_input($data) { + private function test_input($data) { // Cleans the input $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data);