doucu7330 2015-06-11 09:13
浏览 210
已采纳

验证忽略gmail或其他服务别名的唯一电子邮件

The scenario is I would like to only accept a unique email address from a persion ignoring gmail aliases (and if any other services do something similar)

The reason for this is we are giving away a limited amount of discount codes and to be fair we don't want someone claiming a large amount with only one email address.

From my understanding:

  • If gmail.com or googlemail.com then remove the + and anything after as that is the alias.
  • If is gmail then remove any dots from the username as they are ignored. john.smith@ is the same as johnsmith@
  • Don't just invalidate the + symbol as it is valid for email addresses.

Are there any other services I need to be aware of that allow one to alias their email address into multiple forms and any additionl considerations for my scenario.

Update I do have a database to store submissions with email addresses and claimed codes.

I also understand that it's difficult to stop people claiming multiple codes outright. Disallowing aliases is simply there to possibly reduce it.

Cheers.

  • 写回答

2条回答 默认 最新

  • dongnigeng1295 2015-06-11 09:48
    关注

    Writing code to ignore a handful of known alias formats in a single service (like Gmail) isn't a big deal. However trying to prevent a single person from claiming multiple discounts based on email address alone is kind of an impossible task.

    There are a LOT of different ways to create new email addresses and aliases. For example, there are services out there that let you create disposable emails, through which you can have as many different addresses as you need. Also, for as low as a few dollars, you can get your own email host with your own domain, where you can register a bunch of addresses and/or a catch all address.

    It would take an exorbitant amount of resources to try to prevent anybody determined to claim a bunch of your discounts. Not without other identifying methods, other than email address.

    I would consider adding other validation methods. Depending on what you are doing, that might be things like linking to Facebook, or even asking for credit-card details for verification.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序
  • ¥15 多址通信方式的抗噪声性能和系统容量对比
  • ¥15 winform的chart曲线生成时有凸起
  • ¥15 msix packaging tool打包问题
  • ¥15 finalshell节点的搭建代码和那个端口代码教程
  • ¥15 Centos / PETSc / PETGEM
  • ¥15 centos7.9 IPv6端口telnet和端口监控问题
  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作