通过电子邮件前端防止垃圾邮件

发布于 2024-07-13 16:13:49 字数 401 浏览 5 评论 0原文

我为我的游戏编写了一个错误报告器,在它启动后,用户可以查看数据并通过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

饮湿 2024-07-20 16:13:49

除了常规的垃圾邮件过滤器等之外,我对此确实有一个建议。

如果在您的应用程序或页面中,您可以使用 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].

只是我以为 2024-07-20 16:13:49

当第一次尝试上传失败时保存报告怎么样? 当用户启动游戏时,启动一个后台线程尝试再次传送报告。 最终,它应该可以工作,用户将不得不做任何事情。

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.

情绪操控生活 2024-07-20 16:13:49

听起来您似乎正在尝试区分来自以前从未与您交谈过、向您发送附件的随机人员的电子邮件与垃圾邮件。

祝你好运!

  • 您可以经常更改电子邮件地址吗?
  • 需要特定的主题行吗?
  • 需要纯文本电子邮件吗?

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!

  • Can you change the e-mail address every so often?
  • Require a certain subject line?
  • Require plain-text e-mail?
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文