阻止 iOS 应用程序上的垃圾邮件发送者

发布于 2024-12-26 13:42:19 字数 244 浏览 1 评论 0原文

有哪些可靠且有效的方法可以阻止垃圾邮件发送者或 iOS 应用程序的滥用用户?

这款 iOS 应用程序允许电子商务和聊天,但试图防止社区被 Craigslist 氛围所取代,或允许欺诈活动发生。

通过 IP 地址阻止垃圾邮件发送者或滥用行为的用户是否可行,特别是在动态 IP 地址普遍存在的情况下?

有没有什么方法可以通知 Apple 关于垃圾邮件发送者或滥用行为的用户,以防止他们在多次违规后通过 iTunes 下载应用程序?

What are some reliable and efficient methods to block spammers or abusive users of an iOS app?

The iOS app allows for ecommerce and chat, but is trying to prevent the community from being overtaken by a Craigslist vibe, or allow fraudulent activities to occur.

Is it feasible to block a spammer or abusive user via IP address, especially since dynamic IP addresses are prevalent?

Is there any method to notify Apple about a spammer or an abusive user, to prevent them from downloading an app via iTunes after repeated violations?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

梦纸 2025-01-02 13:42:19

有几个选项:

1) 依赖 MAC 地址。出于隐私原因,您不应将 MAC 地址本身发送到您的服务器,而应将其哈希值(最好带有一些盐)发送到您的服务器。

2) 使用 CFUUIDCreate() 创建您自己的 UUID,并将其保存到您的钥匙串中。即使卸载应用程序后,钥匙串条目仍然存在,并且在重新安装时仍然存在。用户必须重置他的设备才能删除该条目。

3)拥有自己的电子邮件/密码身份验证系统,在这种情况下您可以撤销地址。如果您这样做,最好不要允许诸如 mailinator.com 之类的域。

4)使用OAUTH,IOS版本5甚至内置了对使用Twitter凭证的支持。

A few options:

1) Rely on the MAC address. For privacy reasons you shouldn't send the MAC address itself to your server, but a hash of it (preferably with some salt).

2) Create your own UUID using CFUUIDCreate(), and save that to your keychain. Keychain entries persist even after the app is uninstalled, and will still be there when it is re-installed. The user will have to reset his device to get rid of the entry.

3) Have your own email/password authentication system, in which case you can just revoke addresses. Preferably if you do this you should disallow domains such as mailinator.com.

4) Use OAUTH, IOS version 5 even has some built in support for using Twitter's credentials.

_失温 2025-01-02 13:42:19

您可以使用 CFUUIDCreate() 为特定设备上的应用程序生成唯一标识符。唯一的缺点是,如果用户卸载该应用程序并重新安装,他们将获得一个新的 ID。如果这是一个问题,您可以考虑使用每个设备唯一的 MAC 地址:

如何以编程方式获取 iphone 的 MAC 地址

you can generate a unique identifier for your application on a specific device by using CFUUIDCreate(). the only downside to this is that if the person uninstalls the app and re-installs it they'll get a new ID. if this is a problem, you could look into using the MAC address which is unique per device:

How can I programmatically get the MAC address of an iphone

忆伤 2025-01-02 13:42:19

仍然可以通过调用 [[UIDevice currentDevice] uniqueIdentifier] 来获取唯一的设备 ID (UDID)。它在 iOS5 中已被弃用(弃用意味着“将来将被删除”,而不是“不起作用或会让你被拒绝”),但它仍然有效,目前是唯一标识设备的最简单方法(您也可以获取MAC 地址,这比较棘手,但几乎同样好并且没有弃用)。

完成后,只需根据垃圾邮件发送者的 UDID 将其列入黑名单并阻止来自他们的消息即可。你不需要通知Apple,只需忽略来自他们设备的消息即可 - 他们不太可能每次想向你发送垃圾邮件时都会出去购买新的iPhone,所以最终他们会放弃。

如果这看起来太严厉,或者你担心他们留下负面反馈,你可以执行带有警告的“三击”原则,或者一次仅阻止他们几个小时,等等。

It's still possible to get a unique device ID (UDID) by calling [[UIDevice currentDevice] uniqueIdentifier]. It's deprecated in iOS5 (deprecated means "will be removed in future", not "doesn't work or will get you rejected"), but it still works and for now is the easiest way to uniquely identify a device (you can also get the MAC address, which is trickier but nearly as good and not deprecated).

Once you have that, just blacklist spammers based on their UDID and block messages from them. You don't need to inform Apple, just ignore messages from their device - they aren't likely to go out and buy a new iPhone every time they want to spam you, so eventually they'll give up.

If that seems too harsh, or you're worried about them leaving negative feedback, you could operate a "3 strikes" principle with warnings, or block them for only a few hours at a time, etc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文