Honeypot Email Blocking

Issues related to forms.
Post Reply
User avatar
gofrank
 
 
Posts: 192
Joined: Sun Dec 30, 2007 2:43 am
Location: Florida, USA

Honeypot Email Blocking

Post by gofrank »

If the "Honeypot" feature is enabled on a form in WB19, is there any additional code to be added by the user to actually enable blocking? The help file and tutorial indicates the Honeypot triggered email "can be blocked"...but does WB actually do the blocking, or is there another step on the user's side?

The reason I ask is that in looking at the PHP code, the Honeypot selected variable doesn't appear to be examined during validation.
Last edited by gofrank on Wed Nov 29, 2023 12:03 pm, edited 1 time in total.
Billing clients for your freelance work? Try Minute-2-Minute, the project management, timing, and billing system. Perfect for web developers who charge by the hour. FREE 45-day trial.
User avatar
Pablo
 
Posts: 22995
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Honeypot Email Blockinig

Post by Pablo »

You do not have to add any code yourself.

The generated code will look something like this:

Code: Select all

 if (!empty($_POST['phone']))
   {
      $error .= "Spam detected.\n<br>";
      throw new Exception($error);
   }
User avatar
gofrank
 
 
Posts: 192
Joined: Sun Dec 30, 2007 2:43 am
Location: Florida, USA

Re: Honeypot Email Blocking

Post by gofrank »

You're right! I missed the exception when looking at the code. When that happens, it's a sign I've spent too much time at the computer and need a good night's sleep.

Thanks, Pablo.
Billing clients for your freelance work? Try Minute-2-Minute, the project management, timing, and billing system. Perfect for web developers who charge by the hour. FREE 45-day trial.
Post Reply