在防火墙后面使用Google Maps API [英] Using google maps api behind firewall

查看:176
本文介绍了在防火墙后面使用Google Maps API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个嵌入谷歌地图的应用程序。工作正常。有些用户位于防火墙后面,对世界其他地区的访问非常有限。

有谁知道dns-names / ip-address使用的有效列表谷歌地图API?我可以看到在萤火虫的网络面板中加载了哪些dns名称。但使用它们感觉有点不安全。是否有这样的列表,我可以添加到防火墙白名单?



.. fredrik



编辑



我曾与在谷歌地图团队工作的人交谈过。他说,这是不可能的,因为地址服务被分割到整个服务器上,因此IP地址发生变化。

现在这是可能的。主要的信息来源可以在这里找到: https://developers.google。 com / maps / documentation / business / articles / prelaunch_checklist#firewall

配置防火墙以允许访问Google Maps API服务

为什么这很重要: Maps API服务使用多种域名,其中一些域名不属于* google.com域名。如果您使用的是限制性防火墙,则必须了解哪些Maps API服务使用哪些域。



如果无法访问正确的域,将导致API请求失败,这可能会破坏你的应用程序。要查看Maps API使用的域的完整列表,请参阅我们的门户资源(需要登录) :



登录到 Google Enterprise支持门户
支持门户仅适用于Google Maps API for Work用户。
导航到资源选项卡
选择名为Google使用的域列表Maps API Family。
您应该允许您的应用程序访问这些域。



请注意,我们不建议通过IP管理防火墙限制地址,因为与这些域相关的IP不是静态的。


I have an application embedding google maps. Works fine. Some users are behind a firewall with very restricted access to the rest of the world.

Does anyone know of a valid list of dns-names/ip-addresses used by the google maps api? I can see what dns-names it loads from in firebug's net panel. But it feels a bit unsafe to use just them. Is there a such list that I can add to the firewalls whitelist?

..fredrik

EDIT

I spoke to someone who was working at the maps-team at google. And he said that it's not possible since the ip addresses changes since the maps service is split over a whole range over servers.

解决方案

This is possible now. The primary source of information is found here: https://developers.google.com/maps/documentation/business/articles/prelaunch_checklist#firewall

Configure Firewall to Allow Access to the Google Maps API Services

Why it's important: The Maps API services use a variety of domains, some which do not belong to the *google.com domain. If you are behind a restrictive firewall, it is important you understand which Maps API services use which domains.

Failure to allow access to the correct domains will cause API requests to fail, which can break your applications. For a complete listing of domains used by the Maps APIs, please consult our portal resource (login required):

Log in to the Google Enterprise Support Portal The support portal is only available to Google Maps API for Work users. Navigate to the "Resources" tab Select the Resource called "List of domains used by the Google Maps API Family." You should allow your applications to access these domains.

Please note that we do not recommend managing firewall restrictions by IP address, as the IPs associated with these domains are not static.

这篇关于在防火墙后面使用Google Maps API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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