Skip navigation
Currently Being Moderated

FAO Murray - question about your honeypot trick

Jun 15, 2012 12:00 PM

Hi Murray - Just looking at your honeypot trick as posted elsewhere. Hope you don't mind me posting it here, but I assume its OK, as its in the public domain:

 

Here's how it works -

On my site, I have added two fields to my form -

1.  <input type="text" name="address2" id="address2" class="special"
value="">
2.  <textarea name="moreInfo" id="moreInfo" class="special">More
Info</textarea>

Both of these fields have been hidden BY CSS, e.g.,

.special { display:none; }

This way, a real visitor would not see these fields.

Then when I process the results of the form, if "address2" is not blank, or
is "moreInfo" is not "More Info", I discard the form, assuming that the only
entity that will see these fields is a javascript bot.

 

 

I have a form that submits to a service Salesforce (don't know if you know it), but it means the form action is set to a Salesforce URL.

 

If I'm adding the honeytrap fields above to the form, how do you do the processing to determine whether or not the form submits? It may be that it would have to be done on the page with the form, but in this instance that's not possible, as the form submits to a page I have no control over?

 

Thanks for any help with this.

 
Replies
  • Currently Being Moderated
    Jun 15, 2012 12:18 PM   in reply to johngordon12

    You need a server side script to collect, process and transmit form data.  The script determines how honeypot (hidden) field data are handled.  On my forms, my PHP script sees data in the hidden fields and treats them as spam.  Script stops executing.  No form data is sent to the server.

     

     

     

    Nancy O.

    Alt-Web Design & Publishing

    Web | Graphics | Print | Media  Specialists 

    http://alt-web.com/

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 16, 2012 9:32 AM   in reply to johngordon12

    You might be able to use an intermediate script on your server for form validation, hidden fields, etc... and then have the script send data to URL at Salesforce.

     

     

    Nancy O.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points