自定义用户ID和位置IP [英] Custom User Id and Location IP

查看:103
本文介绍了自定义用户ID和位置IP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个网络应用程序,我们需要根据用户的身份验证名称跟踪用户的活动。使用IP地址的位置。我们在此链接上使用了示例代码(docs.microsoft.com/en-us/azure/azure-monitor/app/usage-send-user-context)
但我们无法设置用户ID和位置IP地址。

解决方案

客户端IP将被清零&n ;; AI提取地理位置后
信息。 这样做是为了符合欧盟的GDPR隐私政策。  



这可以帮助您追踪用户位置数据(虽然请注意,这最初是在GDPR之前编写的):


https://apmtips.com/blog/2016/07/05/client-ip-address/



" Application Insights收集客户端IP地址。将从中提取国家,州和城市信息,并且将IP地址的最后一个八位字节设置为0以使其不可识别。因此,默认情况下,Application Insights绝不会存储实际的
IP地址。"




We have a web application where we need to track the user's activity based on the user's authentication name & location using the IP address. We used the sample code on this link(docs.microsoft.com/en-us/azure/azure-monitor/app/usage-send-user-context) but we couldn't set user id and location IP address.

解决方案

Client IP will be zeroed out after AI extracts the Geo location information.  This is done to be compliant with the GDPR privacy policy for the EU.  

This may help you track down user location data (although note that this was originally written before the GDPR):

https://apmtips.com/blog/2016/07/05/client-ip-address/

"Application Insights collects client IP address. Country, state and city information will be extracted from it and than the last octet of IP address will be set to 0 to make it non-identifiable. So Application Insights will never store an actual IP address by default."


这篇关于自定义用户ID和位置IP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆