In case someone is interested I solved it by implementing a simple reverse honeypot, by inserting a hidden input in the form fieldset, contaning a value (Spambot here).
A hover function on the submit-button clears the 'Spambot' value, and form is submitted if it's cleared. Following js-code is inserted af after the closing form tag...
<span></span> <script type="text/javascript"> $('#cultivcontactformsubmit').hover(function(){ $("#BOTCHECK ").val(''); },function(){}); $("form").submit(function() { if ( $("#BOTCHECK ").val() == "") { return true; } $("span").text("Use the mouse to press send!").show().fadeOut(1000); return false; }); </script>
Does that mean submitting using Enter key will not work? Looks like a nice solution but it would be a shame if it meant the only way to submit the form was via a mouse. Consider if the user was blind/partial sighted and was using a screen reader.
I've tried this method and it doesn't seem to have had any impact on the amount of spam being sent (if anything it's getting worse!). Has anyone found a better way of controlling spam generated via the Cultiv Razor Contact Form?
Honeypot or similar?
Has been using this great package for some months without any spam, but got 50+ spammails yesterday...
So I wonder if anyone has integrated some a honeypot or another human test to the Razor, that they'll be willing to share?
Thanks in advance :-)
In case someone is interested I solved it by implementing a simple reverse honeypot, by inserting a hidden input in the form fieldset, contaning a value (Spambot here).
A hover function on the submit-button clears the 'Spambot' value, and form is submitted if it's cleared. Following js-code is inserted af after the closing form tag...
Does that mean submitting using Enter key will not work? Looks like a nice solution but it would be a shame if it meant the only way to submit the form was via a mouse. Consider if the user was blind/partial sighted and was using a screen reader.
I've tried this method and it doesn't seem to have had any impact on the amount of spam being sent (if anything it's getting worse!). Has anyone found a better way of controlling spam generated via the Cultiv Razor Contact Form?
is working on a reply...