Google API 密钥和域检查 [英] Google API Key and Domain Check

查看:21
本文介绍了Google API 密钥和域检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道 Google API 密钥的域检查是如何工作的吗?Google 是只检查浏览器位置栏中的网址还是更复杂的网址?

did anyone know how the domain check for the Google API Key works? Did Google only check for the URL in the Locationbar of the browser or is it more complex?

我想在我自己的应用程序中使用这样的功能,但我的任何解决方案都很容易绕过.

I want to use such feature in my own application but any of my solutions is easy to bypass.

推荐答案

只需发送 javascript:location.href,并将其与 HTTP REFERER 进行比较.

Just send the javascript:location.href, and compare it against the HTTP REFERER.

这篇关于Google API 密钥和域检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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