首页 > 解决方案 > 如何使用 Google Platform API Key 限制

问题描述

我们想使用 Google Platform 的 API Keys 进行 Geolocate 和 Maps 服务

但我不明白如何限制 API

如果我像这样限制 (sub.example.com/*) wuth HTTP 引荐来源网址,当我点击地理位置/地图服务时,它会返回“带有引荐来源网址限制的 API 密钥不能与此 API 一起使用。”

我已经阅读了我们可以使用 IP 地址而不是使用 HTTP 引荐来源网址,但我的网站来自 AWS 上的 S3 存储桶,他的地址由 Cloudfront(用于 HTTPS)和 Route53 重定向,所以我真的不知道如何我找到了我网站的 IP 地址。

你能帮助我吗 ?

谢谢

标签: amazon-web-servicesamazon-s3google-cloud-platformgeolocationamazon-cloudfront

解决方案


推荐阅读