Spam Prevention/Reduction - Contact Form?

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

    Use JS technology. Like if a user comes on your contact page then javascript will generate a string or anything like that you prefer and put the information on a hidden text field. But it is not the actual solution, smart bot can easily crack it.

    Another way is, You can also use email verification after contact form submission. And store the data on your database. If customer verifies the url through email then the contact information will mailed to you from database.

    And also use delay to prevent continuous robot attack. Like sleep() in PHP code. This will add few delay in your code. By this way you can reduce random attacks but this is not the prevention method.

提交回复
热议问题