ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

HoneyPot Spam and empty forms

pixelhexe 26 Oct, 2015
I altered my spam check to the honeypot spam check because it seems to be very user friendly.
https://www.chronoengine.com/faqs/55-cfv4/cfv4-anti-spam/2699-how-can-i-add-a-honeypot-spam-check.html

Since this step there are empty form submissions every now and then. I already figured out that the submissions come from crawler bots which I try to ban with the "banned_ip method" as described on this page
https://www.chronoengine.com/faqs/55-cfv4/cfv4-anti-spam/2601-how-can-i-stop-spam-from-my-form.html

I am just wondering if - instead of listing several IPs - it would be easier to add to the custom code action of the honeypot spam an additional query of a required field - so that this is not only checked by the javascript validation method but also by php.
For example if your form has a required email field with name "email" you could add to the default custom code of the honeypot spam
|| $form->data['email'] == ''
as follows:

<?php
if ( $form->data['confirm'] != '' || $form->data['email'] == '' ) {
  $mainframe->redirect('http://www.ic3.gov/default.aspx');
}
?>

... wrong or right?

Best regards
from a very constant and satisfied ChronoForms user :-)
GreyHead 26 Oct, 2015
Hi pixelhexe,

That should work OK. Here's a slightly updated version of the code
<?php
if ( !empty($form->data['confirm']) || empty($form->data['email']) ) {
  $app = JFactory::getApplication();
  $app->redirect('http://www.ic3.gov/default.aspx');
}
?>
Bob
pixelhexe 26 Oct, 2015
Fine, and thanks for the improvement, Bob!
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com