reCaptcha: allow for all domains or add via API

2019-04-06 21:06发布

问题:

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)



标签: recaptcha