谷歌reCAPTCHA的公钥和私钥 [英] Google recaptcha public and private key
问题描述
我们正在使用我们的项目之一,谷歌验证码。要获取验证码的私钥和公钥我们只是使用url作为的http://本地主机:4345 / 。可以在同一个私钥和公钥在直播现场也可以使用。
We are using google recaptcha in one of our projects. To get the private and public key for captcha we just used the url as http://localhost:4345/. Can the same private and public key be used in live site also.
推荐答案
是的,这是完全确定,使用相同的密钥对本地测试和服务器部署(只要你保持你的私钥密码)。在另一方面,如果你没有选择全局键选项,按键是唯一的域和子域(事件虽然所有的键将再次在本地主机上的工作没有任何问题)。
Yes that's perfectly ok to use the same key pair for both local testing and server deployment (as long as you keep your private key a secret). On the other hand, if you did not select the "global key" option, the keys are unique to your domain and sub-domains (event though all keys will again work on localhost without any problem).
这篇关于谷歌reCAPTCHA的公钥和私钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!