Don't Allow Gmail or Yahoo Emails

  • 11 October 2015
  • 1 reply
  • 5 views

I get sooooo much spam on my form from my Google ads I’d like to disallow gmail and yahoo email addresses entirely from my lead form. Is there any way to accomplish this without adding custom javascript to the page?


1 reply

Userlevel 7
Badge +3

Hi Lee, 

Unfortunately, no way to do it without adding a bit of code. You can only validate the email field as an email address. 

However, there is an older question here in the community with the exact script you can use/modify to fit your needs:

question/topics/modify_form_validation_to_prevent_free_email_domains
scripthttps://gist.github.com/markwainwright/0c600a808a6477d138b8

Another solution might be to use an external tool like Wufoo for your lead form. 

Best of luck,

Hristian

Reply