Pruthvi Raj Nadimpalli
Pruthvi Raj Nadimpalli

Reputation: 1373

Registration - Accept only work emails

I'm working on a PHP application. I do not want people with free emails (like gmail, ymail etc.) to sign up for it.

How can i restrict the registration to work emails only??

Thanks, Sash

Upvotes: 0

Views: 276

Answers (1)

MightyPork
MightyPork

Reputation: 18881

you can blacklist some domains, but people can just make up nonsense and how can you verify that it's a work e-mail? I think this is a really artificial and odd restriction.

Not everyone has "work email" anyway.

As for the blacklist, if you split the e-mail by @, you can compare the second part against an array of disallowed domains.

Upvotes: 2

Related Questions