TOPIC:

Prevent certain types of entry in form fields 2 months 3 weeks ago #263654

  • dido
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 50
  • Thanks: 0
no i am still wondering
i ve check the script an it blocks http
but now i get furthermore spams including http
Like
Telefon Eingabe: 85951727438
E-Mail Eingabe: rocade3s@gmail.com
Ihre Nachricht: Gelenke wie in der Jugend - bit.ly/3isurP1

Please Log in or Create an account to join the conversation.

Prevent certain types of entry in form fields 2 months 3 weeks ago #263667

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 7843
  • Karma: 3
  • Thanks: 550
Hi,

apparently bots can still add the javascript to the left.
In this case, you could have to write the code in PHP.

Go to your form->Advanced->More options->Submit pieces->Begin submit->check Custom and put:
$this->execPieceByName('ff_InitLib');

$badWords = array('http','www', 'https', 'href','<','>','/'); // here add what you want to avoid, each word between '' and separated by a coma.
$checkFields = array('message'); // Here add the fields that have to be observed, between '' and separated by coma, please replace message with name of your element (not title).
foreach ($checkFields as $Fld) {
    $FldVal = ff_getSubmit($Fld);
    $matches = array();
    $matchFound = preg_match_all(
        '/\b(' . implode($badWords,'|') . ')\b/i',
        $FldVal,
        $matches
    );
    if ($matchFound) {
        ff_die('Goodbye !');
    }
}
P.S: please follow comments next to the code :)

Also, you can integrate spambotcheck plugin and projecthoneypot.org.
Here is Eddy's experience:
crosstec.org/en/forums/41-breezingforms-....html?start=6#256401

Hope this helps

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Prevent certain types of entry in form fields 2 months 3 weeks ago #263670

  • dido
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 50
  • Thanks: 0
Did you mean at this place see attached? (dont understand and doesnt find ">Advanced->More options->Submit pieces->Begin submit->check Custom")
Attachments:

Please Log in or Create an account to join the conversation.

Prevent certain types of entry in form fields 2 months 3 weeks ago #263671

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 7843
  • Karma: 3
  • Thanks: 550
Hi,

yep, that is it :)

Please replace message in this part:
$checkFields = array('message');
with name of your element in which you want to stop spam :)

Just follow my comments in the code :)

Let me know if you need more help

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Prevent certain types of entry in form fields 2 months 3 weeks ago #263687

  • dido
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 50
  • Thanks: 0
I change the params but it doesnt work
attached my integration
Attachments:

Please Log in or Create an account to join the conversation.

Prevent certain types of entry in form fields 2 months 3 weeks ago #263690

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 7843
  • Karma: 3
  • Thanks: 550
Hi,

please try to disable validation for this element and then test again

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Moderators: ForumSupport
Time to create page: 0.054 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!