Spam Prevention/Reduction - Contact Form?

后端 未结 13 1622
余生分开走
余生分开走 2020-12-01 03:36

I want to add a simple Contact form to my web site so that customers can contact me easily.

NAME
13条回答
  •  醉话见心
    2020-12-01 04:11

    #sec {
      visibility: hidden;
      padding: 0;
      margin: 0;
      height: 1;
    }
    
      NAME
      
      
    EMAIL
    MESSAGE

    **Here, only a user who clicks on the submit button actually could submit the form. using auto submit simply redirects the bot to google.com. **

    *Also the input 'security' is an input field that is hidden to users, and visible to certain bots, known commonly as HoneyPot Captcha. On the server side, you can simply skip all the requests that has the 'security' field filled. Not every bot can be tricked this way, and this is where the attribute formaction comes into play *

提交回复
热议问题