• Hi, I am a webmaster from China. In China, due to the relationship between the Great Firewall, if we use this plugin directly, we can’t directly call Google’s reCAPTCHA API. So I need to replace the plugin’s https://www.google.com/recaptcha/ field with recaptcha.google.cn/recaptcha/ (This is Google China’s reCAPTCHA mirror), so that Chinese visitors can use reCAPTCHA normally. But when I replace the functions.php in the plugin, anr-captcha-class.php, settings.php and anr-admin-class.php After https://www.google.com is recaptcha.google.cn, I found that my website homepage and article page are loading slowly in China. I used the Network option of the Chrome Developer Tools and found that the webpage references a https://www.google. Request for com/recaptcha/api.js. But this link is not accessible in China. This makes my website slower, but I have replaced all the fields, what should I do to make the home page reference the API of the mirror website?
    Website address: https://moeblog.top
    I replaced the good plugin: https://drive.google.com/open?id=1Pji4hbmsTayv8MFVvskp97-q-Yg55QHZ
    In addition, a small suggestion, can you add an option switch in the settings in the next version, after opening, you can let Chinese users use this plug-in normally? Thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Please try https://developers.google.com/recaptcha/docs/faq#can-i-use-recaptcha-globally

    Let me know. If it works i will add an option to change this in next version.

    Thread Starter moewang

    (@moewang)

    Sorry, I was wrong. I forgot that I also enabled another captcha plugin, which caused the site to be slow and slow. After turning it off, the speed is obviously faster, and after the replacement, the verification code can be loaded, and the tested Android phone runs. Chrome can also load properly on 4G LTE networks! So you can add it with confidence!
    Then I found another problem. Since my theme started PJAX and caused the article to be clicked from the homepage, reCAPTCHA will not load, and the page must be refreshed… Yes, I forgot to tell you, https://www.recaptcha.net is also In the blacklist of the Great Wall of Fire, although it can be used now, it may be disturbed. It may not be used any day. Here you can add a mirror of Google China: recaptcha.google.cn/recaptcha. It is the same as the recaptcha.net/recaptcha call method. And this will not be polluted by the Great Firewall.
    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Questions about using this plugin in China’ is closed to new replies.