문제

I've a form with a text input for email. I don't want to use the captcha to avoid robots. But I used to use a method.

I give my email text input a name="courrier" or another name and I create another hidden text input with name="email".

In the php code, I've put a condition:

if (empty($_POST['email'])) {
  // add infos in the database
} else {
  //this is not allowed to use robots
}

Is this method useful to avoid some captcha that can be annoying in the website?

도움이 되었습니까?

해결책

is this method useful to avoid some captcha that can be ennoying in the website???

To a certain extent, yes. It's not foolproof, but it'll certainly block some attempts.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top