Defeating Form 'bots

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default Defeating Form 'bots

    Although I've had forms on my site for several years, have recently been
    receiving too many forms filled out by robots (according to my domain host).
    They suggested a way of defeating them by including a hidden field; then, when
    the bot fills in the hidden field, it would signal that the form should NOT be
    sent.

    Does anyone know how to do this reverse logic? I can insert a hidden field,
    but cannot find how to direct behavior if it is filled in.

    Any thoughts appreciated.

    mauth Guest

  2. Similar Questions and Discussions

    1. Spry Region Defeating Me
      I purchased the entire set of Adobe Creative Suite 3 Total Training Videos and have walked through the 2 DVDs of Dreamweaver CS3 lessons. I also...
    2. How to identify spiders and bots
      Hello, I'm thinking of this too. I've made a component function wich determines bots by the type: <cffunction name="isBot" hint="?????????? ??...
    3. authenticate win32 form client with form based authentication web services
      (Type your message here) -------------------------------- From: kitchai yong Hi, Can you tell me how i authenticate the win32 form client...
    4. Defeating OS buffering?
      I'm trying to use Perl to automate a specific test process, but OS buffering is defeating some of the main utility of it. I run a program like...
    5. Hiding data from screen scrapers and bots
      I was hoping someone here would know something about screen scrapers, spiders, bots. Perhaps it's a stupid question, but here it goes anyway... ...
  3. #2

    Default Re: Defeating Form 'bots

    mauth wrote:
    > Although I've had forms on my site for several years, have recently been
    > receiving too many forms filled out by robots (according to my domain host).
    > They suggested a way of defeating them by including a hidden field; then, when
    > the bot fills in the hidden field, it would signal that the form should NOT be
    > sent.
    >
    > Does anyone know how to do this reverse logic? I can insert a hidden field,
    > but cannot find how to direct behavior if it is filled in.
    >
    > Any thoughts appreciated.
    >
    It would depend on what server language you have available, and what type of form method you're using (get or post). Essentially what you'd do is to check for a value in the hidden field and if present then perform some action, such as redirecting to a success/confirmation page even though the redirect is done prior to any other form processing.

    I'd suggest asking in the Dreamweaver application dev forum including the server language your using as well that type of form method you're using:
    [url]http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=12&catid=263&entercat=y[/url]


    FWIW: WebAssist (my employer) has a solution pack that has several anti-spam options (including a honeypot, which is what the hidden field value check is commonly called) for form processing:
    [url]http://www.webassist.com/professional/products/productdetails.asp?PID=257[/url]
    Take the feature tour (link at the top of the right hand column)



    --
    Danilo Celic
    | [url]http://blog.extensioneering.com/[/url]
    | WebAssist Extensioneer
    | Adobe Community Expert
    danilocelic AdobeCommunityExpert Guest

  4. #3

    Default Re: Defeating Form 'bots

    On 28 Jan 2009 in macromedia.exchange.extensions.dreamweaver, mauth
    wrote:
    > Although I've had forms on my site for several years, have recently
    > been receiving too many forms filled out by robots (according to my
    > domain host). They suggested a way of defeating them by including a
    > hidden field; then, when the bot fills in the hidden field, it would
    > signal that the form should NOT be sent.
    >
    > Does anyone know how to do this reverse logic? I can insert a
    > hidden field,
    > but cannot find how to direct behavior if it is filled in.
    >
    > Any thoughts appreciated.
    Actually, best practice seems to be to use two hidden fields, one with
    an initial value, and one without. It's the rare bot which can ignore
    both fields. Check for one field to be blank, and the other to have
    the initial value. And hide them using CSS, not by making them
    "hidden" fields:

    <style type="text/css">
    ..important {
    display : none ;
    }
    </style>

    <div class="important">
    <p>Please don't change the next two fields.</p>
    <input type="text" name="address2" id="address2" value="xyzzy">
    <input type="text" name="address3" id="address3" value="">
    </div>

    Bots tend to like fields with names like 'address'. The text in the
    paragraph is for those few rare human beings who have a non-CSS capable
    browser. If you're not worried about them, you can leave it out.

    In the logic for processing the form, you'd do something like:

    if (address2 == "xyzzy" and address3 == "") {
    /* OK to send */
    } else {
    /* probably have a bot */
    }

    --
    Joe Makowiec
    [url]http://makowiec.net/[/url]
    Email: [url]http://makowiec.net/contact.php[/url]
    Joe Makowiec Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139