Add one of this options to your files instead of blocking a whole domain:
PHP solution:
(Assuming you use a form with method POST)
on your form file:
3 + 4 = <input type="text" id="math_check" value="?" name="math_check" />
on your mail/php file:
$math_check = $_POST["math_check"];
if ( != 7) {die()};
You can also do this with javascript and maybe easier to say in case a human being misses that math test :)
Javascript solution:
(Demo here)
on your html:
<form action="formmailer.php" method="post" id="contact" style="margin-bottom: 0;" onsubmit="return false;">
<input type="text" id="math_check" />
<button type="submit" />Submit</button>
</form>
and the javascript that will submit only if number is 7:
window.onload = function () {
var form = document.getElementById("contact");
function math_check() {
var nr = document.getElementById("math_check").value;
if (nr != 7) {
return false;
} else {
form.submit();
}
}
form.addEventListener("submit", math_check, false);
};