reCaptcha: allow for all domains or add via API

岁酱吖の 提交于 2019-12-09 15:42:26

问题


I'm using the new reCaptcha from Google (with the checkbox and NOT the one with the text to rewrite). As I'm hosting multiple domains (a lot), I can't add all the domains in the admin panel.

My question :

  • is it possible to allow the captcha for all the domains ?
  • is there a way (API ?) to add new domain to my list ?

If not, can you recommand me an alternative for this reCaptcha that allows per default all the domains ?

Thanks a lot in advance


回答1:


For multiple domains you can use the Secure Token method. Secure Token (Deprecated)




回答2:


A reCAPTCHA key is normally tied to a set of individual domains. However, if your list of valid domains is extremely long, fluid, or unknown, we give you the option to turn off the domain name checking on reCAPTCHA's end, and instead check on your server.

https://developers.google.com/recaptcha/docs/domain_validation




回答3:


ReCaptcha actually allows you to add up to 50 domains, all domains must be on a new line in the domain input box.

Domain registration also includes any and all sub-domains.

If necessary, you can disable domain name checking but it is highly discouraged since doing so creates a considerable security hole.

Google reCaptcha doc about domains: Domain/Package Name Validation (link updated)



来源:https://stackoverflow.com/questions/32881789/recaptcha-allow-for-all-domains-or-add-via-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!