Search code examples
phpbotscaptcha

A new method to avoid Robots


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?


Solution

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