Simple antispam for HTML forms without captcha

news Add comments

Captcha antispam is very annoying (even if there might be some fancy implementations), a simpler way to get no less spam towards email forms can be an approach like this:

- create a hidden text form hidden by CSS;

-  if this hidden field contains some sort of text the form won’t be posted (cause generally spam bots don’t bother on CSS).

An human user, using a (d|r)ecent browser don’t see the form and he can post without annoyng captcha insertion. Legacy browser (no CSS aware) would display a warning telling the user not to write anything in the text form.

Here’s the astonishing trivial code.

3 Responses to “Simple antispam for HTML forms without captcha”

  1. Siva Says:

    Hi
    sounds simple and great !
    can I have a demo of this type of form security ?

    Siva

  2. Chris S Says:

    Actually, I’ve tried this before on a website that received a lot of spam comments – it didn’t work as well as CAPTCHA.
    Mainly because it seemed that most spiders/robots only filled in fields they recognised (name, email, message etc).

    Cheers,
    Chris

  3. Scorpion Says:

    If you use “subject” has a hidden field name the bot will pick it up and fill it out. And if you need a subject line simply call it something else…

Leave a Reply

© 2000-2007 by fosk & powered by Wordpress themed by N.Design Studio