在防火墙后面使用谷歌地图 API
我有一个嵌入谷歌地图的应用程序。工作正常。一些用户位于防火墙后面,对世界其他地方的访问非常有限。
有谁知道 google 地图 API 使用的有效 dns 名称/ip 地址列表吗?我可以在 firebug 的网络面板中看到它加载的 dns 名称。但仅使用它们感觉有点不安全。是否有这样的列表可以添加到防火墙白名单中?
..fredrik
编辑
我与在谷歌地图团队工作的人交谈过。他说这是不可能的,因为 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
正如我在 Chrome 的控制台中看到的,Google 地图现在正在使用 3 个服务器:
如您所见,它们全部位于
1e100.net
域中。1e100
等于1 googol
;)As I see in Chrome's console there are 3 servers that Google Maps are using right now:
As you can see all of them are in
1e100.net
domain.1e100
equals1 googol
;)现在这是可能的。主要信息来源可在此处找到:https://developers.google。 com/maps/documentation/business/articles/prelaunch_checklist#firewall
配置防火墙以允许访问 Google Maps API 服务
为什么重要:地图 API 服务使用各种域,其中一些不属于 *google.com 域。如果您位于限制性防火墙后面,那么了解哪些 Maps API 服务使用哪些域非常重要。
不允许访问正确的域将导致 API 请求失败,这可能会破坏您的应用程序。有关 Maps API 使用的域的完整列表,请参阅我们的门户资源(需要登录) :
登录 Google Enterprise 支持门户
支持门户仅适用于 Google Maps API for Work 用户。
导航到“资源”选项卡
选择名为“Google Maps API 系列使用的域列表”的资源。
您应该允许您的应用程序访问这些域。
请注意,我们不建议通过 IP 地址管理防火墙限制,因为与这些域关联的 IP 不是静态的。
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 地图 API 中使用的域的文章内容。本文可在 Google Cloud 支持门户中找到:
Here is the content of the article about domains used in Google Maps APIs. This article is available in Google Cloud support portal: