简体   繁体   English

如何阻止特定的 iOS 设备使用我的应用程序?

[英]How to block specific iOS Devices from using my App?

I have an app where users registering signup with my service and purchase items with online payment or Cash on delivery.我有一个应用程序,用户注册我的服务并通过在线支付或货到付款购买商品。

Fraudulent users are increasing exponentially by the day, and blocking users id from backend only delays them creating new ones.欺诈用户与日俱增,从后端阻止用户 ID 只会延迟他们创建新用户的时间。

What's the recommended approach to block a whole device from using Or registering to my app?阻止整个设备使用或注册到我的应用程序的推荐方法是什么? Even if he/she deleted & reinstalled my app.即使他/她删除并重新安装了我的应用程序。 Is there a way to uniquely identify a device?有没有办法唯一识别设备? Or any other approach?还是有其他方法?

All other posts i see are from 2014, and got me more confused.我看到的所有其他帖子都是 2014 年的,让我更加困惑。

The DeviceCheck APIs were created for this purpose. DeviceCheck API 就是为此目的而创建的。

Using the DCDevice class in your app, you can get a token that you use on your server to set and query two binary digits of data per device, while maintaining user privacy.在您的应用程序中使用 DCDevice class,您可以获得一个令牌,您可以在服务器上使用该令牌来设置和查询每个设备的两位二进制数据,同时维护用户隐私。 For example, you might use this data to identify devices that have already taken advantage of a promotional offer that you provide, or to flag a device that you've determined to be fraudulent.例如,您可以使用此数据来识别已经利用您提供的促销优惠的设备,或者标记您确定为欺诈的设备。

Highlight mine.突出我的。

Essentially, this API allows you to set a few flags on specific devices and check against them, without having to violate user privacy with unique IDs.从本质上讲,这个 API 允许您在特定设备上设置一些标志并检查它们,而不必使用唯一 ID 侵犯用户隐私。

Like the documentation states, you will need to use a combination of these APIs with your server to block fraudulent devices.如文档所述,您需要将这些 API 与您的服务器结合使用来阻止欺诈设备。

It even provides a DCAppAttestService API you can use to validate the integrity of your app.它甚至提供了DCAppAttestService API,您可以使用它来验证应用程序的完整性。 As an extra note, it cannot check for jailbreak, but you can even check if your app has been modified in an unauthorized manner to act against that.作为额外说明,它无法检查越狱,但您甚至可以检查您的应用程序是否已以未经授权的方式进行修改以采取行动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM