TOPIC:

Exclude certain E-Mail addresses [SOLVED] 2 weeks 3 days ago #252533

  • Topic Author
  • Ehsan Akbari
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 22
  • Thanks: 1
I get a lot of spam entries, especially with Russian email addresses.
Can I add a script to the email field that excludes certain domain endings

something like:
if address contains *.ru or *gmail* then exit?

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

Last edit: Post by Ehsan Akbari. Reason: solved

Exclude certain E-Mail addresses 2 weeks 3 days ago #252537

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 3038
  • Karma: 3
  • Thanks: 260

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

Exclude certain E-Mail addresses 2 weeks 3 days ago #252541

  • Topic Author
  • Ehsan Akbari
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 22
  • Thanks: 1
Thanks, but the suggested solution only works for ONE domain.
How can I exclude ALL ".ru"-addresses AND others, e.g. gmail.

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

Exclude certain E-Mail addresses 2 weeks 3 days ago #252543

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

then don't use the code from my link from message above.

In you form add element and name it email.
Go to this email element->Properties->Validation->check Custom and put this:
function ff_email_validation(element, message)
{
  var bad = /\b(gmail|.ru)\b/ig;
    if (!bad.test(element.value)) return '';
        if (message=='') message = element.name+" faild in my test.\n";
        ff_validationFocus(element.name);
        return message;
return '';
} // ff_email_validation
Let me know if you need more help

Regards,
Tihana
The following user(s) said Thank You: Ehsan Akbari

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

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.047 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!