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

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

问题描述

有没有人知道该怎么域检查了谷歌API密钥的作品?难道谷歌只检查网址在浏览器中的Locationbar或者是更复杂的?

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引用比较

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

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

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