Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

reCaptcha: allow for all domains or add via API

Tags:

recaptcha

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

like image 830
fred075 Avatar asked Oct 01 '15 07:10

fred075


People also ask

Is reCAPTCHA an API?

It can be integrated into your mobile application using an API-based service. reCAPTCHA v3 verifies requests with a score and gives you the ability to take action in the context of your site.

Can I use reCAPTCHA globally?

Can I use reCAPTCHA globally? Yes, please use "www.recaptcha.net" in your code in circumstances when "www.google.com" is not accessible. After that, apply the same to everywhere else that uses "www.google.com/recaptcha/" on your site.

Is reCAPTCHA API free?

reCAPTCHA is a free service that uses an advanced risk analysis engine to protect your app from spam and other abusive actions.


3 Answers

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)

like image 54
x13 Avatar answered Jan 08 '23 20:01

x13


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

like image 26
Peca Avatar answered Jan 08 '23 20:01

Peca


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

like image 30
Johnc Avatar answered Jan 08 '23 18:01

Johnc