Windows Azure:检测客户端位置
我们有一个部署在 Windows Azure 上的应用程序。该应用程序为 Windows Phone 设备上安装的客户端应用程序提供服务。现在我面临一个新的要求 - 根据客户的位置(更准确地说,根据运营商的位置)过滤客户。要求是过滤掉某些列入黑名单的国家(如伊朗等)。
我知道在 Google App Engine 中,任何传入的 HTTP 请求都有一个标头,用于指定客户端的位置。想知道 Azure 上是否有类似的东西。
We have an application that is deployed on Windows Azure. The application serves client apps installed on Windows Phone devices. Now I an facing a new requirement - filter clients based on their location (more accurately, based on the location of the operator). The requirement is to filter out certain blacklisted countries (like Iran etc.)
I know that in Google App Engine, any incoming HTTP request has a header which specifies location of client. wanted to know if there;s anything resembling that on Azure.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,Azure 没有任何用于 IP 地理位置的移动特定功能。
可能对您有帮助的资源的一般列表位于:https://stackoverflow。 com/questions/283016/know-a-good-ip-address-geolocation-service。
但请记住,如果您的用户使用某种代理或 VPN,他们可以非常轻松地规避此类检查,因为他们的 IP 看起来会有所不同。
No, Azure doesn't have any mobile-specific features for geo-location of IPs.
A general list of resources that may help you are here: https://stackoverflow.com/questions/283016/know-a-good-ip-address-geolocation-service.
Bear in mind, however, that if your user is behind some kind of proxy or VPN that they can circumvent this kind of check very easily as their IP will appear to be different.