| Post |
|
Guest
| Maanushah 7:46 pm January 12, 2012
| |
|
|
Hi there,
I am trying to find out how can I block or prevent visitors from entering non-corporate email address (i.e. gmail, hotmail, yahoo…) when completing the web registration form on the site?
I want to block email addresses according to their extensions?
Please help..
Thanks in advance?
|
|
|
Moderator
| Paul Amsterdam, NL posts 421 7:51 pm January 12, 2012
| |
|
|
Hi
You could use a regular expression for the email field to exclude those domains.
Paul.
|
|
|
|
|
Guest
| Maanushah 11:12 pm January 12, 2012
| |
|
|
Paul said:
Hi
You could use a regular expression for the email field to exclude those domains.
Paul.
I am using the pluing on wordpress site. How will I use a regular expression – i am new to this.
Many Thanks!
|
|
|
Guest
| Maanushah 6:37 pm January 18, 2012
| |
|
|
Paul said:
Hi
You could use a regular expression for the email field to exclude those domains.
Paul.
What will be the regular expression that I can use. Can someone please help.
Thanks in advance!
|
|
|
Guest
| Maanushah 3:58 pm February 7, 2012
| |
|
|
I figured it out.
So add this to the email Input field where it reads "Regular expression for field validation":
^([\w-\.]+@(?!abc.com)(?!efg.com)(?!anyemail.com)([\w-]+\.)+[\w-]{2,4})?$
cheers!
|
|