Results 1 to 2 of 2

Thread: Require Field To Be Empty

  1. #1
    Join Date
    Mar 2008
    Posts
    21

    Default Require Field To Be Empty

    I'm looking for a way to make a condition that will require a field to always be empty. I guess you can call it a honey pot. I read an article at sans.org that had a great idea. They suggested some other ways to protect against form SPAM...

    "..... one or more fake form fields are added to the form. But style sheets are used to make them "invisible". To further confuse the attacker, the fake form fields are given names like "subject" and such suggesting to the bot that these are the form fields they are looking for. However, whenever a form is submitted with content in a "hidden" field, it is discarded. I am not talking about the classic hidden form fields that are not user changeable, but form fields that are marked with "display: none"........"

    How do I make a condition to discard the form if the invisible field contains data?

  2. #2
    Join Date
    Mar 2008
    Posts
    21

    Default Re: Require Field To Be Empty

    Here's what I've come up with...

    The trap field:
    <textarea name="textarea" style="display: none" id="textarea"></textarea>

    My requirements / conditions that make this work:
    <input name="required" type="hidden" value="realname,email,phone">
    <input name="conditions2" type="hidden" id="conditions2" value=":##TEST#email^textarea#Humans can't see the textarea field! You must be a SPAMBOT!#" />

    I have no idea if the invisible field trap is even valid these days, but it's just another piece to protect my form from spam. I'd love to hear input on this.

    Tylan

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Empty Fields
    By olesek in forum FormMail Subscription Support
    Replies: 3
    Last Post: 27-May-2005, 10:05 PM
  2. Treating Zeros as Empty
    By russellr in forum FormMail Subscription Support
    Replies: 10
    Last Post: 17-Mar-2005, 05:01 AM
  3. Don't Display Empty Fields
    By timandkids in forum FormMail Subscription Support
    Replies: 4
    Last Post: 13-Mar-2005, 09:18 PM
  4. Removing empty variables from eMail reply
    By Prospero in forum FormMail Subscription Support
    Replies: 4
    Last Post: 25-Jul-2004, 08:22 AM
  5. cvs file empty? help!
    By zoe77 in forum FormMail Subscription Support
    Replies: 6
    Last Post: 20-Jun-2004, 03:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •