Spam Prevention/Reduction - Contact Form?

后端 未结 13 1621
余生分开走
余生分开走 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:23

    The only (client-side) way other than a CAPTCHA type user confirmation would be to write the whole thing dynamically. A lot (but not all) of robots would probably ignore the dynamic content. Eg

    document.write("<"+"form>"
      +" NAME "
      +" <"+"input type='text' name='name' /> "
      +"EMAIL "
      +"<"+"input type='text' name='email' /> "
      +"MESSAGE "
      +"<"+"textarea name='message' /> "
      +"<"+"input type='submit' /> "
    +"<\/form> ");
    

提交回复
热议问题