通过电子邮件前端防止垃圾邮件
我为我的游戏编写了一个错误报告器,在它启动后,用户可以查看数据并通过 HTTP 将报告提交到我的 Web 服务器。 如果提交失败,用户可以选择保存报告并稍后重试,使用错误报告器本身、使用 Web 表单上传文件或将报告附加到电子邮件中。 我知道可以通过分析源 IP 来防止 HTTP 上的垃圾邮件,但我不确定在通过电子邮件接收报告时如何处理。 有任何想法吗?
谢谢, Rob
编辑:
附件将始终采用 JSON 格式; 任何其他的都将被拒绝。 我只是担心有人会这样做:
for i = 1, 10000 do
json = generate_valid_json()
send_email(json)
end
并用噪音淹没我的错误跟踪器。
I've written a bug reporter for my game, and after it launches, the user can review the data and submit the report to my web server via HTTP. If the submission fails, the user has the option to save the report and try again later, using the bug reporter itself, uploading the file with a web form, or attaching the report to an e-mail. I know that I can prevent spam over HTTP by analyzing the source IP, but I'm not sure how to go about this when receiving reports over e-mail. Any ideas?
Thanks,
Rob
EDIT:
The attachment will always be in JSON format; any other will be rejected. I'm just worried someone will do this:
for i = 1, 10000 do
json = generate_valid_json()
send_email(json)
end
and flood my bug tracker with noise.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
除了常规的垃圾邮件过滤器等之外,我对此确实有一个建议。
如果在您的应用程序或页面中,您可以使用 Mailto: 链接指定主题=,请在您希望收到的消息的主题中放置一个唯一的 ID。
这样您就可以实现 2 个目标 - 识别主题中的 ID,您就会知道它不是垃圾邮件,如果该 ID 与您的错误报告相关联,那么您就已经知道在它到达时将其放在哪里。
编辑:这不一定必须在主题中,也可以在正文中,或者您可以简单地给他们一个唯一的 ID 电子邮件地址,以便在您支持包罗万象的情况下发送到...例如 [电子邮件受保护]。
Other than regular spam filters, etc I do have a suggestion for this.
If, in your application, or page, you can specify a Subject= with the Mailto: link, put a unique ID in the Subject of your message that you will be expecting to receive.
That way you accomplish 2 goals - recognizing the ID in the subject, you will know it's not spam, and if that ID is associated with your bug report, you'll already know where to put it when it arrives.
EDIT: This doesn't necessarily have to be in the subject, either - could be in the body, or you could simply give them a unique ID e-mail address to send to if you can support a catchall... like [email protected].
当第一次尝试上传失败时保存报告怎么样? 当用户启动游戏时,启动一个后台线程尝试再次传送报告。 最终,它应该可以工作,用户将不得不做任何事情。
How about saving the report when the first attempt to upload fails. When the user starts the game, start a background thread which tries to deliver the report again. Eventually, it should work and the user will have to do anything.
听起来您似乎正在尝试区分来自以前从未与您交谈过、向您发送附件的随机人员的电子邮件与垃圾邮件。
祝你好运!
Sounds like you're trying to tell the difference between e-mail from random people you've never talked to before, that are sending you attachments, from spam e-mail.
Good luck!