doujiabing1228 2014-04-20 12:51
浏览 85
已采纳

注册 - 仅接受工作电子邮件

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

  • 写回答

1条回答 默认 最新

  • doucong8553 2014-04-20 12:54
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 用51单片机控制急停。
  • ¥15 孟德尔随机化结果不一致
  • ¥15 在使用pyecharts时出现问题
  • ¥15 深度学习残差模块模型
  • ¥50 怎么判断同步时序逻辑电路和异步时序逻辑电路
  • ¥15 差动电流二次谐波的含量Matlab计算
  • ¥15 Can/caned 总线错误问题,错误显示控制器要发1,结果总线检测到0
  • ¥15 C#如何调用串口数据
  • ¥15 MATLAB与单片机串口通信
  • ¥15 L76k模块的GPS的使用