Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • horsted 74 posts 136 karma points
    May 23, 2012 @ 11:04
    horsted
    0

    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 :-)

  • horsted 74 posts 136 karma points
    May 24, 2012 @ 01:06
    horsted
    0

    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). 

    <input id="BOTCHECK" type="text" style="display: none;" value="Spambot" /> 


    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> 

     

  • Barry Fogarty 493 posts 1129 karma points
    Jul 31, 2012 @ 15:45
    Barry Fogarty
    0

    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.

  • Allan Hawkey 232 posts 303 karma points
    May 07, 2013 @ 12:11
    Allan Hawkey
    0

    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?

Please Sign in or register to post replies

Write your reply to:

Draft