I realize this may be a long-solved issue for some, but I could not find good documentation on how to best achieve this. On the javascript side, this is trivial. However, the PHP library here also includes a call to the siteverify API that is hard-coded as a constant in the library to point to google.com .
While we could make a local, modified copy of the library, I feel that this is not the right and re-usable way to go about this. But I am unsure how to achieve this best. So it's maybe less a bug report and more of a question?
If I'm not misunderstanding, recaptcha.net is just a bypass so it should be fine as far as your frontend can post the g-recaptcha-response to your backend.
Issue description As described in https://developers.google.com/recaptcha/docs/faq#can-i-use-recaptcha-globally , the recommended way of making ReCAPTCHA accessible for Chinese users is to replace all calls to google.com to point to recaptcha.net instead.
I realize this may be a long-solved issue for some, but I could not find good documentation on how to best achieve this. On the javascript side, this is trivial. However, the PHP library here also includes a call to the siteverify API that is hard-coded as a constant in the library to point to google.com .
While we could make a local, modified copy of the library, I feel that this is not the right and re-usable way to go about this. But I am unsure how to achieve this best. So it's maybe less a bug report and more of a question?
Environment
google/recaptcha
version: 1.2.4