Don't Allow Gmail or Yahoo Emails


#1

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?


#2

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:

questionhttps://community.unbounce.com/unbounce/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