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条)

报告相同问题?

悬赏问题

  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法